Claude Code pricing on 59API: a token-by-token cost breakdown
Claude Code bills are hard to predict
Claude Code is easy to start and surprisingly hard to budget. One agentic loop can read a file, rewrite a function, run the tests and send the result back, and every one of those steps moves tokens through your account. The cost depends on the model you pick, how much context you feed it, how much it writes back, and how often it re-reads material it has already seen.
That is why a single headline number is not much help. What you actually need is the per-token rate for the exact model your client is calling, plus a worked example that shows how a realistic request pattern adds up. That is what this breakdown gives you, using the current 59API rates for Claude Fable 5, Claude Fable 5.1, Claude Haiku 4.5, Claude Opus 5, Claude Opus 5.5, Claude Sonnet 5 and Claude Sonnet 5.5, all priced per 1 million tokens.
59API is an independent third-party AI API relay. You get one account and one API key, one API host at https://api.59api.com, and access to Claude, GPT, Gemini, DeepSeek and other models. Balance is prepaid and charged per request by real token usage. There is no monthly fee, and your balance never expires, so a quiet week does not cost you anything and an active week is billed only for what you actually consumed.
Billing is in CNY, with USD figures shown at ¥7.2 = $1. Top-ups start at ¥10 and go up to ¥1000, paid by WeChat Pay or bank card, and invoices are available. So when we walk through the numbers below, you can read them in either currency without guessing at an exchange rate.
The Claude rates you will actually use
Here is the current Claude rate sheet on 59API, per 1 million tokens, with the model id you need for your configuration:
- Claude Sonnet 5.5 (
claude-sonnet-5-5): input $1.11 (¥8), output $5.56 (¥40), cache read $0.0972 (¥0.7). Official list price: $2 / $10. - Claude Sonnet 5 (
claude-sonnet-5): input $1.11 (¥8), output $5.56 (¥40), cache read $0.0972 (¥0.7). Official list price: $2 / $10. - Claude Opus 5.5 (
claude-opus-5-5): input $1.53 (¥11), output $7.22 (¥52), cache read $0.0694 (¥0.5). Official list price: $4 / $20. - Claude Opus 5 (
claude-opus-5): input $1.81 (¥13), output $9.03 (¥65), cache read $0.1111 (¥0.8). Official list price: $5 / $25. - Claude Haiku 4.5 (
claude-haiku-4-5-20251001): input $0.3472 (¥2.5), output $1.67 (¥12), cache read $0.0278 (¥0.2). Official list price: $1 / $5.
Two patterns jump out. First, output tokens cost several times more than input tokens on every model here, so a chatty agent that narrates every step is more expensive than a terse one that only reports the diff. Second, cache reads are priced far below fresh input, which matters a great deal in a coding loop where the same repository files are re-read on every turn.
The official list prices above are reference points only. 59API is not an official channel, partner or reseller for any of these providers, and the list prices exist here simply so you can see how the same traffic is priced elsewhere.
Worked examples: what a session actually costs
Numbers get clearer when you attach them to a specific token pattern. Consider three hypothetical Claude Code workloads, billed on 59API without cache use, and compare each with the official list price for the same traffic.
- Claude Sonnet 5.5, 3M input + 0.5M output tokens without cache: $6.11 (¥44) on 59API. At official list price the same traffic is $11 (about ¥79.2), so 59API is about 56% of list price.
- Claude Opus 5.5, 2M input + 0.5M output tokens without cache: $6.67 (¥48) on 59API. At official list price it is $18 (about ¥129.6), so 59API is about 37% of list price.
- Claude Haiku 4.5, 5M input + 1M output tokens without cache: $3.4 (¥24.5) on 59API. At official list price it is $10 (about ¥72), so 59API is about 34% of list price.
Read those examples as scenarios, not promises. A heavy session with long file diffs, extended tool output and repeated retries will consume more tokens than any of them. A short fix in a small repository may consume far less. What the examples show is the shape of the bill and how the model choice moves it.
Haiku 4.5 carries the smallest input rate of the Claude models on this sheet, while Opus 5.5 sits at the premium end. Sonnet 5 and Sonnet 5.5 sit in between at $1.11 (¥8) input and $5.56 (¥40) output per 1 million tokens, which makes them a sensible default for most day-to-day coding work.
Because 59API meters by real usage, you can start with a small balance, watch the first day of traffic, and then decide whether the model mix needs adjusting. You are not committing to a fixed plan in advance.
Cache reads, prepaid balance and top-ups
Cache reads deserve their own line in any Claude Code budget because they are priced far below the other token types. On Claude Sonnet 5.5, a cache read is $0.0972 (¥0.7) per 1 million tokens, against $1.11 (¥8) for fresh input. On Claude Opus 5.5, cache reads are $0.0694 (¥0.5) against $1.53 (¥11) input. On Claude Haiku 4.5, cache reads are $0.0278 (¥0.2) against $0.3472 (¥2.5) input.
That gap is why a long agentic session, where the same context is handed back to the model repeatedly, behaves very differently from the no-cache examples above. The rates only apply when your client actually sends cacheable requests and the provider returns a cache hit, but the pricing incentive points in a clear direction.
The money side is deliberately simple. You top up once and spend from that balance as requests arrive. Available top-ups are ¥10, ¥50, ¥100, ¥200, ¥500 and ¥1000, paid by WeChat Pay or bank card, with invoices available. There is no monthly fee, the balance never expires, and monthly and weekly cards are optional rather than required.
Cards work differently, and it is worth understanding the boundary before you buy one. A card has its own key, can call that family's models only, and is paid only from the card. It never falls back to wallet balance, and a balance key never draws on a card. Unused quota does not roll over. Quota and caps are card metering units written in $, not official list-price dollars, so they should not be read as direct price comparisons.
Connecting Claude Code to 59API
Setup is two environment variables and one honest constraint. Set ANTHROPIC_BASE_URL=https://api.59api.com and ANTHROPIC_AUTH_TOKEN=YOUR_59API_KEY, then run Claude Code from the genuine Claude Code or Claude Desktop client, version 2.1.285 or newer. Claude models work through those genuine clients only, never through the OpenAI SDK, cURL or other clients, so if you are coming from an OpenAI-compatible setup, switch the client rather than assume the endpoint will work.
Once connected, choose the model id that matches your budget: claude-sonnet-5-5, claude-opus-5-5, claude-haiku-4-5-20251001, claude-opus-5, claude-sonnet-5, claude-fable-5 or claude-fable-5-1. Your prepaid balance is then charged per request according to the real token usage of each call.
If your usage is steady enough to want a fixed allowance, cards are available for Claude, including weekly options such as the C-PRO weekly card at $40.14 (¥289) with quota $290 and weekly cap $290, and the C-MAX weekly card at $77.64 (¥559) with quota $570 and weekly cap $570. Both run for 7 days and drain at the card's metering price × 2.4. Thirty-day Claude cards span C-PRO, C-MAX and enterprise tiers, and the same separation applies: card key for card models, wallet key for wallet models, never crossed.
Start with the prepaid route, watch your token usage on the models you already trust, and move to a card only when the pattern justifies it. Either way, 59API gives you the same thing: one key, one host, transparent per-token pricing, and a bill you can actually reconstruct.