59API

← Volver a las guías

Codex API proxy for heavy users: 59API costs and limits

Claude Code · EN · 2026-11-24

The real cost of running Codex from morning to night

Run Codex all day and the bill stops being theoretical. Every prompt sends input tokens. Every patch comes back as output tokens. Every repeated chunk of repository context becomes a cache read. Add a long refactor, a second agent working in parallel, and a model you switch to for the hard parts, and a single afternoon can consume a budget you never explicitly approved.

Here is a hypothetical situation. You are pairing on the same repository for nine hours, using one model for architecture and another for routine edits, and you want to stop thinking about provider dashboards. You want one place to fund, one key to paste, and a clear number attached to every request. That is the problem 59API addresses. It is an independent third-party AI API relay with one account, one API key and one API host, covering Claude, GPT, Gemini, DeepSeek and other models.

For a Codex user, the appeal is practical rather than abstract. You keep the client you already know, redirect it to a single endpoint, and pay per request according to real token usage. There is no monthly fee, no seat to renew and no minimum commitment to keep the account alive. If you are weighing whether an API proxy belongs in your daily loop, the sections below focus on the numbers you can check against your own token counts, the setup you actually have to perform, and the model boundaries you need to respect.

Prepaid balance, per-request billing, no monthly fee

59API bills against a prepaid balance. You top up, then each request is charged by the real token usage of that request. There is no monthly fee, and your balance never expires, so money sitting in the account is not a deadline you have to rush to spend. Monthly and weekly cards exist, but they are optional. The plain balance route is enough for many solo developers who prefer to stay flexible.

Billing is in CNY, and USD figures are shown at a fixed reference rate of ¥7.2 = $1. Top-ups are available in ¥10, ¥50, ¥100, ¥200, ¥500 and ¥1000 increments, paid by WeChat Pay or bank card. Invoices are available, which matters if you are treating API spending as a business expense rather than a personal side project.

Why does this suit an all-day Codex workflow? Because coding usage is spiky. Some days you ship a small fix and barely touch the models. Other days you rewrite a module ten times and burn through context. A prepaid, per-request model absorbs both patterns without a subscription renewal and without a prepaid package that quietly expires. You are also not committing to a fixed plan before you know which model you will lean on that week, which is exactly the flexibility a heavy coding day requires. When usage is uncertain, paying only for what you consume is easier to reason about than guessing a tier in advance.

What the token rates look like across a busy day

These are the rates that matter most if Codex is your primary client. GPT-6.1 Sol (model id 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. GPT-5.6 Sol (model id gpt-5.6-sol) is $0.3472 (¥2.5) input, $1.94 (¥14) output and $0.0278 (¥0.2) cache read.

Cheaper options are available for repetitive work. MiniMax M3 (model id MiniMax-M3) is $0.1389 (¥1) input and $0.5556 (¥4) output. Qwen3.7 Plus (model id qwen3.7-plus) is $0.1389 (¥1) input and $0.4167 (¥3) output. DeepSeek V4 Flash (model id deepseek-v4-flash) is $0.2778 (¥2) input and $1.11 (¥8) output, with cache reads at $0.006944 (¥0.05).

Two worked examples put the scale in concrete terms. 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), which 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, against an official list price reference of $18 (about ¥129.6), also about 9% of list price. Official list prices are reference prices only; 59API is an independent relay and not an official channel of any model provider.

Pointing Codex at one host and one key

Setup is deliberately small. Codex, OpenAI SDKs, cURL and OpenAI-compatible clients such as Cursor, Cherry Studio, Cline and OpenCode all work through 59API using the same two settings. Set your base URL to https://api.59api.com/v1 and point your chat endpoint at https://api.59api.com/v1/chat/completions. The API host is https://api.59api.com, and the key comes from the same 59API account that holds your balance.

That is the entire workflow for a typical session. You keep your editor, keep your prompts and keep your client, and the relay sits between you and the model provider. There is no separate integration to negotiate per model family, and no need to juggle keys when you move from one task to the next.

For a hypothetical developer running two agents at once, one drafting tests and one refactoring a module, the practical benefit is that both draw from one prepaid balance and are metered by actual token use. If one agent consumes less on a given afternoon, the difference simply stays on the balance. If you would rather put a hard boundary around a noisy experiment, the optional cards described below give you a separate key with its own cap, which is often easier to reason about than mentally tracking a single shared balance. Either way, the switching cost is one URL and one key.

Model boundaries and optional cards

One boundary is worth stating plainly, because it decides how 59API fits your setup. Codex and the other OpenAI-compatible clients listed above work with GPT, DeepSeek and other non-Claude, non-Gemini models only. Claude models work exclusively 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; they are not OpenAI-compatible and do not work on /v1/chat/completions.

So if your day is spent inside Codex, you are working with the non-Claude, non-Gemini families available through 59API. If you also use Claude Code or Claude Desktop alongside Codex, 59API can serve both sides of your workflow, with each client talking to the models it is built for through the settings designed for it. This split is a routing rule you can check against your own client list before configuring anything.

Cards are optional and behave differently from your balance. Each 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, and cards drain at the card's metering price × 2.4. The G-PRO weekly card for GPT costs $40.56 (¥292) for 7 days, with quota $1100 and a weekly cap of $1100. The G-PRO standard version runs 30 days at $160.42 (¥1155), with quota $4500 and a weekly cap of $1700. A card fits an all-day Codex user who wants a defined ceiling for a busy stretch; the prepaid balance fits someone who prefers small top-ups and usage-based spending. If that matches how you code, start at ¥10, paste your key, and point Codex at https://api.59api.com/v1.

Docs

¿Listo para empezar?

Una sola clave para Claude, GPT y más, con facturación por tokens reales y sin cuota mensual. Regístrate para crear tu clave API; las tarifas de cada modelo están en la página de precios.

Registro gratis Precios