Your agents, priced by the token
Connect any agent with one command or one config file. Call any model on the price list from any client protocol. Have a subscription sitting idle? Share it during the hours you pick.
One command to connect
curl -fsSL https://sub2tok.com/install.sh | shcurl -fsSL https://sub2tok.com/install.sh | shirm https://sub2tok.com/install.ps1 | iexOn macOS or Linux, run it in a terminal; on Windows, run it in PowerShell. The script opens your browser to sign you in, creates a token and sets up Claude Code and Codex CLI.
- Input tokens
- 1,248
- Cache reads
- 18,392
- Output tokens
- 52
- Request cost
- $0.001888
- Time to first token
- 182 ms
- Status
- Complete
This panel replays sample data. Live requests are metered the same way, and your recent calls show up in your console.
How it works
01
Connect in one command
Run one install command, or point your client's upstream URL at this site and paste in an API token issued here. Then call any model on the price list, with no protocol changes.
02
Routed by model
The gateway checks your token, balance and concurrency limit, then routes the request to an upstream that serves the model. Responses stream back as they're generated, and input, output and cache tokens are metered separately along the way.
03
Settled in one transaction
Each charge and its ledger entry commit in the same database transaction, so your balance can always be recomputed from the ledger.
Pricing
USD per million tokens
Each price shown is what you pay, and the struck-through one below it is the official price. The multiplier covers input and output only; cache reads and writes have their own prices. When input and output have different multipliers, both are shown, and long-prompt prices get their own row.
Service status
Codex
7 models
Antigravity
3 models
sub2tok
19 models
When subscriptions are busy or failing, sub2tok's direct supply automatically picks up the models it serves.
Each card reflects real calls over the last 15 minutes. A card isn't marked degraded or down with fewer than 3 failures. Failures on the caller's side (such as insufficient balance or cancelled requests) and sharers' calls on their own subscriptions don't count.
| Model | Served by | Multiplier | Input lengthToken | Input | Output | Cache read | Cache write (5 min / 1 hour) |
|---|---|---|---|---|---|---|---|
| claude-fable-5 | Served bysub2tok | Multiplier0.3x | Input length≤ 1M | InputYou pay $3 List price | OutputYou pay $15 List price | Cache readYou pay $0.30 List price | Cache write (5 min / 1 hour)You pay $3.75 / $6 List price |
| claude-fable-5-1 | Served bysub2tok | Multiplier0.3x | Input length≤ 1M | InputYou pay $3 List price | OutputYou pay $15 List price | Cache readYou pay $0.175 List price | Cache write (5 min / 1 hour)You pay $3.75 / $6 List price |
| claude-haiku-5-5 | Served bysub2tok | Multiplier0.87x | Input length≤ 100K | InputYou pay $0.087 List price | OutputYou pay $0.435 List price | Cache read$0.01 | Cache write (5 min / 1 hour)You pay $0.11 / $0.175 List price |
| Multiplier0.35x | Input lengthclaude-haiku-5-5 > 100K | InputYou pay $0.175 List price | OutputYou pay $0.875 List price | Cache readYou pay $0.02 List price | Cache write (5 min / 1 hour)You pay $0.22 / $0.35 List price | ||
| claude-opus-4-6 | Served bysub2tok / Antigravity | Multiplier0.25x | Input length≤ 250K | InputYou pay $1.25 List price | OutputYou pay $6.25 List price | Cache readYou pay $0.14 List price | Cache write (5 min / 1 hour)You pay $1.565 / $2.50 List price |
| claude-opus-4-7 | Served bysub2tok | Multiplier0.25x | Input length≤ 1M | InputYou pay $1.25 List price | OutputYou pay $6.25 List price | Cache readYou pay $0.14 List price | Cache write (5 min / 1 hour)You pay $1.565 / $2.50 List price |
| claude-opus-4-8 | Served bysub2tok | Multiplier0.25x | Input length≤ 1M | InputYou pay $1.25 List price | OutputYou pay $6.25 List price | Cache readYou pay $0.14 List price | Cache write (5 min / 1 hour)You pay $1.565 / $2.50 List price |
| claude-opus-5 | Served bysub2tok | Multiplier0.25x | Input length≤ 1M | InputYou pay $1.25 List price | OutputYou pay $6.25 List price | Cache readYou pay $0.14 List price | Cache write (5 min / 1 hour)You pay $1.565 / $2.50 List price |
| claude-opus-5-5 | Served bysub2tok | Multiplier0.25x | Input length≤ 1M | InputYou pay $1 List price | OutputYou pay $5 List price | Cache readYou pay $0.07 List price | Cache write (5 min / 1 hour)You pay $1.25 / $2 List price |
| claude-sonnet-4-5 | Served bysub2tok | Multiplier0.25x | Input length≤ 200K | InputYou pay $0.75 List price | OutputYou pay $3.75 List price | Cache readYou pay $0.075 List price | Cache write (5 min / 1 hour)You pay $0.95 / $1.50 List price |
| claude-sonnet-4-6 | Served bysub2tok / Antigravity | Multiplier0.25x | Input length≤ 250K | InputYou pay $0.75 List price | OutputYou pay $3.75 List price | Cache readYou pay $0.075 List price | Cache write (5 min / 1 hour)You pay $0.95 / $1.50 List price |
| claude-sonnet-5 | Served bysub2tok | Multiplier0.26x | Input length≤ 1M | InputYou pay $0.52 List price | OutputYou pay $2.60 List price | Cache readYou pay $0.06 List price | Cache write (5 min / 1 hour)You pay $0.65 / $1.05 List price |
| claude-sonnet-5-5 | Served bysub2tok | Multiplier0.25x | Input length≤ 1M | InputYou pay $0.50 List price | OutputYou pay $2.50 List price | Cache readYou pay $0.055 List price | Cache write (5 min / 1 hour)You pay $0.625 / $1 List price |
| gemini-3.8-flash | Served byAntigravity | Multiplier0.097x | Input length≤ 1M | InputYou pay $0.08 List price | OutputYou pay $0.40 List price | Cache readYou pay $0.01 List price | Cache write (5 min / 1 hour)You pay $0.005 / $0.15 List price |
| gpt-5.6-luna | Served bysub2tok / Codex | Multiplier0.2x | Input length≤ 272K | InputYou pay $0.04 List price | OutputYou pay $0.24 List price | Cache readYou pay $0.005 List price | Cache write (5 min / 1 hour)You pay $0.05 / $0.10 List price |
| Multiplier0.2x | Input lengthgpt-5.6-luna > 272K | InputYou pay $0.08 List price | OutputYou pay $0.36 List price | Cache readYou pay $0.01 List price | Cache write (5 min / 1 hour)You pay $0.10 / $0.20 List price | ||
| gpt-5.6-sol | Served bysub2tok / Codex | Multiplier0.2x | Input length≤ 272K | InputYou pay $0.80 List price | OutputYou pay $4 List price | Cache readYou pay $0.08 List price | Cache write (5 min / 1 hour)You pay $1 / $0.80 List price |
| Multiplier0.2x | Input lengthgpt-5.6-sol > 272K | InputYou pay $1.60 List price | OutputYou pay $6 List price | Cache readYou pay $0.20 List price | Cache write (5 min / 1 hour)You pay $2 / $1.60 List price | ||
| gpt-5.6-terra | Served bysub2tok / Codex | Multiplier0.2x | Input length≤ 272K | InputYou pay $0.40 List price | OutputYou pay $2.40 List price | Cache readYou pay $0.05 List price | Cache write (5 min / 1 hour)You pay $0.50 / $0.80 List price |
| Multiplier0.2x | Input lengthgpt-5.6-terra > 272K | InputYou pay $0.80 List price | OutputYou pay $3.60 List price | Cache readYou pay $0.10 List price | Cache write (5 min / 1 hour)You pay $1 / $1.60 List price | ||
| gpt-6-astra | Served bysub2tok / Codex | Multiplier0.25x | Input length≤ 272K | InputYou pay $2.50 List price | OutputYou pay $12.50 List price | Cache readYou pay $0.25 List price | Cache write (5 min / 1 hour)You pay $3.15 / $5 List price |
| Multiplier0.25x | Input lengthgpt-6-astra > 272K | InputYou pay $5 List price | OutputYou pay $18.75 List price | Cache readYou pay $0.50 List price | Cache write (5 min / 1 hour)You pay $6.25 / $10 List price | ||
| gpt-6-luna | Served bysub2tok / Codex | Multiplier0.25x | Input length≤ 272K | InputYou pay $0.025 List price | OutputYou pay $0.125 List price | Cache readYou pay $0.005 List price | Cache write (5 min / 1 hour)You pay $0.035 / $0.05 List price |
| Multiplier0.25x | Input lengthgpt-6-luna > 272K | InputYou pay $0.05 List price | OutputYou pay $0.188 List price | Cache readYou pay $0.01 List price | Cache write (5 min / 1 hour)You pay $0.065 / $0.10 List price | ||
| gpt-6-sol | Served bysub2tok / Codex | Multiplier0.25x | Input length≤ 272K | InputYou pay $0.50 List price | OutputYou pay $2.50 List price | Cache readYou pay $0.05 List price | Cache write (5 min / 1 hour)You pay $0.65 / $1 List price |
| Multiplier0.25x | Input lengthgpt-6-sol > 272K | InputYou pay $1 List price | OutputYou pay $3.75 List price | Cache readYou pay $0.10 List price | Cache write (5 min / 1 hour)You pay $1.25 / $2 List price | ||
| gpt-6.1-sol | Served bysub2tok / Codex | Multiplier0.25x | Input length≤ 272K | InputYou pay $0.50 List price | OutputYou pay $2.50 List price | Cache readYou pay $0.025 List price | Cache write (5 min / 1 hour)You pay $0.65 / $2.50 List price |
| Multiplier0.25x | Input lengthgpt-6.1-sol > 272K | InputYou pay $1 List price | OutputYou pay $3.75 List price | Cache readYou pay $0.05 List price | Cache write (5 min / 1 hour)You pay $1.25 / $5 List price |
Input length includes cache reads and writes. The model's context and output limits still apply.
“Served by” shows who serves each model: sub2tok when we connect to it directly, or the provider's name when it comes from a subscription. A model can have more than one. Calls to a model nobody serves right now fail, and until someone does, the setup guide uses a model from the same series that is served.
Rows marked “>” are long-prompt prices. Once input goes past that length, the whole request is billed at those prices, output included, not just the tokens over the line.
List prices follow the official pricing pages. Prices that aren't struck through are exactly what you're billed. You can deposit with Alipay or with USDT or USDC, and 1 USDT or 1 USDC equals $1. New accounts get a $1 signup bonus once they verify their email.
Setup guide
The one-line command at the top sets up Claude Code and Codex CLI. To set it up by hand or connect another client, first create a token on the API tokens page in your console, then follow the steps below. On Windows, ~ in a path means %USERPROFILE%. For OpenClaw, Hermes Agent and other clients, change the upstream URL as shown under Call the API directly; they can call any model on the price list too.
sk-your-token below is a placeholder. Sign up, create a token in your console and use it instead.
Claude Code
Don't have Claude Code yet? Install it (opens in a new tab) first. Save this as ~/.claude/sub2tok.settings.json and start Claude Code with claude --settings ~/.claude/sub2tok.settings.json. Only sessions started this way use sub2tok; your usual settings stay as they are. The three DEFAULT_*_MODEL variables can be set to any model on the price list.
{
"env": {
"ANTHROPIC_BASE_URL": "https://api.sub2tok.com",
"ANTHROPIC_AUTH_TOKEN": "sk-your-token",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "claude-opus-5-5",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-sonnet-5-5",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "claude-haiku-5-5",
"CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY": "1",
"DISABLE_TELEMETRY": "1",
"DISABLE_ERROR_REPORTING": "1"
}
}Codex CLI
Don't have Codex CLI yet? Install it (opens in a new tab) first. Save this as ~/.codex/sub2tok.config.toml and start Codex CLI with codex --profile sub2tok; no need to edit config.toml. model can be set to any model on the price list.
model_provider = "sub2tok"
model = "gpt-6.1-sol"
[model_providers.sub2tok]
name = "sub2tok"
base_url = "https://api.sub2tok.com/v1"
capabilities = { remote_compaction = "v2" }
experimental_bearer_token = "sk-your-token"Call the API directly
For other clients or your own code, set the base URL to https://api.sub2tok.com for Anthropic Messages, or https://api.sub2tok.com/v1 for OpenAI Chat Completions and Responses, and send the token as Authorization: Bearer. Any model on the price list works on any of them.
export SUB2TOK_API_KEY="sk-your-token"
curl https://api.sub2tok.com/v1/chat/completions \
-H "content-type: application/json" \
-H "authorization: Bearer $SUB2TOK_API_KEY" \
-d '{
"model": "claude-opus-5-5",
"messages": [{ "role": "user", "content": "Hi" }]
}'magpie
Install the sub2tok plugin and sign in with your token, then pick sub2tok models in magpie. The model list, prices and balance sync automatically; every charge is recorded in the ledger on the Balance page of your console.
magpie plugin add @sub2tok/magpie
magpie plugin login sub2tokClaude desktop app
Don't have the Claude desktop app yet? Download it (opens in a new tab) first. The app doesn't read the config files above, so set it up once inside the app.
- From the menu bar, choose Help → Troubleshooting → Enable Developer Mode (on Windows, it's in the ☰ menu at the top left of the sign-in screen).
- Then choose Developer → Configure Third-Party Inference….
- Under Connection, set Inference provider to Gateway, Gateway base URL to
https://api.sub2tok.com, and Gateway API key tosk-your-token. Leave Gateway auth scheme on Bearer. - Under Capabilities, add
*to Allowed egress hosts. Without it, the app's sandbox blocks network access, so commands like npm install and git clone fail. - Click Apply Changes. The app restarts on sub2tok and lists the Claude models from the gateway.
Codex app
Don't have the Codex app yet? Download it (opens in a new tab) first. The app ignores profiles and only reads config.toml. Install the sub2tok command with the one-line command at the top of the page, then run this. It backs up config.toml and adds the sub2tok settings at the top. To switch back to your original settings, run sub2tok codex-app off.
sub2tok codex-app on