Codex pay-as-you-go on 59API for uneven side projects
Side projects rarely use APIs evenly
Most side projects do not have a steady request curve. A weekend prototype might fire off thousands of requests; a quiet Tuesday might fire off none. A subscription model punishes both patterns. You pay for months where you barely call the API, and you ration your own usage in the months where you need it most. The usual alternative is prepaid credit, but prepaid credit can expire, and a monthly fee is still a monthly fee no matter how little you use.
This is the gap 59API is built for. 59API is an independent third-party AI API relay: one account, one API key, one API host at https://api.59api.com, covering Claude, GPT, Gemini, DeepSeek and other models. There is no monthly fee. You top up a prepaid balance, and 59API charges per request according to real token usage. The balance never expires, so a silent month costs you nothing beyond the calls you actually made. That is the core fit for uneven usage: you pay for activity, not for calendar time.
What pay-as-you-go actually means on 59API
The mechanics are deliberately plain. You top up, you call, and the balance falls by the token cost of each request. Top-ups come in six sizes: ¥10, ¥50, ¥100, ¥200, ¥500 and ¥1000, paid by WeChat Pay or bank card, with invoices available. Billing is in CNY, and the USD figures shown across 59API pricing use a reference rate of ¥7.2 = $1. Because the balance never expires, a small top-up can sit there through a month when your project is dormant and then carry you through the next burst.
Monthly and weekly cards are optional, not required. They sit alongside the prepaid balance rather than replacing it, which means you can keep a small wallet for ordinary days and reach for a card only in a heavy week. One more detail worth knowing: 59API is a relay, not a model vendor, so the rates you see are relay rates. Where a reference official list price exists for a model, it is useful as a comparison point, not as a promise about what you will pay.
Connecting Codex in a few settings
Codex, OpenAI SDKs, cURL and OpenAI-compatible clients such as Cursor, Cherry Studio, Cline and OpenCode all work against the same 59API host. Set your base_url to https://api.59api.com/v1 and your chat endpoint to https://api.59api.com/v1/chat/completions, then point your client at your 59API key. One key, one account, one host: that is the whole setup, and it is the same key you use for other supported clients.
One boundary matters here. In Codex and other OpenAI-compatible clients, you can call GPT, DeepSeek and other non-Claude, non-Gemini models. 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. Gemini models use Google's native protocol only, through Gemini CLI, and are not OpenAI-compatible. Knowing that split up front prevents the most common wasted afternoon: a request that fails because the model and the client protocol do not match.
The numbers behind a burst
Here is what uneven usage looks like in practice. On 59API, GPT-6.1 Sol is $0.1847 (¥1.33) per 1 million input tokens, $0.9264 (¥6.67) per 1 million output tokens and $0.0375 (¥0.27) per 1 million cache-read tokens. A hypothetical run of 5M input plus 1M output tokens without cache costs $1.85 (¥13.32) on 59API, compared with an official list price reference of $20 (about ¥144) — about 9% of list price. For GPT-5.6 Sol, 2M input plus 0.5M output tokens without cache is $1.67 (¥12) on 59API, against $18 (about ¥129.6) at official list price, again about 9%.
Cheaper models widen the options for routine traffic. DeepSeek V4 Flash is $0.2778 (¥2) input and $1.11 (¥8) output per 1 million tokens, with cache reads at $0.006944 (¥0.05). MiniMax M3 is $0.1389 (¥1) input and $0.5556 (¥4) output. Qwen3.7 Plus is $0.1389 (¥1) input and $0.4167 (¥3) output. A side project can route heavy background jobs to a lower-cost model and reserve a stronger GPT model for the requests where output quality matters.
When a card beats topping up
Pay-as-you-go is the default because most side projects are lumpy, not enormous. But suppose your project has a predictable crunch: a launch week, a batch migration, a month of daily automated runs. That is where an optional card helps. The G-PRO entry card for GPT, valid 30 days, is $83.19 (¥599) with quota $2300 and a weekly cap $880. The G-PRO standard card is $160.42 (¥1155) with quota $4500 and a weekly cap $1700. For a short, concentrated sprint, the weekly G-PRO $1100 card is $40.56 (¥292) with quota $1100 and a weekly cap $1100.
Understand the rules before you buy. 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. Cards drain at the card's metering price × 2.4, and the reference value at official list prices is a comparison figure only. In short: cards buy commitment, pay-as-you-go buys flexibility.
So is 59API right for your side project?
59API fits you well if usage arrives in waves rather than a straight line. It fits a solo developer running a personal assistant on weekdays and a batch tool on weekends. It fits someone prototyping with a GPT model in Codex, then swapping to DeepSeek V4 Flash for routine calls without changing keys or hosts. It also fits a developer who wants a single prepaid balance across Claude Code, Codex and Gemini CLI instead of separate accounts for each tool.
It fits less well if you want a fixed monthly subscription, if you need credits to roll over between periods, or if you expect to mix Claude models inside Codex — that combination is not supported, because Claude models require the genuine Claude Code or Claude Desktop client. If your project is small, the smallest ¥10 top-up is enough to start; if it is heavy in a single week, a card may be the better shape. Either way, you are paying for tokens you actually send, and the balance waits for you when the project goes quiet.
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