Unified LLM Gateway
One key for GPT-6, Funsion, DeepSeek, GLM, and Kimi. Pay per token.
Drop-in OpenAI and Anthropic endpoints for Claude Code, Codex, and existing SDKs — including Funsion (Claude 5.1 / 5.5 parity at 50% off) and GPT-6 (30% off). Top up from US$10 with no subscription.
- -50%
- max below official USD
- US$10
- one-time top-up · never expires
- 3 APIs
- Chat, Responses & Anthropic
- 1M
- max context window (tokens)
from openai import OpenAI
client = OpenAI(
base_url="https://proxystacks.com/v1",
api_key="YOUR_RELAY_API_KEY",
)
response = client.chat.completions.create(
model="deepseek-v4.1-flash",
messages=[{"role": "user", "content": "Hello!"}],
)Swap in your API key and run with any published model ID
import { proxystacks } from "@proxystacks/ai-sdk-provider";
import { generateText } from "ai";
const { text } = await generateText({
model: proxystacks("deepseek-v4.1-flash"),
prompt: "Hello from ProxyStacks Relay!",
});Swap in your API key and run with any published model ID
{
"env": {
"ANTHROPIC_AUTH_TOKEN": "sk-relay-your-key",
"ANTHROPIC_BASE_URL": "https://proxystacks.com/anthropic",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "funsion-sonnet-5-5",
"ANTHROPIC_SMALL_FAST_MODEL": "deepseek-v4.1-flash"
}
}Swap in your API key and run with any published model ID
curl https://proxystacks.com/v1/chat/completions \
-H "Authorization: Bearer $RELAY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-v4.1-flash",
"messages": [{"role": "user", "content": "Hello!"}]
}'Swap in your API key and run with any published model ID
Standard wire protocols, zero SDK lock-in
Chat Completions
/v1/chat/completionsDrop-in for OpenAI SDKs and OpenCode. Supports SSE streaming, tool calling, and cached token billing.
Responses API
/v1/responsesDefault wire format for Codex CLI. Stateless forwarding with reasoning effort and structured tool outputs.
Anthropic Messages
/anthropic/v1/messagesSet ANTHROPIC_BASE_URL for Claude Code or Anthropic SDKs to call any model in the catalog.
AI coding tools
View docsQuickstart
Live in three steps
Create an API key
Generate an sk-relay- key in the dashboard and rotate or revoke it per project at any time.
RELAY_API_KEY="sk-relay-..."Point your base URL
Update the endpoint URL in your SDK config or CLI environment—no client code rewrite.
BASE_URL="https://proxystacks.com/v1"Call and inspect requests
Pass any published model ID; check TTFT, decode speed, and token cost per Request ID.
model: "deepseek-v4.1-flash"Architecture
Built for predictable cost and failover
- Cross-protocol failover
- Requests translate across OpenAI, Responses, and Anthropic upstreams as needed, failing over before headers commit.
- Cache & off-peak aware
- Prompt cache reads and writes bill separately at lower rates, with published off-peak schedules applied automatically.
- Per-request ledger
- Every call logs an isolated Request ID, TTFT, total latency, and exact token breakdown—no auto-renewing plans.
Compare prices
Official list prices and Relay token rates, side by side.
| Route | Official (Input) | Relay (Input) | Relay (Output) | Saving |
|---|---|---|---|---|
| funsion-fable-5-1 | $10.00 | $5.00 | $25.00 | 50% below list |
| funsion-fable-5 | $10.00 | $5.00 | $25.00 | 50% below list |
| funsion-opus-5-5 | $4.00 | $2.00 | $10.00 | 50% below list |
| funsion-sonnet-5-5 | $2.00 | $1.00 | $5.00 | 50% below list |
| funsion-sonnet-5 | $2.00 | $1.00 | $5.00 | 50% below list |
| funsion-haiku-5-5 | $0.10 | $0.050 | $0.250 | 50% below list |
| deepseek-v4.1-flash | $0.30 | $0.180 | $0.740 | 40% below list |
| glm-5.3 | $1.40 | $0.980 | $3.08 | 30% below list |
0% top-up fee (US$10 credits full US$10.00 — saves $1.35 vs OpenRouter’s 5.5% + $0.80 fee) · Balance never expires · 14-day unused balance refund on first top-up.
Models →Claude Code & OpenCode Monthly Token Cost Calculator
Estimate monthly USD spend by input/output volume, cache hit rate, and off-peak window vs official list prices and OpenRouter (+5.5% top-up fee).
- ProxyStacks Relay Monthly Est.
- $4.79-70%
- Official USD List Price Est.
- $15.72
- General Aggregator (List + 5.5% Fee)
- $16.58
0% top-up fee · balance never expires
$0.30 in / $1.20 out / 1M
Save $11.79/mo with Relay
Common questions
How is usage billed?
Every API call is metered in real time at the published token rate for the model route you use. The cost is deducted from your prepaid USD balance and recorded in a usage ledger. Rates already include the Relay platform service fee; applicable taxes are shown at checkout.
How does balance work?
Recharge tiers come in one-time $10–$500 options. The credited USD balance never expires while your account remains available.
Do I need a subscription?
No. Relay is pure prepaid: buy a recharge tier when you need balance, and nothing renews automatically.
Who processes payments?
Waffo Pancake acts as merchant of record for recharge purchases. Its checkout handles payment, applicable indirect taxes, and invoices. Your receipt or card statement may reference Waffo.
How is API request data handled?
Relay forwards request content to the backend model route selected for your call so a response can be generated. We record billing and diagnostic metadata. Provider dependencies and data handling are explained in the Privacy Policy.
Start with US$10, call any model.
Create a key in seconds and pay strictly for the tokens you use.