Codex pay-as-you-go on 59API: prepaid balance, no monthly fee
The monthly fee problem, and why usage should set the bill
The awkward part of an AI subscription is that it bills you for a month whether you shipped a feature or not. A developer experimenting with Codex may open a paid plan on a busy Monday, and by Friday the hardest part of the bill is deciding what to do with the capacity nobody used. Paying per request instead changes the question: what did this run actually consume?
59API is built around that question. It is an independent third-party AI API relay, and one account gives you one API key and one API host, https://api.59api.com, with access to a wide range of models. For a Codex workflow, that means you can point an OpenAI-compatible client at a single endpoint and let token usage drive the cost.
There is no monthly fee. You top up a prepaid balance, and each request is charged according to real token usage. Your balance never expires, so an unused ¥10 top-up is still there next month. Monthly and weekly cards exist, but they are optional, not the billing model's foundation.
That distinction matters if your usage is spiky. A prototype week, a debugging session and a quiet weekend can all draw from the same balance without a renewal decision attached to any of them. The number you watch is the balance, not a countdown to the next subscription charge.
For a developer who wants a number to plan around rather than a quota to negotiate, that is a cleaner starting point. Fund a float, call the endpoint, and let actual token consumption set the pace.
How the prepaid balance actually works
Pay-as-you-go on 59API starts with a prepaid balance, and the mechanics are deliberately plain. Top-ups come in ¥10, ¥50, ¥100, ¥200, ¥500 and ¥1000, paid by WeChat Pay or bank card, and invoices are available. Billing is in CNY, with USD figures shown at ¥7.2 = $1, so you can read the numbers in either currency without guessing at a conversion.
Every request is charged by real token usage. That is the core of the model: input tokens, output tokens and cache reads are metered as they happen, against the balance you already funded. There is no monthly fee attached to the account, and no renewal that catches you while you are mid-task.
The balance never expires. This is the detail that separates pay-as-you-go from a prepaid credit system where unused funds can quietly disappear. On 59API, a ¥50 top-up made during a light week is still available during a heavy one. You are not paying for the privilege of keeping it.
Prepaid money also comes with a clear exit. Unused balance can be refunded within 7 days of the top-up, minus what was used and payment-channel fees. Requests go through the Contact page and are handled within 3 business days. So the balance is a working float, not a one-way commitment.
If you are testing costs before committing to a larger card, top up the smallest amount that lets you run your real workload. The meter will tell you the rest.
What per-request billing looks like in the rate table
Here is what the meter sees, using models that work with Codex, the OpenAI SDKs and cURL: GPT, DeepSeek and other models served over the OpenAI-compatible protocol.
GPT-6.1 Sol (model id gpt-6.1-sol) is billed at $0.1847 (¥1.33) per 1 million input tokens and $0.9264 (¥6.67) per 1 million output tokens, with cache reads at $0.0375 (¥0.27). GPT-5.6 Sol (model id gpt-5.6-sol) comes in at $0.3472 (¥2.5) input, $1.94 (¥14) output and $0.0278 (¥0.2) cache read. DeepSeek V4 Flash (model id deepseek-v4-flash) is listed at $0.2778 (¥2) input, $1.11 (¥8) output and $0.006944 (¥0.05) cache read.
Two worked examples make the arithmetic concrete. For GPT-6.1 Sol, 5M input plus 1M output tokens without cache costs $1.85 (¥13.32) on 59API, against an official list price reference of $20 (about ¥144), so 59API is about 9% of list price. For GPT-5.6 Sol, 2M input plus 0.5M output tokens without cache costs $1.67 (¥12) on 59API, versus $18 (about ¥129.6) at official list price, also about 9% of list price.
Note what these numbers do not include: a monthly fee, a seat charge, or a minimum commitment. You are looking at token consumption and nothing else.
Connecting Codex: one host, one key, no procurement step
Setting up Codex against 59API is a configuration change, not a procurement project. Codex, OpenAI SDKs, cURL and OpenAI-compatible clients such as Cursor, Cherry Studio, Cline and OpenCode work with GPT, DeepSeek and other models that use the OpenAI-compatible protocol. Claude models work only through the genuine Claude Code or Claude Desktop client (Claude Code 2.1.285 or newer), and Gemini models use Google's native protocol only through Gemini CLI, so neither belongs in a Codex configuration.
For Codex and the OpenAI-compatible path, set base_url to https://api.59api.com/v1 and point the chat endpoint at https://api.59api.com/v1/chat/completions. That is the whole routing story: one host, one key, and the model id you want to call.
Because billing follows real token usage, you can start with a small balance and let the meter teach you. Run a short prompt, watch how the balance responds, then decide whether the workload justifies a larger top-up. This is the practical advantage of pay-as-you-go for a developer still learning which model fits which task.
One account and one API key also mean one balance to reason about. When a script behaves differently than expected, the meter is the first diagnostic: more tokens went somewhere, and the rate table tells you where.
Start with the endpoint, pick a model id from the list you actually need, and let the first week of usage produce the numbers.
When an optional card makes more sense than balance
Cards are the optional second layer. If your usage is steady enough that a flat 30-day or 7-day block fits the way you work, 59API offers monthly and weekly cards alongside the balance.
The rules are specific. 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 are not direct price comparisons.
For example, the G-PRO entry card (GPT, 30 days) costs $83.19 (¥599), with quota $2300 and a weekly cap of $880. The weekly G-PRO $1100 card (GPT, 7 days) costs $40.56 (¥292), with quota $1100 and a weekly cap of $1100.
The practical question is simple. If your demand is lumpy, pay-as-you-go balance spreads the cost across actual requests and never expires. If your demand is predictable and you want a fixed block of capacity, a card may suit you better.
Either way, you start with the same account, the same API host and no monthly fee on the balance itself. Try the balance first, measure your real token consumption, and consider a card only when the numbers justify it.