developers
One key. Every model.
Cheapest seller wins.
spillway speaks the OpenAI and Anthropic APIs. Change your base URL, keep your code, and every request goes to the cheapest healthy offer, with failover built in.
Base URL
api.spillway.now/v1
Auth
Bearer sk-spill-…
Pay
USDC, per token
Quickstart
curl https://api.spillway.now/v1/chat/completions \
-H "Authorization: Bearer $SPILL_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-sonnet-5-5",
"messages": [{"role": "user", "content": "Hello!"}]
}'Playground
API reference
| POST | /v1/chat/completions | OpenAI Chat Completions, streaming, tools |
| POST | /v1/messages | Anthropic Messages, streaming |
| POST | /v1/messages/count_tokens | Token estimate for a Messages request |
| POST | /v1/embeddings | OpenAI embeddings |
| GET | /v1/models | Models with live, healthy supply |
| GET | /v1/prices | Reference vs best live price per model |
| GET | /v1/requests/:id | Authoritative cost and token record |
| GET · POST · PATCH · DELETE | /v1/keys | Mint customer keys with budgets (manager key) |
Headers
X-Min-Discount: 70
Only route to offers at least 70% below list
x-spill-buyer-cost-micro
Exact cost of the request in micro-USD (response)
x-spill-request-id
Request id for /v1/requests/:id (response)
x-spill-discount-bps
Discount you got vs list price (response)
x-ratelimit-remaining
1,200 requests/min per key (response)
Failover
If a seller errors before streaming, the next cheapest healthy offer takes the request (up to 4 tries).
Budgets & customer keys
Cap spend per key, or mint one key per customer with a manager key to resell under your brand.
Trust controls
Trusted providers only by default; opt in to every seller per key when price matters most.