# wafermap.xyz FLUX.2 Klein 4B Image Generator

> wafermap.xyz FLUX.2 Klein 4B Image Generator is a paid API for AI agents from wafermap.xyz, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-31).

Generates images from text prompts using the FLUX.2 Klein 4B model — the smallest and fastest FLUX.2 variant, optimized for quick drafts and visual variations.

## Facts

- Endpoint: POST https://wafermap.xyz/v1/flux-2-klein-4b?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/wafermap-xyz-flux-2-klein-4b-image-generator-4afd062f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GSQiMsDhbskSw80wl2G6-

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 wafermap-xyz-flux-2-klein-4b-image-generator-4afd062f -d '<json body>'
```

Example prompt: Generate a quick draft image of a cozy autumn coffee shop with warm golden lighting and rain on the windows — make it square format.

## When to prefer this

Choose this endpoint when speed and cost matter more than maximum image quality — ideal for rapid iteration, concept drafts, A/B visual variations, or automated pipelines where you need many images cheaply. It is significantly faster and cheaper ($0.0069/call) than FLUX.2 dev or other high-fidelity options. Prefer FLUX.2 dev or FLUX.1 schnell alternatives when photorealism, precise text-in-image rendering, or production-grade quality is required.

## Known failure modes

- Prompt too short or empty — minimum 1 character required
- Prompt exceeds 2000 character limit — truncate or shorten the description
- Invalid size value — must be exactly '1024x1024', '1280x768', or '768x1280'
- Payment failure or insufficient USDC balance — x402 payment of $0.0069 USDC required per call
- Server-side model inference timeout for unusually complex prompts

## How this service works

FLUX.2 klein 4B — Smallest FLUX.2. Fast drafts and variations.

## Output

Returns a generated image based on the provided text prompt, in the requested size (1024x1024 square, 1280x768 wide, or 768x1280 tall). The output is produced by the FLUX.2 Klein 4B model, optimized for speed and low cost rather than maximum fidelity.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "size": {
   "enum": [
    "1024x1024",
    "1280x768",
    "768x1280"
   ],
   "type": "string",
   "description": "Square, wide or tall."
  },
  "prompt": {
   "type": "string",
   "maxLength": 2000,
   "minLength": 1,
   "description": "Describe the image."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/wafermap-xyz-flux-2-klein-4b-image-generator-4afd062f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from wafermap.xyz](https://www.zero.xyz/host/wafermap.xyz/llms.txt)
