Codex API relay pricing on 59API: pick an economical model
The everyday-coding bill adds up faster than you expect
Most coding days are not one heroic prompt. They are dozens of small requests: a refactor here, a failing test there, a quick explanation of a stack trace at 5pm. Each one is billed by real token usage, and each one quietly becomes part of the month's bill. The problem is not that any single request is expensive. The problem is that you rarely know in advance which model is right for the request you are about to make.
That is the decision 59API is built to make simple. One account, one API key and one API host give you access to Claude, GPT, Gemini, DeepSeek and other models, with a prepaid balance charged per request by real token usage. There is no monthly fee, and your balance never expires. You top up once, then route everyday coding traffic through whichever model fits the task and the budget.
For a developer working in Codex, the practical question is narrower: which of the GPT and other non-Claude, non-Gemini models should carry the routine load, and when does it make sense to switch to something more capable? Pricing per 1 million tokens makes that comparison concrete, and a few worked examples turn it into a decision you can make before you start typing.
Start with the low-cost per-token options
For routine work, a practical place to begin is the per-token rate card, because it scales cleanly with whatever you actually send. On 59API, rates are shown per 1 million tokens, billed in CNY, with USD figures at ¥7.2 = $1. Here are four models worth putting on your shortlist for everyday coding:
- MiniMax M3 (model id
MiniMax-M3): input $0.1389 (¥1), output $0.5556 (¥4), cache read $0.0278 (¥0.2). - Qwen3.7 Plus (model id
qwen3.7-plus): input $0.1389 (¥1), output $0.4167 (¥3), cache read $0.0417 (¥0.3). - DeepSeek V4 Flash (model id
deepseek-v4-flash): input $0.2778 (¥2), output $1.11 (¥8), cache read $0.006944 (¥0.05). - GPT-6.1 Sol (model id
gpt-6.1-sol): input $0.1847 (¥1.33), output $0.9264 (¥6.67), cache read $0.0375 (¥0.27).
Two patterns stand out. First, output tokens cost more than input tokens on every model here, so a chatty assistant that narrates its work will cost more than one that answers directly. Second, cache reads are markedly lower than fresh input, which matters if your workflow reuses a large context window repeatedly. The practical takeaway is simple: pick the model whose output rate matches the job, and keep your prompts tight.
Run the numbers before you commit to a model
Rates are useful, but a worked example is what convinces you. Take GPT-6.1 Sol, which lists an official list price of $2 / $10 as a reference point. For a session of 5M input and 1M output tokens without cache, the cost on 59API is $1.85 (¥13.32). At official list price, the same session would be $20 (about ¥144), so 59API is about 9% of list price.
Now try GPT-5.6 Sol (model id gpt-5.6-sol), which runs at input $0.3472 (¥2.5), output $1.94 (¥14) and cache read $0.0278 (¥0.2). Its official list price is $4 / $20, an OpenAI promotional price at least through 2026-11-21. For 2M input and 0.5M output tokens without cache, the cost on 59API is $1.67 (¥12), against $18 (about ¥129.6) at official list price, so 59API is about 9% of list price.
Read those examples as a workflow guide rather than a promise. A larger model on a small daily volume is cheap in absolute terms; a small model on a heavy daily volume can still dominate the bill. The habit worth building is to keep a default everyday model, measure what you actually spend, and escalate to a pricier model only for the requests that need it. 59API makes that switch a config change, not a new account.
Balance or card: choose the billing shape that fits
Prepaid balance is the flexible option. You top up in increments of ¥10, ¥50, ¥100, ¥200, ¥500 or ¥1000, paying by WeChat Pay or bank card, and invoices are available. Because billing follows real token usage, unused balance simply stays put and never expires. For a developer whose usage varies week to week, that is usually the simplest fit.
Cards exist for people who prefer a fixed, prepaid allowance. 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 read as direct price comparisons.
- G-PRO entry tier (GPT, 30 days): $83.19 (¥599); quota $2300, weekly cap $880; drains at the card's metering price × 2.4; reference value at official list prices about $638.89 (¥4600).
- Weekly G-PRO $1100 (GPT, 7 days): $40.56 (¥292); quota $1100, weekly cap $1100; drains at the card's metering price × 2.4; reference value at official list prices about $305.56 (¥2200).
So: prepaid balance for variable usage, cards for predictable, family-scoped workloads. You can use either on 59API, and you decide which fits your month.
Point Codex at 59API in two lines
Wiring up 59API is deliberately boring. For Codex, OpenAI SDKs, cURL and OpenAI-compatible clients such as Cursor, Cherry Studio, Cline and OpenCode, use base_url https://api.59api.com/v1 and chat endpoint https://api.59api.com/v1/chat/completions. Those clients work with GPT, DeepSeek and other non-Claude, non-Gemini models, which is exactly where the economical options above live.
Claude models work only through the genuine Claude Code or Claude Desktop client (Claude Code 2.1.285 or newer), never through the OpenAI SDK, cURL or other clients, and Gemini models use Google's native protocol only through Gemini CLI. Keeping those boundaries clear means no wasted requests and no debugging time spent on a client that was never going to speak that model's protocol.
Once the base URL and key are set, top up from ¥10, connect, and start with a low-cost everyday model. Watch the balance as you go, switch models when a task deserves more capability, and let the per-token rates do the arithmetic. That is what an economical setup should feel like: predictable, adjustable, and entirely under your control.
शुरू करने के लिए तैयार?
Claude, GPT और अन्य मॉडलों के लिए एक ही key, असली token उपयोग पर बिलिंग और कोई मासिक शुल्क नहीं। साइन अप करके अपनी API key बनाएं; हर मॉडल की दरें मूल्य पेज पर हैं।
मुफ़्त साइन अप मूल्य