Claude Sonnet 5 pricing on 59API: rates, setup, use cases
Why model pricing is the hard part of choosing Claude
Choosing a Claude model takes seconds. Working out what a week of real Claude Code sessions will actually cost is where the friction starts. Every prompt adds input tokens, every generated patch adds output tokens, and repeated context can add cache reads. A model that looks reasonable on a pricing page can turn into a surprising line item once an agent loops through a large codebase for hours.
That is the problem 59API is built to make more predictable. 59API is an independent third-party AI API relay, not an official channel for any model vendor. One account gives you one API key and one API host, https://api.59api.com, and the same account can serve Claude, GPT, Gemini, DeepSeek and other models. You top up a prepaid balance, and 59API charges per request based on real token usage. There is no monthly fee, and your balance never expires.
This guide walks through Claude Sonnet 5 pricing on 59API, the exact connection settings, and the situations where Sonnet 5 is a sensible default versus when a different rate profile fits your workload better. Every figure below is per 1 million tokens, billed in CNY, with USD shown at ¥7.2 = $1.
Claude Sonnet 5 pricing on 59API, token by token
The model id you will use is claude-sonnet-5. On 59API the current rate is $1.11 (¥8) for input, $5.56 (¥40) for output and $0.0972 (¥0.7) for a cache read, per 1 million tokens. The official list price is $2 / $10 for input and output, so both directions of traffic are billed below that reference price.
Because you pay for the tokens you actually use, the key question is which side of a request dominates your work:
- Prompt-heavy sessions: long system prompts, big file contexts and repeated instructions push input tokens up, and each million costs $1.11 (¥8).
- Generation-heavy sessions: long answers, refactors and generated code push output tokens up, at $5.56 (¥40) per million.
- Repeat context: cache reads are $0.0972 (¥0.7) per million, so reusing context keeps that portion of the bill down.
Claude Sonnet 5.5, model id claude-sonnet-5-5, is listed at exactly the same rates: $1.11 (¥8) input, $5.56 (¥40) output and $0.0972 (¥0.7) cache read, with an official list price of $2 / $10. If you want the newer version and you budget by token volume, the per-token math does not change.
One more detail worth internalising: 59API meters by real usage rather than by subscription tier. There is no seat count to negotiate and no monthly invoice for the API itself. Your balance simply moves as requests come in, which makes it easy to test Sonnet 5 on a small project first and scale only once the numbers look right.
When Sonnet 5 fits your workload
Sonnet 5 is a balanced middle-of-the-road choice for day-to-day development, but it is not the only option on 59API. The useful way to compare is by rate profile, since that is the part you can forecast.
For a hypothetical high-volume assistant that makes many short calls, Claude Haiku 4.5 (model id claude-haiku-4-5-20251001) is priced at $0.3472 (¥2.5) input, $1.67 (¥12) output and $0.0278 (¥0.2) cache read, with an official list price of $1 / $5. A worked example: 5M input plus 1M output tokens without cache costs $3.4 (¥24.5) on 59API, compared with $10 (about ¥72) at official list price, so 59API is about 34% of list price.
At the other end, Claude Opus 5.5 (model id claude-opus-5-5) is listed at $1.53 (¥11) input, $7.22 (¥52) output and $0.0694 (¥0.5) cache read, official list price $4 / $20. Its worked example runs $6.67 (¥48) on 59API for 2M input plus 0.5M output tokens without cache, against $18 (about ¥129.6) at official list price, which makes it about 37% of list price.
So the decision is straightforward: start with Sonnet 5 when you want a balanced rate profile, drop toward Haiku 4.5 when request volume is the dominant cost, and step up to Opus 5.5 when you want a different tier for selected tasks. Because 59API exposes all of these through the same account and host, you can switch model ids without rewriting your integration.
Connect Claude Sonnet 5 in Claude Code or Claude Desktop
Here is the part that saves the most time. Claude models on 59API work only through the genuine Claude Code or Claude Desktop client, and Claude Code needs to be 2.1.285 or newer. They do not work through the OpenAI SDK, cURL or other clients.
Set two environment variables and you are done:
ANTHROPIC_BASE_URL=https://api.59api.comANTHROPIC_AUTH_TOKEN=YOUR_59API_KEY
Point your client at that base URL, paste your 59API key into the token variable, and select claude-sonnet-5 as the model. There is no separate SDK for Claude, no custom request adapter and no second key to manage. The same key that funds your prepaid balance is the one you put in the configuration.
It is equally important to know what the OpenAI-compatible path is for, because mixing the two causes confusing errors. Codex, OpenAI SDKs, cURL and OpenAI-compatible clients such as Cursor, Cherry Studio, Cline and OpenCode work with GPT, DeepSeek and other non-Claude, non-Gemini models only, using base_url https://api.59api.com/v1 and chat endpoint https://api.59api.com/v1/chat/completions. Gemini models follow Google's native protocol through Gemini CLI with GOOGLE_GEMINI_BASE_URL=https://api.59api.com and GEMINI_API_KEY=YOUR_59API_KEY; they are not OpenAI-compatible and do not work on /v1/chat/completions.
Keep that separation clean and setup takes minutes rather than an afternoon.
Paying for it: prepaid balance, top-ups and optional cards
59API bills against a prepaid balance, so the last step is funding it. Top-ups come in ¥10, ¥50, ¥100, ¥200, ¥500 and ¥1000, paid by WeChat Pay or bank card, and invoices are available. Since billing is based on actual token usage and your balance never expires, a small first top-up is enough to start testing Sonnet 5 on a real repository.
Monthly and weekly cards are optional. A card has its own key, can only call that family's models 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, and quota and caps are card metering units written in $, not official list-price dollars, so they should not be converted into official prices.
For example, the C-PRO Starter card for Claude (30 days) is $83.19 (¥599), with quota $610 and a weekly cap of $230, draining at the card's metering price × 2.4, and a reference value at official list prices of about $169.44 (¥1220). A weekly option exists too: the Weekly C-PRO $290 card for Claude (7 days) is $40.14 (¥289), with quota $290 and a weekly cap of $290, draining at the card's metering price × 2.4, and a reference value at official list prices of about $80.56 (¥580).
To size a card, use a worked example on the Claude family. Claude Sonnet 5.5, 3M input plus 0.5M output tokens without cache, costs $6.11 (¥44) on 59API, against $11 (about ¥79.2) at official list price, so 59API is about 56% of list price. Multiply that shape by your own traffic, then decide between pay-as-you-go balance and a card. Either way, 59API gives you one key, one host and a bill you can trace back to real token usage.
Ready to get started?
One key for Claude, GPT and more, billed by real token usage with no monthly fee. Sign up to create your API key; rates for every model are on the pricing page.
Sign up free Pricing