Agents call a resource, get an HTTP 402 with the price, pay in USDC on Base, and retry. Inference, X/Twitter API and crypto RPC are all payable this way.
POST /v1/chat/completions Host: api.surplusintelligence.ai Content-Type: application/json { "model": "claude-sonnet-4.5", "max_tokens": 800, "messages": [{ "role": "user", "content": "Hello" }] } ← HTTP/1.1 402 Payment Required PAYMENT-REQUIRED: eyJ4NDAyVmVyc2lvbiI6Mi… { "accepts": [{ "scheme": "upto", "network": "eip155:8453", "amount": "5502", "payTo": "<from the challenge>" }] } → retry, same URL PAYMENT-SIGNATURE: 0x9f2c…e41b ← HTTP/1.1 200 OK PAYMENT-RESPONSE: eyJzdWNjZXNzIjp0cnVl…
With upto, you sign a maximum. After the response, only the actual cost settles. The final amount is in each 402 challenge.
The OpenAI-compatible surface, with no API key. Routed to the cheapest healthy seller, settled after the response.
/v1/chat/completionsRead endpoints for agents that need social data, paid per call.
Listed in /x402/infoJSON-RPC access for on-chain reads, paid per call.
Listed in /x402/info