Fretchen AI Image Generation Service

AI-powered image generation with NFT minting on Optimism/Base, paid via x402 in USDC, EURC or EURe on Base (USDC everywhere; the euro tokens on Base).

Endpoints

Price

Payment

x402 (HTTP 402), exact scheme — one signature moves the money per call: no account, no API key, no approve() needed. An unpaid request answers 402 with the machine-readable Payment-Required challenge — exact terms (network, token, amount) are in the challenge, then retry the same request with the payment attached.

Try it

curl -X POST 'https://imagegen-agent.fretchen.eu/imagegen' -H 'Content-Type: application/json' -d '{"prompt":"a lighthouse at dusk"}'
# → HTTP 402 + Payment-Required header: the terms. No wallet needed for this first look.

Errors

402 = unpaid (challenge in the Payment-Required header); 400 = invalid request (OpenAI-shaped error body); 500 = server configuration error. Response schemas: openapi.json.