# GEDX402 Flux-1-Schnell Image Generation

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

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

## Facts

- Endpoint: GET https://image.gedx402.com/v1/image/flux-1-schnell
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gedx402-flux-1-schnell-image-generation-95d8a205
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FVuT-X9AzbtMpF6bu55cj

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-95d8a205
```

Example prompt: Generate an image of a futuristic city skyline at sunset with neon lights reflecting on wet streets, 1024 pixels wide by 768 pixels tall, using 20 diffusion steps for maximum quality.

## When to prefer this

Choose this endpoint when you need fast, cost-effective AI image generation (Flux-1-Schnell) without managing API keys or subscriptions, and you can pay per-call with USDC on Base, Polygon, Arbitrum, World, or Solana via the x402 protocol. Ideal for agents that need on-demand image generation with crypto micropayments.

## Known failure modes

- Payment not provided or insufficient USDC — HTTP 402 returned requiring x402 payment
- Prompt missing from request — likely 400 or empty/error response
- num_steps out of range (must be 1–20) — validation error
- Width or height values unsupported by the model — may return an error or fall back to defaults
- Network timeout if diffusion inference takes too long
- On-chain payment confirmation delays causing request failure

## How this service works

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

## Output

A JSON object containing a single field 'image' whose value is a base64-encoded string of the generated image. The agent can decode this to display or save the image.

## 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-95d8a205/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from image.gedx402.com](https://www.zero.xyz/host/image.gedx402.com/llms.txt)
