# GEDX402 Flux-2-Dev Image Generation

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

Generates images from text prompts using the Flux-2-Dev diffusion model, paid per-call with USDC on multiple blockchains via x402 protocol

## Facts

- Endpoint: GET https://ged-x402-image.jvalamis.workers.dev/v1/image/flux-2-dev
- Price: $0.02/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-2-dev-image-generation-a464dc82
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Fgqfp3jG0ewaeIyJSr0Vo

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-2-dev-image-generation-a464dc82
```

Example prompt: Generate an image of a futuristic city at sunset with neon lights reflecting on wet streets, at 1024x768 pixels and 20 diffusion steps for maximum quality.

## When to prefer this

Choose this endpoint when you need text-to-image generation using the Flux-2-Dev model specifically, want to pay per-call with USDC on Base, Polygon, Arbitrum, World, or Solana without managing API keys or subscriptions, and value the x402 micropayment protocol for permissionless access.

## Known failure modes

- Payment failure or insufficient USDC balance returns 402 Payment Required
- Invalid or missing prompt returns 400 Bad Request
- num_steps out of range (must be 1-20) returns validation error
- Unsupported or invalid width/height values may cause model error
- Network timeout if diffusion takes too long at high step counts
- Blockchain network congestion may delay payment confirmation

## How this service works

x402 workers ai. pay with usdc on base, polygon, arbitrum, world, or solana. no api keys.

## Output

A JSON object containing a base64-encoded string of the generated image, suitable for decoding and displaying or saving as an image 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-2-dev-image-generation-a464dc82/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)
