Getting started
Quickstart
Get a key, fund it and send your first request in two minutes.
spillway speaks the OpenAI API. Change two settings and every request goes to the cheapest healthy seller for the model you ask for.
Three steps
Create an API key
Sign in with your wallet in the dashboard (MetaMask, Rabby, Coinbase Wallet, Phantom or Solflare) and click Create key. Copy it now: it is shown once.
Add funds
Deposit USDC from the dashboard on Base, Ethereum, Arbitrum, Optimism, Polygon, Elysium or Solana. It is credited automatically once confirmed.
Point your client at spillway
export OPENAI_BASE_URL=https://api.spillway.now/v1
export OPENAI_API_KEY=sk-spill-...Python
from openai import OpenAI
client = OpenAI(base_url="https://api.spillway.now/v1", api_key="sk-spill-...")
reply = client.chat.completions.create(
model="claude-sonnet-5-5",
messages=[{"role": "user", "content": "Write a haiku about rivers"}],
)
print(reply.choices[0].message.content)TypeScript, streaming
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.spillway.now/v1", apiKey: process.env.SPILL_KEY });
const stream = await client.chat.completions.create({
model: "claude-sonnet-5-5",
messages: [{ role: "user", content: "Write a haiku about rivers" }],
stream: true,
});
for await (const chunk of stream) process.stdout.write(chunk.choices[0]?.delta?.content ?? "");curl
curl https://api.spillway.now/v1/chat/completions \
-H "Authorization: Bearer $SPILL_KEY" -H "Content-Type: application/json" \
-d '{"model":"gpt-5-mini","messages":[{"role":"user","content":"Hello"}]}'Embeddings work the same way:
client.embeddings.create(model="text-embedding-3-small", input=["hello"]).