Pay-per-call AI inference
via x402 & USDC on Base

Clawy gateway v1.1.0 · x402 v2 · Base mainnet · discoverable

Frontier models (GPT-5.5, Claude Opus 4.8) billed per request in USDC. No API keys, no signup, no monthly contract. AI agents pay per call; humans can too.

Live OpenAI-compatible x402 Bazaar EIP-3009 x402scan registered
4Endpoints
$0.01-0.15USDC per call
~1-3sLatency
eip155:8453Base mainnet

Pricing

ChatGPT (gpt-5.5)

$0.10USDC / call

OpenAI GPT-5.5 direct API. Falls back to Anthropic Haiku 4.5 on error. Endpoint POST /v1/chat/chatgpt.

Claude Opus 4.8

$0.15USDC / call

Anthropic Claude Opus 4.8 direct API. Endpoint POST /v1/chat/opus.

Auto

$0.04USDC / call

Cost-optimized tier, always safe margin. Endpoint POST /v1/chat/auto.

Image generation

$0.01USDC / image PROMO

AI image generation (cost-optimized image model, single tier, no model choice). 1024×1024 / 1024×1792 / 1792×1024, 1-4 images per call. Normal price: $0.05. Endpoint POST /v1/images/generate.

All endpoints return OpenAI-shape responses. chat.completion objects include x_clawy.provider and x_clawy.delivery metadata so callers always know which backend served the request.

Quick start

# 1. Hit any paid endpoint without payment → server returns 402 with requirements
curl -X POST https://clawy.uk/v1/chat/opus \
  -H "Content-Type: application/json" \
  -d '{"messages":[{"role":"user","content":"Hello"}]}'

# 2. Read the PAYMENT-REQUIRED header → sign an EIP-3009 transferWithAuthorization
#    for the amount (0.10 / 0.15 / 0.04 USDC). Any x402 client works.

# 3. Retry the same POST with the X-PAYMENT header
curl -X POST https://clawy.uk/v1/chat/opus \
  -H "Content-Type: application/json" \
  -H "X-PAYMENT: <base64-payment-payload>" \
  -d '{"messages":[{"role":"user","content":"Hello"}]}'

# 4. Receive an OpenAI-shape chat.completion response
# { "id":"chatcmpl-...", "model":"claude-opus-4-8", "choices":[...], "x_clawy":{...} }

For AI agents

Five discovery files let autonomous clients find, price-check, and call the service without a human in the loop:

Listed on x402scan · Bazaar-discoverable · 3/3 resources active.

How a paid call works

1. POST /v1/chat/opus  →  402 Payment Required
   PAYMENT-REQUIRED: <base64 of payment requirements, amount=150000 (= $0.15)>

2. Client signs EIP-3009 transferWithAuthorization
   (USDC on Base, $0.15 to 0x767C96C228560DE259C2DB1D3c636B4C87b01a0C, valid 300s)

3. POST /v1/chat/opus
   X-PAYMENT: <base64 of signed payload>
   →  200 OK
   { "id":"chatcmpl-...", "model":"claude-opus-4-8",
     "choices":[{"message":{"role":"assistant","content":"..."}}],
     "x_clawy":{"provider":"anthropic","delivery":"api"} }

Stack

Honest disclosure. Backends are the official OpenAI and Anthropic billing APIs (direct, no subscription gray-area). Response metadata (x_clawy.provider, x_clawy.delivery, fallback) is always exposed so the caller knows exactly which model served the request. Receiving wallet: 0x767C96C228560DE259C2DB1D3c636B4C87b01a0C. x402scan-listed. Coinbase Bazaar-discoverable.

FAQ

What is x402?

x402 is an open payment protocol built on HTTP 402 Payment Required. Clients receive payment requirements in a response header, sign an EIP-3009 transferWithAuthorization, and retry with the signed payload in the X-PAYMENT header. Clawy implements x402 v2.

Do I need an API key?

No. Clawy uses pay-per-call USDC micropayments over x402. No signup, no API key, no monthly subscription. The only requirement is a wallet that can sign EIP-3009 transferWithAuthorization messages for USDC on Base mainnet.

Which AI models can I call?

Three endpoints: POST /v1/chat/chatgpt (OpenAI GPT-5.5, $0.10/call), POST /v1/chat/opus (Anthropic Claude Opus 4.8, $0.15/call), and POST /v1/chat/auto (cost-optimized, $0.04/call). All return OpenAI-shape chat.completion objects.

Which network is used for payments?

USDC on Base mainnet (eip155:8453, USDC contract 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913). Payments settle through the Coinbase CDP facilitator.

How much does it cost?

ChatGPT: $0.10 USDC/call. Claude Opus: $0.15 USDC/call. Auto: $0.04 USDC/call. No subscription, no minimum, no hidden fees.

Is the service discoverable for AI agents?

Yes. Five discovery files: /openapi.json, /llms.txt, /.well-known/x402.json, /.well-known/agent-services.json, and /health. The service is listed on x402scan and discoverable via the Coinbase Bazaar.