# GEDX402 Flux 2 Klein 4B Image Generator

> GEDX402 Flux 2 Klein 4B Image Generator 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-15).

Generates images using the Flux 2 Klein 4B diffusion model, paid per-call with USDC via x402 protocol, no API keys required

## Facts

- Endpoint: GET https://image.gedx402.com/v1/image/flux-2-klein-4b
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gedx402-flux-2-klein-4b-image-generator-cde65f11
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wk5F_zaO-jCifhg-fmTa-

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-klein-4b-image-generator-cde65f11
```

Example prompt: Generate an image of a neon-lit cyberpunk city street at night with rain reflections, at 1024 by 768 pixels using 15 diffusion steps.

## When to prefer this

Choose this endpoint when you need a quick, keyless image generation capability using the Flux 2 Klein 4B model, especially when you want to pay per-call with USDC on Base, Polygon, Arbitrum, World, or Solana without managing API credentials. Ideal for agents with crypto wallets needing on-demand image generation without subscription overhead.

## Known failure modes

- Invalid or missing prompt returns error
- Width or height values outside model-supported range cause failure
- num_steps exceeding maximum of 20 returns validation error
- Insufficient USDC payment or failed x402 payment flow returns 402 Payment Required
- Unsupported blockchain network for payment causes transaction failure
- Model temporarily unavailable returns 503 error

## 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, which can be decoded and displayed or saved as an image file.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "width": {
   "type": "integer",
   "description": "Output width in pixels when supported by the model."
  },
  "height": {
   "type": "integer",
   "description": "Output height in pixels when supported by the model."
  },
  "prompt": {
   "type": "string",
   "description": "Natural-language description of the image to generate."
  },
  "num_steps": {
   "type": "integer",
   "maximum": 20,
   "minimum": 1,
   "description": "Diffusion steps (quality vs speed)."
  }
 }
}
```

## 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-klein-4b-image-generator-cde65f11/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)
