API Documentation
Pick how you want to pay and authenticate. Both paths use the same models and payload shape — only the auth/payment flow changes.
Credit-based API
API keys · usage tracking
Buy credits, then authenticate requests using your API key. Great for teams, and predictable billing.
You’ll use
Auth header
Authorization: Bearer <API_KEY>
Typical endpoints
/image/generate · /credits/balance
Quick start: GET /credits/balance → POST /image/generate
Pay-per-use (x402)
USDC on Base · no account required
Send requests without an API key. Payments are handled on-chain via x402 using USDC on Base. Perfect for AI agents, and anonymous usage.
You’ll use
No API key
POST /ondemand/*
Typical endpoints
/ondemand/image/generate · /ondemand/status
Quick start: POST /ondemand/image/generate → GET /ondemand/status
Quick links
Shortcuts for testing and billing.