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 key + credits x402: wallet pay-per-use (USDC on Base)

Credit-based API

API keys · usage tracking

Api key + credits

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/balancePOST /image/generate

Open credit-based docs

Pay-per-use (x402)

USDC on Base · no account required

Wallet-first

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/generateGET /ondemand/status

Open x402 docs

Quick links

Shortcuts for testing and billing.