# AI Rook Image Generation (FLUX.2-klein)

> AI Rook Image Generation (FLUX.2-klein) is a paid API for AI agents from agents.ai-rook.com, paid per call via x402, $0.075/call, status unknown (last checked 2026-09-14).

Generates a 1024x1024 PNG image from a text prompt using the FLUX.2-klein model, paid per-call via USDC on Base mainnet with no API key required.

## Facts

- Endpoint: GET https://agents.ai-rook.com/api/image-gen
- Price: $0.075/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ai-rook-image-generation-flux-2-klein-1b1b832a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qckriFdW9KTIQMP41rznZ

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 ai-rook-image-generation-flux-2-klein-1b1b832a
```

Example prompt: Generate an image of a futuristic city skyline at sunset with neon lights reflecting off wet streets — pay for it using USDC on Base via AI Rook and give me the result as a PNG.

## When to prefer this

Choose this endpoint when you need a quick, no-signup AI image generation call paid micropayment-style in USDC on Base mainnet via x402, especially in agentic workflows where acquiring API keys is impractical. FLUX.2-klein is optimized for speed; prefer this over heavier models when turnaround time matters and you want a fixed $0.15/call cost with on-chain accountability.

## Known failure modes

- Insufficient USDC balance on Base mainnet — payment rejected, image not generated
- Prompt violates content policy — generation refused
- Model overload or timeout — elapsed_ms exceeds threshold and no image returned
- Malformed or missing prompt parameter — API returns error
- Network or x402 payment protocol failure — transaction not confirmed

## How this service works

Live crypto trading intelligence for AI agents — real-time BTC signals, CVD, order flow, and active strategy setups, no API keys or signup. 43 pay-per-call endpoints total: trading data, AI inference (MiniMax M2.7 (456B-parameter Mixture-of-Experts)), web utilities, verification, and ERC-8183 ACP escrow with on-chain ERC-8004 reputation attestation (Agent ID 59646). Four payment rails: USDC on Base mainnet (default), USDC on Solana mainnet, HBAR/USDC on Hedera testnet, USDT on BNB Chain testnet. One free trial call per endpoint. Prices from $0.001/call.

## Output

A JSON object containing the generated image as a base64-encoded data URI (data:image/png;base64,...), the model used (FLUX.2-klein), image dimensions (1024x1024), and the time taken to generate in milliseconds.

## Request schema (JSON Schema)

```json
{
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ai-rook-image-generation-flux-2-klein-1b1b832a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.ai-rook.com](https://www.zero.xyz/host/agents.ai-rook.com/llms.txt)
