59API FAQ: Gemini CLI setup, billing and top-ups
How 59API billing actually works
The awkward part of most AI API billing is not the price list. It is the subscription you did not use, the credit that expired before your project shipped, or the invoice that arrives with a fee nobody can explain. 59API removes that whole category of problem. 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, covering Claude, GPT, Gemini, DeepSeek and other models.
Every request is charged per request by real token usage against a prepaid balance. There is no monthly fee, and your balance never expires. That single design choice changes how you plan a project: you can test an idea, stop for two weeks, and come back without paying for idle time. Billing is denominated in CNY, and the dollar figures shown across 59API use the reference rate of ¥7.2 = $1.
Rates are listed per 1 million tokens and split into input, output and cache read. For example, Gemini 2.5 Flash is $0.2083 (¥1.5) input, $1.67 (¥12) output and $0.0208 (¥0.15) cache read, while Gemini 3.1 Pro is $1.39 (¥10) input and $8.06 (¥58) output. Since output tokens are priced above input tokens on most models, the question that actually moves your bill is how much your prompt grows, not just how many requests you send.
Top-ups: amounts, payment methods and invoices
If prepaid is the model, the top-up step has to be boring and predictable. 59API keeps it that way. Balance top-ups come in six amounts: ¥10, ¥50, ¥100, ¥200, ¥500 and ¥1000. Start with the smallest amount that covers your next experiment, and only move up when your usage history tells you to. Because the balance never expires, a small top-up is not a deadline; it is simply your next working budget.
You can pay by WeChat Pay or bank card, and invoices are available when you need one for accounting or reimbursement. That combination is the practical reason 59API works for individual developers as well as teams: the payment rails are familiar, the balance is yours, and the record of what you spent is tied to real token usage rather than to a flat monthly seat fee.
- Top-up amounts: ¥10, ¥50, ¥100, ¥200, ¥500 and ¥1000
- Payment: WeChat Pay or bank card
- Invoices: available
- Monthly fee: none; unused balance does not expire
One more billing detail worth internalising before you connect a client: a card is not the same thing as your wallet. A card has its own key, it can only call that card's model family, and it is paid only from the card. It never falls back to wallet balance, and a balance key never draws on a card. Keeping the two separate makes your spend predictable, because you always know which pool a given key is spending from.
Gemini CLI setup on 59API
Gemini CLI speaks Google's native protocol, and 59API is configured for it with two environment variables. Set GOOGLE_GEMINI_BASE_URL=https://api.59api.com and GEMINI_API_KEY=YOUR_59API_KEY, restart the client, and your Gemini traffic is routed through the same prepaid balance and the same per-token rates listed above. There is nothing else to install, and no separate account for Gemini.
One constraint matters more than it first appears. Gemini models use Google's native protocol only: they are not OpenAI-compatible and they do not work on /v1/chat/completions. If you are wiring up Codex, the OpenAI SDKs, cURL or OpenAI-compatible clients such as Cursor, Cherry Studio, Cline and OpenCode, those pair with GPT, DeepSeek and other non-Claude, non-Gemini models, using base_url https://api.59api.com/v1 and chat endpoint https://api.59api.com/v1/chat/completions.
Claude models follow a separate path again. They work only through the genuine Claude Code or Claude Desktop client, version 2.1.285 or newer, configured with ANTHROPIC_BASE_URL=https://api.59api.com and ANTHROPIC_AUTH_TOKEN=YOUR_59API_KEY.
So the setup decision is straightforward: match the client to the model family, then point it at 59API. The same account, key and prepaid balance can serve all of them, and your billing stays in one place instead of scattering across several providers.
Balance key or card: which one fits your workload
The wallet is the default answer for most developers. Pay-as-you-go by real token usage suits irregular work: debugging sessions, prototypes, a heavy day followed by a quiet week. Optional monthly and weekly cards exist for the opposite pattern, where usage is steady enough that a fixed commitment makes more sense than topping up repeatedly.
Understand what a card does before you buy one. A card has its own key, it can only call that family's models, and it 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. Every card drains at the card's metering price × 2.4.
A few concrete examples. C-PRO 入门版 (Claude, 30 days) costs $83.19 (¥599) with quota $610 and a weekly cap of $230, and its reference value at official list prices is about $169.44 (¥1220). G-PRO 入门版 (GPT, 30 days) costs $83.19 (¥599) with quota $2300, a weekly cap of $880 and a reference value of about $638.89 (¥4600). For short bursts there are weekly options too: 【周卡】G-PRO $1100 (GPT, 7 days) costs $40.56 (¥292) with quota $1100 and a weekly cap of $1100.
The pattern to notice: cards package capacity and caps, while the wallet packages flexibility. If your usage changes week to week, stay on the wallet. If usage is predictable and you want a fixed monthly ceiling, compare the card quota against your recent token spend.
Refunds, worked costs and how to decide
Billing questions usually end with one of two sentences: what will this cost, and what happens if I change my mind. On the second, 59API has a clear answer. 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.
On cost, work from token counts rather than headlines. Consider GPT-6.1 Sol with 5M input and 1M output tokens, no cache: that is $1.85 (¥13.32) on 59API, against an official list price of $20 (about ¥144), so 59API is about 9% of list price. Claude Sonnet 5.5 with 3M input and 0.5M output tokens, no cache, comes to $6.11 (¥44) on 59API against an official list price of $11 (about ¥79.2), or about 56% of list price. Official list prices exist for Claude and GPT as reference points; for models such as Gemini 2.5 Flash, Gemini 3.1 Pro, DeepSeek V4 Flash or Qwen3.7 Plus, the per-token rates are the number to plan against.
Here is the decision in short. If you are starting with Gemini CLI, top up a small amount such as ¥10 or ¥50, connect with the two environment variables, and let real usage set the pace. If your usage becomes steady, compare a card. If your workload is irregular, keep the wallet, where there is no monthly fee and no expiry. Either way, 59API keeps one key, one host and one balance in front of you, and the cost of a request stays tied to the tokens it actually consumes.
¿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