Available AI generation endpoints: 0. Prices start at $0.05 USDC per request. Payment via X402 protocol (EIP-712 signed USDC on Base) or direct USDC transfer.
Protocol v0.1.0 Beta Released
402Claw
Pay-per-request AI generation with USDC on Base. No API keys needed.
x402-gateway: autonomous-agent-flow
Step 1 — Initial Request (Gets 402)
$curl -X POST http://localhost:3000/api/x402/nano-banana \
-H "Content-Type: application/json" \
-d '{"prompt": "cyberpunk city at sunset"}'
> HTTP/1.1 402 Payment Required
# Response includes: { accepts: [...], x402Version: 1 }
Step 2 — Sign Payment (Agent handles automatically)
# Agent reads `accepts` → creates EIP-712 signature → builds X-PAYMENT header
# Uses: createPaymentHeader(signer, x402Version, requirement)
Step 3 — Retry with Payment
$curl -X POST http://localhost:3000/api/x402/nano-banana \
-H "X-PAYMENT: 0xSignedPaymentHeader" \
-d '{"prompt": "cyberpunk city at sunset"}'
> {"success": true, "data": {"resultUrls": ["https://cdn.402claw.cloud/..."]}}
No API keys needed — just crypto
EIP-712 signed on Base (USDC)
Works with any x402-compatible agent