# x402.agentutility.ai Image Generate (Fast/Cheap)

> x402.agentutility.ai Image Generate (Fast/Cheap) is a paid API for AI agents from x402.agentutility.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Generates a safe-for-work image from a text prompt in under 5 seconds using one of four curated AI model tiers, returning a permanent PNG URL.

## Facts

- Endpoint: POST https://x402.agentutility.ai/image-generate
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-agentutility-ai-5cab64d0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eAJruWjK3woixm5NPy7aG

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-agentutility-ai-5cab64d0 -d '<json body>'
```

Example prompt: Generate an image of a cozy mountain cabin at sunset with snow on the roof and warm light glowing through the windows — use the creative tier for a more artistic look.

## When to prefer this

Use this endpoint when you need a fast, cheap ($0.01) SFW image generated from text in under 5 seconds. Choose the 'fast' tier for maximum speed, 'creative' for artistic quality, 'anime' for Japanese illustration style, or 'sd35' for Stable Diffusion 3.5 output. Prefer this over the pro ($0.10) or ultra ($0.30) tiers when speed and cost matter more than top-tier photorealism.

## Known failure modes

- Prompt violates SFW policy — generation rejected or filtered
- Invalid or unrecognized model tier name — falls back to default 'fast' or returns error
- Payment of $0.01 USDC not completed — request rejected
- Prompt too vague or empty — low-quality or blank image returned
- Upstream Venice model timeout — no URL returned within 5s window

## How this service works

Turn an approved image brief into a controlled next PNG when an agent needs to iterate without losing the prompt setup. Send a text prompt with optional width, height, tier, model, seed, and negative prompt; receive a hosted image URL plus the resolved model, final dimensions, prompt, seed, and timing. Venice is primary, with automatic fal.ai Z-Image Turbo failover after a definitive provider error. Keep the canvas, tier, and seed from an approved response fixed, then change one prompt detail for the next paid image pass. Choose fast for drafts, creative for campaign artwork, anime for illustration, or sd35 for Stable Diffusion-style output. Use it as an AI image generator API, repeatable text-to-image API, prompt-to-PNG API, or hosted image-production endpoint.

## Output

A permanent fal-hosted PNG image URL pointing to the generated image, ready to embed or share.

## Example request

```json
{
 "input": {
  "body": {
   "tier": "creative",
   "width": 1024,
   "height": 1024,
   "prompt": "A serene mountain landscape with a crystal-clear lake reflecting snow-capped peaks at golden hour"
  },
  "type": "http",
  "method": "POST",
  "bodyType": "json"
 }
}
```

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "properties": {
      "prompt": {
       "type": "string",
       "description": "Image description. Up to 2000 chars."
      },
      "width": {
       "type": "number",
       "description": "Output width in pixels. Range [256, 1024], snapped to multiples of 16. Default 1024."
      },
      "height": {
       "type": "number",
       "description": "Output height in pixels. Range [256, 1024], snapped to multiples of 16. Default 1024."
      },
      "tier": {
       "type": "string",
       "enum": [
        "fast",
        "creative",
        "anime",
        "sd35"
       ],
       "description": "Model shorthand. Default 'fast'."
      },
      "model": {
       "type": "string",
       "description": "Override the model. Must be one of: z-image-turbo, chroma, wai-Illustrious, venice-sd35."
      },
      "steps": {
       "type": "number",
       "description": "Diffusion steps. Optional; depends on model."
      },
      "cfg_scale": {
       "type": "number",
       "description": "Classifier-free guidance scale. Optional."
      },
      "seed": {
       "type": "number",
       "description": "Random seed. Optional."
      },
      "negative_prompt": {
       "type": "string",
       "description": "Negative prompt. Optional, up to 1000 characters."
      }
     },
     "required": [
      "prompt"
     ]
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "image_url": {
       "type": "string",
       "description": "HTTPS URL for the generated PNG."
      },
      "model": {
       "type": "string",
       "description": "Model that produced the image. Fallback responses name fal-ai/z-image/turbo."
      },
      "requested_model": {
       "type": "string",
       "description": "Requested Venice model, present when fal.ai handled a fallback."
      },
      "width": {
       "type": "
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "seed": null,
  "tier": "fast",
  "model": "z-image-turbo",
  "width": 1024,
  "height": 1024,
  "prompt": "A neon-lit cyberpunk street scene, dramatic lighting, photorealistic",
  "source": "venice",
  "image_url": "https://v3.fal.media/files/abc/xyz/image.png",
  "elapsed_ms": 3200,
  "venice_request_id": "ven_4f8a2b..."
 }
}
```

## More

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