# x402.chaly.org AI Image Generator

> x402.chaly.org AI Image Generator is a paid API for AI agents from x402.chaly.org, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Generates low-quality 1K-resolution images from text prompts, supporting multiple aspect ratios and batch requests, paid per-call via x402.

## Facts

- Endpoint: POST https://x402.chaly.org/generate
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-chaly-org-ai-image-generator-fb10f5b3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_I4G3BSraO8i_GIFNN6txu

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 x402-chaly-org-ai-image-generator-fb10f5b3 -d '<json body>'
```

Example prompt: Generate 2 square images of 'a neon-lit cyberpunk alleyway at night with rain reflections' at low quality — one in 1:1 aspect ratio and one in 16:9.

## When to prefer this

Choose this endpoint when you need fast, low-cost AI image generation and high resolution or quality is not required — ideal for prototyping, drafts, mockups, or bulk generation tasks. Its batch capability (up to 8 images per call) and flexible aspect ratio options make it efficient for multi-format content workflows. At $0.005 USDC per call with x402 micropayment, it is optimal for cost-sensitive or high-volume automation pipelines.

## Known failure modes

- Prompt too short (under 3 chars) or too long (over 2000 chars) results in validation error
- Total image count exceeding 8 (across batch items) returns a limit exceeded error
- Invalid aspect ratio enum value causes a bad request error
- Insufficient USDC balance or failed x402 payment results in a 402 Payment Required response
- Malformed idempotency key (not matching ^[a-zA-Z0-9_-]{1,64}$) causes rejection
- Empty or missing prompt when not using batch mode returns a validation error

## How this service works

AI image generation - low quality, 1K resolution.

## Output

Returns one or more AI-generated images at 1K resolution in the requested aspect ratio, produced from the provided text prompt. The low-quality tier delivers fast, inexpensive outputs suitable for drafts, mockups, and concept validation rather than final production assets.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "id": {
   "type": "string",
   "description": "Idempotency key /^[a-zA-Z0-9_-]{1,64}$/"
  },
  "count": {
   "type": "integer",
   "maximum": 8,
   "minimum": 1,
   "description": "Images for this prompt"
  },
  "items": {
   "type": "array",
   "description": "Batch [[prompt, count]] total â‰¤8"
  },
  "aspect": {
   "enum": [
    "Auto",
    "9:16",
    "16:9",
    "1:1",
    "4:3",
    "3:4",
    "3:2",
    "2:3",
    "21:9"
   ],
   "type": "string",
   "description": "Aspect ratio"
  },
  "prompt": {
   "type": "string",
   "description": "Text prompt for image generation (3-2000 chars)"
  },
  "quality": {
   "enum": [
    "low"
   ],
   "type": "string",
   "description": "Quality tier"
  },
  "megapixels": {
   "enum": [
    "1K"
   ],
   "type": "string",
   "description": "Resolution"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-chaly-org-ai-image-generator-fb10f5b3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.chaly.org](https://www.zero.xyz/host/x402.chaly.org/llms.txt)
