# GEDX402 Flux-1-Schnell Image Generation

> GEDX402 Flux-1-Schnell Image Generation is a paid API for AI agents from ged-x402-image.jvalamis.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Generates images from text prompts using the Flux-1-Schnell diffusion model, paid per-call with USDC via x402 protocol — no API keys required.

## Facts

- Endpoint: GET https://ged-x402-image.jvalamis.workers.dev/v1/image/flux-1-schnell
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gedx402-flux-1-schnell-image-generation-4a8f2750
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nQP2pmDM1NVlBn5JxreRZ

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 gedx402-flux-1-schnell-image-generation-4a8f2750
```

Example prompt: Generate a photorealistic image of a red fox sitting in a snowy forest at dusk — make it 1024x768 pixels with 20 diffusion steps for maximum quality.

## When to prefer this

Choose this endpoint when you need fast, on-demand text-to-image generation without API key registration, want to pay per-call with USDC on Base, Polygon, Arbitrum, World, or Solana, and specifically want the Flux-1-Schnell model's speed-quality tradeoff. Prefer over alternatives when the agent environment supports x402 micropayments natively.

## Known failure modes

- Payment not received or insufficient USDC — returns 402 Payment Required
- Invalid prompt (empty or missing) — returns 400 Bad Request
- num_steps out of range (must be 1–20) — returns 400 validation error
- Unsupported width/height values for the model — may return 400 or produce unexpected output
- Network timeout on Workers AI backend — returns 5xx error
- Unsupported blockchain network for payment — payment fails before request is processed

## How this service works

Flux schnell text-to-image — fast generation, one x402 payment per image.

## Output

A JSON object containing a single 'image' field with the base64-encoded generated image, ready to decode and display or save as a file.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "width": {
   "type": "integer"
  },
  "height": {
   "type": "integer"
  },
  "prompt": {
   "type": "string"
  },
  "num_steps": {
   "type": "integer"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "image": "<base64>"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gedx402-flux-1-schnell-image-generation-4a8f2750/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ged-x402-image.jvalamis.workers.dev](https://www.zero.xyz/host/ged-x402-image.jvalamis.workers.dev/llms.txt)
