# AgentUtility Pro Image Generation

> AgentUtility Pro Image Generation is a paid API for AI agents from x402.agentutility.ai, paid per call via x402, $0.06/call, status unknown (last checked 2026-09-15).

Generates images from text prompts using premium AI models (Flux 2 Pro, Recraft v4, Seedream v4, Grok Imagine, Qwen Image) and returns a permanent fal-hosted PNG URL

## Facts

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

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 agentutility-pro-image-generation-68ec51c4 -d '<json body>'
```

Example prompt: Generate an image of a futuristic city skyline at sunset with neon reflections on rain-slicked streets — use the 'recraft' tier for the sharpest quality.

## When to prefer this

Choose this endpoint when you need access to multiple premium text-to-image models (Flux 2 Pro, Recraft v4, Seedream v4, Grok Imagine, Qwen Image) through a single x402 USDC-paid API at $0.06/call, especially when building autonomous agents that need programmatic image generation without managing separate API keys for each model provider.

## Known failure modes

- Invalid or unsupported model tier string returns an error
- Prompt too long or containing disallowed content may be rejected
- Payment failure via x402/USDC results in 402 Payment Required response
- Network timeout if upstream Venice/fal.ai model is slow or unavailable
- Empty or missing prompt returns a validation error

## How this service works

Premium text-to-image API for repeatable product, campaign, and design assets when a standard draft needs a selected model tier. Send a prompt with optional dimensions, tier, and seed; receive a hosted PNG URL plus the resolved model, final canvas, prompt, seed, and timing. Keep the tier, dimensions, and seed fixed to rerun an approved asset. Tiers: 'balanced' (flux-2-pro, default), 'recraft' (recraft-v4), 'seedream' (seedream-v4), 'grok' (grok-imagine-image), and 'qwen' (qwen-image). Use it for Flux 2 Pro, Recraft, Seedream, Qwen Image, or Grok Imagine image generation.

## Output

Returns a permanent fal-hosted PNG image URL that can be embedded, displayed, or downloaded. The URL is stable and publicly accessible without expiry.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "prompt"
     ],
     "properties": {
      "seed": {
       "type": "number",
       "description": "Random seed. Optional."
      },
      "tier": {
       "enum": [
        "balanced",
        "recraft",
        "seedream",
        "grok",
        "qwen"
       ],
       "type": "string",
       "description": "Model shorthand. balanced=flux-2-pro (default), recraft=recraft-v4, seedream=seedream-v4, grok=grok-imagine-image, qwen=qwen-image."
      },
      "model": {
       "type": "string",
       "description": "Override the model. Allowed: flux-2-pro, qwen-image, qwen-image-2, recraft-v4, seedream-v4, seedream-v5-lite, grok-imagine-image, wan-2-7-text-to-image."
      },
      "steps": {
       "type": "number",
       "description": "Diffusion steps. Optional; depends on model."
      },
      "width": {
       "type": "number",
       "description": "Output width in pixels. Range [256, 1024]. Default 1024."
      },
      "height": {
       "type": "number",
       "description": "Output height in pixels. Range [256, 1024]. Default 1024."
      },
      "prompt": {
       "type": "string",
       "description": "Image description. Up to 3000 chars."
      },
      "cfg_scale": {
       "type": "number",
       "description": "Classifier-free guidance scale. Optional."
      },
      "negative_prompt": {
       "type": "string",
       "description": "Negative prompt. Optional."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "seed": {
       "type": "null"
      },
      "tier": {
       "type": "string"
      },
      "model": {
       "type": "string"
      },
      "width": {
       "type": "integer"
      },
      "height": {
       "type": "integer"
      },
      "prompt": {
       "ty
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "seed": null,
  "tier": "balanced",
  "model": "flux-2-pro",
  "width": 1024,
  "height": 1024,
  "prompt": "An ornate brass astrolabe on a velvet cushion, museum lighting, 4k product photography",
  "source": "venice",
  "image_url": "https://v3.fal.media/files/abc/xyz/image.png",
  "elapsed_ms": 12000,
  "venice_request_id": "ven_pro_4f8a2b..."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentutility-pro-image-generation-68ec51c4/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)
