Reference
API reference
Endpoints, headers and public data feeds.
Gateway base URL: https://api.spillway.now/v1. Authenticate with Authorization: Bearer sk-spill-….
Endpoints
| Method | Path | What it does |
|---|---|---|
| POST | /v1/chat/completions | OpenAI Chat Completions, with streaming and tools. |
| POST | /v1/messages | Anthropic Messages, with streaming and tools. |
| 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 | List price and best live price for every model. |
| GET | /v1/requests/:id | The authoritative record of one request: tokens, cost, attempts. |
| GET POST PATCH DELETE | /v1/keys | Customer keys with budgets (manager key only). |
Request headers
X-Min-Discount: 70: only route to offers at least 70% below list.x-spill-mask-secrets: on|off: secret masking for this request.
Response headers
x-spill-request-id: id forGET /v1/requests/:id.x-spill-buyer-cost-micro: exact cost (non-streamed responses).x-spill-discount-bps: your discount vs list price, in basis points.x-spill-secret-masking: what masking did.x-ratelimit-limit,-remaining,-reset: your rate-limit window.
Public data
GET https://api.spillway.now/public/markets, /public/markets/:model, /public/stats, /public/analytics, /public/providers and /public/proofs power the market, analytics and proofs pages. No key needed.