Claude Haiku 4.5 cache reads on 59API: API relay bill math
The bill problem: the same context, paid for again and again
Most developers do not overspend because they picked an expensive model. They overspend because the same context keeps travelling back and forth. A long system prompt, a repository snapshot, a chat history: these tokens are sent on request one, then request two, then request ten. If every one of those requests is billed at the full input rate, the invoice grows faster than the useful work does.
The lever is not guesswork. It is the cache read rate. When a request reuses context that has already been processed, the cached portion carries its own, much smaller price. That is the difference between paying for input over and over and paying once for the work plus a smaller amount for the reuse.
59API is built so that this distinction is visible in the rates. It is an independent third-party AI API relay: one account, one API key and one API host, covering Claude, GPT, Gemini, DeepSeek and other models. You top up a prepaid balance, and each request is charged by real token usage. There is no monthly fee, the balance never expires, and monthly and weekly cards are optional. The rest of this guide is a numbers-first look at how cache reads pull the bill down.
What a cache read actually costs
Every rate below is per 1 million tokens, billed in CNY, with USD shown at ¥7.2 = $1. Look at the three columns for each model: input, output and cache read. The cache read rate is the one that matters when context is reused.
- Claude Haiku 4.5 (
claude-haiku-4-5-20251001): input $0.3472 (¥2.5), output $1.67 (¥12), cache read $0.0278 (¥0.2). - Claude Sonnet 5.5 (
claude-sonnet-5-5): input $1.11 (¥8), output $5.56 (¥40), cache read $0.0972 (¥0.7). - DeepSeek V4 Flash (
deepseek-v4-flash): input $0.2778 (¥2), output $1.11 (¥8), cache read $0.006944 (¥0.05). - Gemini 2.5 Flash (
gemini-2.5-flash): input $0.2083 (¥1.5), output $1.67 (¥12), cache read $0.0208 (¥0.15).
Read those rows again and the pattern is obvious. On Claude Haiku 4.5, a cache read sits at $0.0278 (¥0.2) against an input price of $0.3472 (¥2.5). On DeepSeek V4 Flash the cache read is $0.006944 (¥0.05) against $0.2778 (¥2) for input. Reused context is billed at its own rate, not at the input rate, which is exactly where the savings come from. One note on protocol: Gemini models use Google's native protocol only, through Gemini CLI, and are not OpenAI-compatible.
A worked example: Claude Haiku 4.5 at 5M input and 1M output
Take a concrete workload. Five million input tokens and one million output tokens, with no cache, cost $3.4 (¥24.5) on 59API. The official list price for the same volume is $10 (about ¥72), so 59API is about 34% of list price before a single cached token is involved.
Now put the cache read rate next to that input price. For Claude Haiku 4.5, reused context is billed at $0.0278 (¥0.2) per 1 million tokens instead of $0.3472 (¥2.5). In a session where the same prompt scaffolding, tool definitions and conversation prefix are reused across many requests, that gap is where the bill changes shape. The output side is unaffected: $1.67 (¥12) per 1 million output tokens for Claude Haiku 4.5, because generated tokens are generated either way.
Two habits make this visible in practice. First, keep prompts stable rather than rewriting the same context in slightly different words, because identical context is what can be reused. Second, watch the token accounting in your own logs, so you can see how much of each request is being served as a cache read. The point is not a promise about a specific saving. The point is that the rate card gives you a real, published number to design against, and 59API charges per request by actual token usage, so the effect shows up in the balance rather than in a monthly subscription.
Pay-as-you-go, top-ups, and what cards do to the maths
The default way to use 59API is prepaid balance. Top-ups come in ¥10, ¥50, ¥100, ¥200, ¥500 and ¥1000, paid by WeChat Pay or bank card, and invoices are available. With no monthly fee and a balance that never expires, you can start with the smallest top-up, run a real workload, and let the numbers tell you whether caching is doing its job.
Cards are optional and behave differently, so read the terms before buying one. 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. Quota and caps are card metering units written in $, not official list-price dollars, so they should not be converted into official prices.
For a Claude example, the C-PRO Starter Edition (Claude, 30 days) costs $83.19 (¥599), with quota $610 and a weekly cap $230. It drains at the card's metering price × 2.4, and its reference value at official list prices is about $169.44 (¥1220). The same logic applies to every card: because the drain rate is multiplied by 2.4, requests that lean on cheaper cache reads consume card quota more slowly than requests billed at full input rates. If your workload is steady, a card can be convenient; if it is uneven, prepaid pay-as-you-go keeps the decision simple.
Set it up in two settings, then measure your cache reads
Connecting to 59API is deliberately small. For Claude models, use the genuine Claude Code or Claude Desktop client, version 2.1.285 or newer, and set ANTHROPIC_BASE_URL=https://api.59api.com and ANTHROPIC_AUTH_TOKEN=YOUR_59API_KEY. Claude models work only in that client, never through the OpenAI SDK, cURL or other clients.
For GPT, DeepSeek and other non-Claude, non-Gemini models, Codex, OpenAI SDKs, cURL and OpenAI-compatible clients such as Cursor, Cherry Studio, Cline and OpenCode use base_url https://api.59api.com/v1 with the chat endpoint https://api.59api.com/v1/chat/completions. For Gemini, Gemini CLI uses GOOGLE_GEMINI_BASE_URL=https://api.59api.com and GEMINI_API_KEY=YOUR_59API_KEY, with Google's native protocol only.
Then run the workload you actually care about. Start with a small prepaid top-up, keep context stable across requests, and check how much of your traffic comes back as cache reads. At $0.0278 (¥0.2) per 1 million tokens for Claude Haiku 4.5, $0.006944 (¥0.05) for DeepSeek V4 Flash and $0.0208 (¥0.15) for Gemini 2.5 Flash, reuse is priced to reward you for not resending what the model has already seen. That is the whole pitch of 59API in one line: one key, one host, per-token billing, and a price card where the smallest line item is the one that repeats.
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