POST /v1/chat/completions # paid per request
surp.ivc.lol is an x402 LLM API — a fully OpenAI-compatible inference endpoint where every request is paid with x402 (USDC on Base, per request). No account, no API key, no subscription. Send a chat completion, get a 402 with the price, sign with your wallet, and the model answers.
Unlike a static API, surp.ivc.lol watches the live Surplus Intelligence marketplace (150+ models across Anthropic, OpenAI, Google, DeepSeek, Alibaba, xAI, and more) and routes each request to the cheapest model for your task right now. Ask for surp/best-coding and you get whatever coding model is cheapest at that second.
Any HTTP client works. The first call returns 402 with payment requirements; an x402 client library completes the sign-and-retry automatically:
curl -X POST https://surp.ivc.lol/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{"model":"surp/best-chat",
"messages":[{"role":"user","content":"explain x402 like I'm five"}],
"max_tokens":100}'
using an x402 client library (docs.x402.org) handles the 402 → sign → retry loop so your code just works.
You pay the live market price of the cheapest model in the combo, plus a transparent 5% gateway markup. Current examples (per 1M tokens):
| combo | typical model | USD / 1M tokens |
|---|---|---|
| surp/best-chat | deepseek-v4-flash | ~$0.04 |
| surp/best-coding | kimi-k2.7-code | ~$0.42 |
| surp/pro-chat | gpt-5.6-terra | ~$0.18 |
| surp/best-reasoning | qwen3-thinking | ~$0.05 |
live prices: homepage ticker
related: what is x402? · x402 gateway · pay-per-request LLM API · connect your agent · docs