# Agent Data Tools – AI Image Generation

> Agent Data Tools – AI Image Generation is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-11).

Generates images from a text prompt using Flux-1-Schnell diffusion model, returning a base64-encoded JPEG, paid per-call in USDC on Base via x402.

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/image?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-tools-ai-image-generation-258e8253
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3BLpuVnOdJ4hzNgSDaHC5

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 agent-data-tools-ai-image-generation-258e8253
```

Example prompt: Generate an image of a futuristic city skyline at night with neon lights and flying cars, using 6 diffusion steps.

## When to prefer this

Choose this endpoint when you need no-signup, pay-per-call AI image generation billed in USDC on Base with no API key management. Ideal for autonomous AI agents that need to spin up image generation on demand without provisioning accounts. Prefer this over OpenAI DALL-E or Stability AI when you want crypto-native micropayment billing via x402 and are already operating on Base.

## Known failure modes

- Missing or empty 'prompt' query parameter returns a 400 error
- Prompt shorter than 3 or longer than 800 characters rejected
- Steps value outside 1-8 range may cause validation error
- Payment not settled in USDC on Base triggers 402 Payment Required
- Cloudflare Workers AI backend unavailability causes 500/timeout
- Network timeout on slow connections given inference latency

## How this service works

Pay-per-call tools for AI agents: web page text extraction and summaries, screenshots, image generation, speech-to-text, image description, domain and email-auth intelligence, and live Base token and wallet lookups. No account or API key; pay per request in USDC on Base via x402.

## Output

A JSON object containing the model identifier ('model'), number of steps used, the original prompt, content type ('image/jpeg'), and the full image encoded as a base64 JPEG string under 'imageBase64', ready to decode and display or store.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "prompt"
     ],
     "properties": {
      "steps": {
       "type": "integer",
       "description": "Diffusion steps, 1-8 (default 4)"
      },
      "prompt": {
       "type": "string",
       "description": "What the image should show (3-800 characters)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "model": "@cf/black-forest-labs/flux-1-schnell",
  "steps": 4,
  "prompt": "a lighthouse on a cliff at sunset, watercolor",
  "contentType": "image/jpeg",
  "imageBase64": "/9j/4AAQSkZJRgABAQAAAQABAAD..."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-tools-ai-image-generation-258e8253/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
