spillway
Reference

API reference

Endpoints, headers and public data feeds.

Gateway base URL: https://api.spillway.now/v1. Authenticate with Authorization: Bearer sk-spill-….

OpenAI and Anthropic compatible.

Endpoints

MethodPathWhat it does
POST/v1/chat/completionsOpenAI Chat Completions, with streaming and tools.
POST/v1/messagesAnthropic Messages, with streaming and tools.
POST/v1/messages/count_tokensToken estimate for a Messages request.
POST/v1/embeddingsOpenAI embeddings.
GET/v1/modelsModels with live, healthy supply.
GET/v1/pricesList price and best live price for every model.
GET/v1/requests/:idThe authoritative record of one request: tokens, cost, attempts.
GET POST PATCH DELETE/v1/keysCustomer 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 for GET /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.