# GEDX402 Flux-2 Klein 9B Image Generator

> GEDX402 Flux-2 Klein 9B Image Generator is a paid API for AI agents from ged-x402-image.jvalamis.workers.dev, paid per call via x402, $0.085/call, status unknown (last checked 2026-09-14).

Generates an image from a text prompt using the Flux-2 Klein 9B 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-2-klein-9b
- Price: $0.085/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-2-klein-9b-image-generator-25f6bee3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YZUmGMrsTuXsKP6AamwLp

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-9b-image-generator-25f6bee3
```

Example prompt: Generate an image of a neon-lit cyberpunk city street at night with rain reflections on the pavement — make it 1024 pixels wide and 768 pixels tall, using 15 diffusion steps for high quality.

## When to prefer this

Choose this endpoint when you need on-demand text-to-image generation without managing API keys, using a crypto micropayment (USDC on Base, Polygon, Arbitrum, World, or Solana) via the x402 protocol. Ideal for autonomous agents that hold crypto wallets and need to generate images programmatically at $0.085 per call. Prefer this over OpenAI/Stability API wrappers when avoiding centralized API key management or when operating in a web3-native payment context.

## Known failure modes

- Insufficient USDC balance or payment failure — HTTP 402 Payment Required
- Invalid prompt (empty string) — request rejected or blank/garbled output
- num_steps out of range (must be 1–20) — validation error
- Model timeout or overload on Cloudflare Workers — HTTP 5xx error
- Unsupported width/height values — model may ignore or clip dimensions
- Network error reaching workers.dev host — connection timeout

## 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.

## 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-9b-image-generator-25f6bee3/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)
