# AgentServices Image Generation

> AgentServices Image Generation is a paid API for AI agents from agentservices.to, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-14).

Generates images from a text prompt using a configurable AI image model, billed per call via x402 micropayments on Base.

## Facts

- Endpoint: POST https://agentservices.to/v1/images/generations
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentservices-image-generation-b5265c1e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_toh-4WrlNHt1wlwK_a-w6

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agentservices-image-generation-b5265c1e -d '<json body>'
```

Example prompt: Generate an image of a futuristic city skyline at sunset with neon lights reflecting on wet streets, in wide landscape format (1792x1024).

## When to prefer this

Choose this endpoint when your agent needs to generate images on demand and already operates in the x402/Base micropayment ecosystem — no API key setup required, just USDC. Prefer this over OpenAI or Stability AI direct integrations when you want pay-per-call billing with no subscription, or when your agent stack is already wired for x402 payments on Base.

## Known failure modes

- Missing required 'prompt' field returns a 400 validation error
- Invalid size string (not one of 1024x1024, 1792x1024, 1024x1792) may return an error or fall back to default
- Payment failure via x402 (insufficient USDC balance or wallet not configured) will block the request
- Model not found or unsupported model string may return an error
- Ambiguous or policy-violating prompt content may be rejected by the underlying model
- Empty response schema means error structure is undocumented — agents should handle unexpected response shapes

## How this service works

Paid data APIs for AI agents. Crypto market data, DeFi yields, IP geolocation, dispute resolution, marketing intelligence. Powered by x402 micropayments on Base.

## Output

Returns a generated image (likely as a URL or base64-encoded binary) based on the provided prompt, model, and size parameters. The response schema is currently unspecified, so agents should handle flexible response formats.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "prompt"
 ],
 "properties": {
  "size": {
   "type": "string",
   "description": "Image size: 1024x1024, 1792x1024, 1024x1792"
  },
  "model": {
   "type": "string",
   "description": "Image model"
  },
  "prompt": {
   "type": "string",
   "description": "Image generation prompt"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentservices-image-generation-b5265c1e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentservices.to](https://www.zero.xyz/host/agentservices.to/llms.txt)
