Chat completions - auto tier
POST https://agent402.tools/v1/auto/chat/completions
OpenAI-compatible chat completions with the model chosen server-side: omit model and the gateway routes the prompt to the top-ranked model for its task (code, reasoning, long-context, general) from a fixed eval-derived ranking, failing over automatically on provider errors. Flat price per call, 16k chars in, 1024 tokens out, streaming supported. Use it as a drop-in OpenAI base_url when you want good answers without picking a model.
Warnings
Wallet mismatch The payout wallet in its live payment answer differs from its catalogue listing on the same network.
How to buy
This endpoint takes pay-per-call payments over x402. Call it once without paying to see its live price; any x402 client then pays and retries automatically.
curl -i -X POST "https://agent402.tools/v1/auto/chat/completions"
# HTTP/1.1 402 Payment Required: price, asset and payTo are in the responseRecent checks
| Checked (UTC) | Result | Status | Time | Live price |
|---|---|---|---|---|
| 2026-10-11 08:30 | Valid 402 | 402 | 709 ms | $0.01 |
| 2026-10-11 04:00 | Valid 402 | 402 | 300 ms | $0.01 |
| 2026-10-10 23:30 | Valid 402 | 402 | 513 ms | $0.01 |
| 2026-10-10 18:15 | Valid 402 | 402 | 202 ms | $0.01 |
Receipts
No test purchases yet. Graded test purchases are next on our list; until then every number here comes from unpaid checks.
What a check proves