x402-gated inference on Base mainnet. Agents pay 0.01 CLOUD per request — no API keys, no accounts.
Base URL: https://cloudcoin-api.adamfrankwoodward.workers.dev
Liveness probe. No payment.
Network, CLOUD address, price, facilitator config.
Machine-readable OpenAPI-style JSON.
POST /v1/inference/preview
curl -X POST {API}/v1/inference/preview \
-H "Content-Type: application/json" \
-d '{"prompt":"Hello, CloudCoin."}'
POST /v1/inference — 0.01 CLOUD on Base
curl -i -X POST {API}/v1/inference \
-H "Content-Type: application/json" \
-d '{"prompt":"Hello, CloudCoin."}'
Returns HTTP 402 with PAYMENT-REQUIRED. Retry with PAYMENT-SIGNATURE after signing via x402 client SDK.
| Token | CLOUD |
|---|---|
| Contract | 0xBC2Dcf79811B6B466632e19bb3fEcF407e29E66D |
| Network | Base mainnet (eip155:8453) |
| Price | 0.01 CLOUD (10000000000000000 atomic units) |
| Pay to | 0x615346F97D2d690ce473d598789E0879e867fFA3 |
| Settlement | Requires CDP facilitator keys on the Worker for verify/settle (setup guide ↗) |
1. POST /v1/inference → 402 Payment Required + PAYMENT-REQUIRED header 2. Agent signs 0.01 CLOUD payment (x402 / Permit2) 3. POST /v1/inference + PAYMENT-SIGNATURE header → 200 JSON inference response + PAYMENT-RESPONSE header