Top up from $25. Calls stop at $0.
One prepaid key for GPT, Claude, Gemini and more, plus image, video and speech models. When your credit runs out, calls are refused, not billed.
Provider price plus 10% per call · No top-up fee
Keep your OpenAI code. Change three lines.
Python
from openai import OpenAI
import os
client = OpenAI(
base_url="https://api.tokens.pay/v1",
api_key=os.environ["TOKENS_PAY_KEY"],
)
reply = client.chat.completions.create(
model="deepseek-flash",
messages=[{"role": "user", "content": "Hello"}],
)
Node
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.tokens.pay/v1",
apiKey: process.env.TOKENS_PAY_KEY,
});
const reply = await client.chat.completions.create({
model: "deepseek-flash",
messages: [{ role: "user", content: "Hello" }],
});
curl
curl https://api.tokens.pay/v1/chat/completions \
-H "Authorization: Bearer $TOKENS_PAY_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "deepseek-flash", "messages": [{"role": "user", "content": "Hello"}]}'
Base URL, key and model. Your key works with every model below.
The rules your key follows
-
Held before it runs.
Each call reserves its cost first: your input plus max_tokens of output (4,096 if unset). No credit, no call.
-
Retries charged once.
Send an Idempotency-Key. A retry of a finished call gets a 409, not a second charge.
-
Provider price plus 10%.
Each model costs its provider’s official price plus 10%, charged per call. Nothing is added when you buy credit.
-
Prompts not stored.
Prompts and outputs pass through in memory. We keep the bill: model, tokens, cost. What we keep
Every model on your key
| Model | Input /M | Cached input /M | Output /M | Context |
|---|---|---|---|---|
| GPT-6 Astra | $11.00 | $1.10 | $55.00 | 1.05M |
| GPT-6.1 Sol | $2.20 | $0.11 | $11.00 | 1.05M |
| GPT-6.1 Terra | $1.10 | $0.055 | $5.50 | 1.05M |
| GPT-6 Luna | $0.11 | $0.011 | $0.55 | 1.05M |
| Claude Fable 5.2 | $8.80 | $0.22 | $44.00 | 1M |
| Claude Fable 5.1 | $11.00 | $0.275 | $55.00 | 1M |
| Claude Opus 5.5 | $4.40 | $0.22 | $22.00 | 1M |
| Claude Sonnet 5.5 | $2.20 | $0.11 | $11.00 | 1M |
| Claude Haiku 5.5 | $0.11 | $0.011 | $0.55 | 1M |
| Gemini 4 Argon | $4.40 | $0.22 | $22.00 | 1M |
| Gemini 4 Carbon | $4.40 | $0.22 | $22.00 | 1M |
| Gemini 3.8 Flash | $0.825 | $0.083 | $4.13 | 1M |
Price changes on : $1.65 input · $0.165 cached input · $8.25 output per 1M tokens | ||||
| DeepSeek V4.1 Flash | $0.165 | $0.0033 | $0.66 | 1M |
| Kimi K3.1 Pro | $2.17 | $0.217 | $11.35 | 1M |
| Kimi K3.1 Pro Highspeed | $4.34 | $0.217 | $22.69 | 1M |
| GLM-5.3 | $0.99 | $0.22 | $4.40 | 1M |
| GLM-5.3 Flash | $0.165 | $0.033 | $0.55 | 1M |
Also on your key: image, video, speech and transcription models. See their prices
Add credit, get your key
- Per token
- The provider’s price plus 10%, as listed
- Top-up fee
- None
- Subscription
- None
- At $0
- Calls are refused, not billed
- Your key
- Comes with your first top-up
- Prompts
- Not stored
- Refunds
- 14 days, unused credit · Terms
- Payment
- Shown at checkout
$25 to $500, in steps of $5.
- Credit
- $25.00
- Top-up fee
- None
- You pay
- $25.00
$25 of credit buys about 38M output tokens with DeepSeek V4.1 Flash
You’ll sign in first. Nothing is charged until you confirm on the payment page.