59API

← सभी गाइड पर लौटें

Codex cache reads: pay-as-you-go savings on 59API

मूल्य · EN · 2026-11-21

The bill problem behind every repeated Codex prompt

Picture a typical coding session. You point your agent at a repository, ask it to read a handful of files, and then spend the next hour iterating on the same change. The conversation keeps growing, but a large share of the text sent to the model is unchanged: the same source files, the same project layout, the same instructions you gave at the start. Every fresh request that carries that context again is billed again as input tokens.

On 59API, you are charged per request based on real token usage, with no monthly fee and a prepaid balance that never expires. That structure makes context handling visible in a way that a flat subscription hides. If a request repeats material the provider can serve from cache, the cache read rate applies instead of the full input rate. The difference can be substantial, and it is not a marketing abstraction: it is a line item in the rate sheet.

So the practical question is simple. If you are running Codex against 59API, how much does each category of token cost, and what happens when a large block of your prompt is read from cache rather than processed as fresh input?

Let us look at the actual numbers.

What cache reads cost per 1 million tokens

All 59API rates are quoted per 1 million tokens, with billing in CNY and USD shown at ¥7.2 = $1. Here is a short selection of models you can drive from Codex, with the input and cache read rates side by side.

Read those rows twice. A cache read on GPT-6.1 Sol costs $0.0375 (¥0.27) per 1 million tokens against an input price of $0.1847 (¥1.33). On DeepSeek V4 Flash, the cache read rate is $0.006944 (¥0.05) against an input rate of $0.2778 (¥2). These are the same tokens arriving in the same request, priced differently because the provider did not have to process them from scratch.

That is why cache behaviour matters more than any discount code. When your workflow produces long, repeated context, the request itself decides whether you pay the input rate or the cache read rate.

Two worked examples to anchor the numbers

Numbers are easier to trust when they come with a workload attached. Consider a hypothetical week where your Codex usage on 59API looks like this.

GPT-6.1 Sol, 5M input + 1M output tokens without cache: $1.85 (¥13.32) on 59API. At the official list price of $20 (about ¥144), 59API is about 9% of list price.

GPT-5.6 Sol, 2M input + 0.5M output tokens without cache: $1.67 (¥12) on 59API. At the official list price of $18 (about ¥129.6), 59API is about 9% of list price.

Read the phrase without cache carefully. These figures assume every input token is billed at the full input rate. They are the baseline, not the ceiling. When part of that input is served from cache, the corresponding tokens are charged at the cache read rate instead: $0.0375 (¥0.27) for GPT-6.1 Sol, $0.0278 (¥0.2) for GPT-5.6 Sol.

Now imagine the same sessions with a larger share of repeated context. The workload has not changed, the code has not changed, and your output tokens are billed exactly as before. What changes is the price attached to the context you keep re-sending. The gap between the input rate and the cache read rate is where the saving lives, and it applies to the same request you were already making.

This is also why 59API is worth a look for Codex users specifically. You are not buying a seat and hoping you use it efficiently. You are paying for tokens as they are consumed, and cache reads make the most repetitive part of that consumption cheaper.

Pointing Codex at 59API

Setup is deliberately small. 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. For those clients, the base URL is https://api.59api.com/v1 and the chat endpoint is https://api.59api.com/v1/chat/completions.

Your account comes with one API key and one API host, so the configuration is a base URL, an endpoint and a key. There is no monthly fee to activate, no seat to assign, and no separate contract. You top up a balance, point the client at the host, and requests are billed per request by real token usage.

Because billing follows actual token counts, cache reads show up naturally in your own usage record. You are not guessing at a quota. You are not estimating what a heavy day might cost. The number on the rate sheet is the number you pay per 1 million tokens, and cache reads have their own line in it.

One practical habit follows from this. When you work on a large codebase, keep the working set of files you actively need as tight as you can. Every file you drag into context is a file you may pay to send again and again. If the provider can serve it from cache, you pay the cache read rate; if you keep adding fresh material, you pay the input rate. Small context decisions, repeated across hundreds of requests, are what move the bill.

Pay-as-you-go on a prepaid balance

59API is prepaid. You add funds and spend them as you go, with the balance never expiring. Top-ups come in ¥10, ¥50, ¥100, ¥200, ¥500 and ¥1000, paid by WeChat Pay or bank card, and invoices are available. There is no monthly subscription to cancel and no minimum commitment to justify.

For a developer who is still learning how cache reads behave in their own workflow, that flexibility is the point. Start small, watch the usage, and let the numbers tell you which model fits the task. A cheap cache read on DeepSeek V4 Flash at $0.006944 (¥0.05) per 1 million tokens may suit a fast, repetitive loop, while a heavier reasoning model with a higher input rate may suit a different stage of the same project.

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. If you would rather keep spending flexible and let cache reads do the work, the prepaid balance route is the simpler one to start with.

One account, one key, one host, and a bill that reflects the tokens you actually used. That is the whole pitch. Try 59API with your own Codex workload and check the cache read line against the input line: the difference is your next saving.

दस्तावेज़

शुरू करने के लिए तैयार?

Claude, GPT और अन्य मॉडलों के लिए एक ही key, असली token उपयोग पर बिलिंग और कोई मासिक शुल्क नहीं। साइन अप करके अपनी API key बनाएं; हर मॉडल की दरें मूल्य पेज पर हैं।

मुफ़्त साइन अप मूल्य