Skip to content

Announcement: offer

Launch month: get 20% extra on your first deposit of $10 or more, plus another 20% if you signed up with an invite link. Ends Nov 10, 23:59:59 (UTC+8)!

Click to recharge →

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 | sh

On 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.

POST /v1/messages
Demo
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

    No data
  • Antigravity

    3 models

    No data
  • sub2tok

    19 models

    Operational

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.

ModelServed byMultiplierInput lengthTokenInputOutputCache readCache write (5 min / 1 hour)
claude-fable-5Served bysub2tokMultiplier0.3xInput length≤ 1MInputYou pay $3 List price $10OutputYou pay $15 List price $50Cache readYou pay $0.30 List price $1Cache write (5 min / 1 hour)You pay $3.75 / $6 List price $12.50 / $20
claude-fable-5-1Served bysub2tokMultiplier0.3xInput length≤ 1MInputYou pay $3 List price $10OutputYou pay $15 List price $50Cache readYou pay $0.175 List price $0.25Cache write (5 min / 1 hour)You pay $3.75 / $6 List price $12.50 / $20
claude-haiku-5-5Served bysub2tokMultiplier0.87xInput length≤ 100KInputYou pay $0.087 List price $0.10OutputYou pay $0.435 List price $0.50Cache read$0.01Cache write (5 min / 1 hour)You pay $0.11 / $0.175 List price $0.125 / $0.20
Multiplier0.35xInput lengthclaude-haiku-5-5 > 100KInputYou pay $0.175 List price $0.50OutputYou pay $0.875 List price $2.50Cache readYou pay $0.02 List price $0.05Cache write (5 min / 1 hour)You pay $0.22 / $0.35 List price $0.625 / $1
claude-opus-4-6Served bysub2tok / AntigravityMultiplier0.25xInput length≤ 250KInputYou pay $1.25 List price $5OutputYou pay $6.25 List price $25Cache readYou pay $0.14 List price $0.50Cache write (5 min / 1 hour)You pay $1.565 / $2.50 List price $6.25 / $10
claude-opus-4-7Served bysub2tokMultiplier0.25xInput length≤ 1MInputYou pay $1.25 List price $5OutputYou pay $6.25 List price $25Cache readYou pay $0.14 List price $0.50Cache write (5 min / 1 hour)You pay $1.565 / $2.50 List price $6.25 / $10
claude-opus-4-8Served bysub2tokMultiplier0.25xInput length≤ 1MInputYou pay $1.25 List price $5OutputYou pay $6.25 List price $25Cache readYou pay $0.14 List price $0.50Cache write (5 min / 1 hour)You pay $1.565 / $2.50 List price $6.25 / $10
claude-opus-5Served bysub2tokMultiplier0.25xInput length≤ 1MInputYou pay $1.25 List price $5OutputYou pay $6.25 List price $25Cache readYou pay $0.14 List price $0.50Cache write (5 min / 1 hour)You pay $1.565 / $2.50 List price $6.25 / $10
claude-opus-5-5Served bysub2tokMultiplier0.25xInput length≤ 1MInputYou pay $1 List price $4OutputYou pay $5 List price $20Cache readYou pay $0.07 List price $0.20Cache write (5 min / 1 hour)You pay $1.25 / $2 List price $5 / $8
claude-sonnet-4-5Served bysub2tokMultiplier0.25xInput length≤ 200KInputYou pay $0.75 List price $3OutputYou pay $3.75 List price $15Cache readYou pay $0.075 List price $0.30Cache write (5 min / 1 hour)You pay $0.95 / $1.50 List price $3.75 / $6
claude-sonnet-4-6Served bysub2tok / AntigravityMultiplier0.25xInput length≤ 250KInputYou pay $0.75 List price $3OutputYou pay $3.75 List price $15Cache readYou pay $0.075 List price $0.30Cache write (5 min / 1 hour)You pay $0.95 / $1.50 List price $3.75 / $6
claude-sonnet-5Served bysub2tokMultiplier0.26xInput length≤ 1MInputYou pay $0.52 List price $2OutputYou pay $2.60 List price $10Cache readYou pay $0.06 List price $0.20Cache write (5 min / 1 hour)You pay $0.65 / $1.05 List price $2.50 / $4
claude-sonnet-5-5Served bysub2tokMultiplier0.25xInput length≤ 1MInputYou pay $0.50 List price $2OutputYou pay $2.50 List price $10Cache readYou pay $0.055 List price $0.10Cache write (5 min / 1 hour)You pay $0.625 / $1 List price $2.50 / $4
gemini-3.8-flashServed byAntigravityMultiplier0.097xInput length≤ 1MInputYou pay $0.08 List price $0.825OutputYou pay $0.40 List price $4.125Cache readYou pay $0.01 List price $0.083Cache write (5 min / 1 hour)You pay $0.005 / $0.15 List price $0.042 / $1.50
gpt-5.6-lunaServed bysub2tok / CodexMultiplier0.2xInput length≤ 272KInputYou pay $0.04 List price $0.20OutputYou pay $0.24 List price $1.20Cache readYou pay $0.005 List price $0.02Cache write (5 min / 1 hour)You pay $0.05 / $0.10 List price $0.25 / $0.40
Multiplier0.2xInput lengthgpt-5.6-luna > 272KInputYou pay $0.08 List price $0.40OutputYou pay $0.36 List price $1.80Cache readYou pay $0.01 List price $0.04Cache write (5 min / 1 hour)You pay $0.10 / $0.20 List price $0.50 / $0.80
gpt-5.6-solServed bysub2tok / CodexMultiplier0.2xInput length≤ 272KInputYou pay $0.80 List price $4OutputYou pay $4 List price $20Cache readYou pay $0.08 List price $0.40Cache write (5 min / 1 hour)You pay $1 / $0.80 List price $5 / $4
Multiplier0.2xInput lengthgpt-5.6-sol > 272KInputYou pay $1.60 List price $8OutputYou pay $6 List price $30Cache readYou pay $0.20 List price $0.80Cache write (5 min / 1 hour)You pay $2 / $1.60 List price $10 / $8
gpt-5.6-terraServed bysub2tok / CodexMultiplier0.2xInput length≤ 272KInputYou pay $0.40 List price $2OutputYou pay $2.40 List price $12Cache readYou pay $0.05 List price $0.20Cache write (5 min / 1 hour)You pay $0.50 / $0.80 List price $2.50 / $4
Multiplier0.2xInput lengthgpt-5.6-terra > 272KInputYou pay $0.80 List price $4OutputYou pay $3.60 List price $18Cache readYou pay $0.10 List price $0.40Cache write (5 min / 1 hour)You pay $1 / $1.60 List price $5 / $8
gpt-6-astraServed bysub2tok / CodexMultiplier0.25xInput length≤ 272KInputYou pay $2.50 List price $10OutputYou pay $12.50 List price $50Cache readYou pay $0.25 List price $1Cache write (5 min / 1 hour)You pay $3.15 / $5 List price $12.50 / $20
Multiplier0.25xInput lengthgpt-6-astra > 272KInputYou pay $5 List price $20OutputYou pay $18.75 List price $75Cache readYou pay $0.50 List price $2Cache write (5 min / 1 hour)You pay $6.25 / $10 List price $25 / $40
gpt-6-lunaServed bysub2tok / CodexMultiplier0.25xInput length≤ 272KInputYou pay $0.025 List price $0.10OutputYou pay $0.125 List price $0.50Cache readYou pay $0.005 List price $0.01Cache write (5 min / 1 hour)You pay $0.035 / $0.05 List price $0.125 / $0.20
Multiplier0.25xInput lengthgpt-6-luna > 272KInputYou pay $0.05 List price $0.20OutputYou pay $0.188 List price $0.75Cache readYou pay $0.01 List price $0.02Cache write (5 min / 1 hour)You pay $0.065 / $0.10 List price $0.25 / $0.40
gpt-6-solServed bysub2tok / CodexMultiplier0.25xInput length≤ 272KInputYou pay $0.50 List price $2OutputYou pay $2.50 List price $10Cache readYou pay $0.05 List price $0.20Cache write (5 min / 1 hour)You pay $0.65 / $1 List price $2.50 / $4
Multiplier0.25xInput lengthgpt-6-sol > 272KInputYou pay $1 List price $4OutputYou pay $3.75 List price $15Cache readYou pay $0.10 List price $0.40Cache write (5 min / 1 hour)You pay $1.25 / $2 List price $5 / $8
gpt-6.1-solServed bysub2tok / CodexMultiplier0.25xInput length≤ 272KInputYou pay $0.50 List price $2OutputYou pay $2.50 List price $10Cache readYou pay $0.025 List price $0.10Cache write (5 min / 1 hour)You pay $0.65 / $2.50 List price $2.50 / $10
Multiplier0.25xInput lengthgpt-6.1-sol > 272KInputYou pay $1 List price $4OutputYou pay $3.75 List price $15Cache readYou pay $0.05 List price $0.20Cache write (5 min / 1 hour)You pay $1.25 / $5 List price $5 / $20

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.

~/.claude/sub2tok.settings.json
{
  "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.

~/.codex/sub2tok.config.toml
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.

Terminal · Chat Completions
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.

Terminal
magpie plugin add @sub2tok/magpie
magpie plugin login sub2tok

Claude 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.

  1. 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).
  2. Then choose Developer → Configure Third-Party Inference….
  3. Under Connection, set Inference provider to Gateway, Gateway base URL to https://api.sub2tok.com, and Gateway API key to sk-your-token. Leave Gateway auth scheme on Bearer.
  4. 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.
  5. Click Apply Changes. The app restarts on sub2tok and lists the Claude models from the gateway.

Anthropic's guide (opens in a new tab)

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.

Terminal
sub2tok codex-app on