# GEDX402 Flux-2 Klein 4B Image Generator

> GEDX402 Flux-2 Klein 4B Image Generator 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 using the Flux-2 Klein 4B diffusion model, paid per-call with USDC on multiple blockchains, no API key required.

## Facts

- Endpoint: GET https://ged-x402-image.jvalamis.workers.dev/v1/image/flux-2-klein-4b
- 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-2-klein-4b-image-generator-dda475b1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GEDdwMg-rQrWqaOTfdB8-

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-dda475b1
```

Example prompt: Generate an image of a misty mountain lake at sunrise with golden reflections on the water, 1024 pixels wide and 768 pixels tall, using 15 diffusion steps for good quality.

## When to prefer this

Choose this endpoint when you need AI image generation without setting up API keys or accounts — ideal for agents that can pay with USDC on Base, Polygon, Arbitrum, World, or Solana. Best suited for single image generation tasks using the Flux-2 Klein 4B model specifically, with control over resolution and quality/speed tradeoff via diffusion steps.

## Known failure modes

- Invalid or missing prompt results in a bad request error
- Width or height values unsupported by the model may be silently clamped or cause an error
- num_steps outside range 1-20 will be rejected as invalid
- Payment failure or insufficient USDC balance causes a 402 Payment Required response
- Network timeout if the diffusion model takes too long to generate
- Unsupported blockchain network for payment causes transaction failure

## 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 single 'image' field with the generated image encoded as a base64 string, ready to decode and display or save 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-klein-4b-image-generator-dda475b1/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)
