59API FAQ: referrals, withdrawals and Codex API relay
What 59API actually is
If you keep separate accounts, keys and billing pages for every model family you use, the first thing 59API changes is the shape of your setup. 59API is an independent third-party AI API relay: one account, one API key and one API host, https://api.59api.com, give you access to Claude, GPT, Gemini, DeepSeek and other models. It is not an official channel, partner or reseller of any model provider, and it does not pretend otherwise.
The billing model is deliberately straightforward. You top up a prepaid balance, and each request is charged according to the real token usage it consumes. There is no monthly fee, and your balance never expires. Monthly and weekly cards are optional, so you can stay purely pay-as-you-go or add a card when a fixed block of usage makes more sense for your workflow.
All billing is handled in CNY, with USD figures shown at ¥7.2 = $1. That makes the numbers easy to compare against reference list prices while keeping the actual charge in the same currency you top up. The practical result is one place to watch spend, one key to configure, and one balance to manage, which is exactly why developers building side projects or running several tools at once tend to find 59API worth trying.
Top-ups, invoices and refunds
How do you fund the account? The top-up amounts are ¥10, ¥50, ¥100, ¥200, ¥500 and ¥1000, and you can pay by WeChat Pay or bank card. Invoices are available, so if you need one for a company expense, you can request it as part of the process rather than treating the balance as an unaccountable leftover.
Because you are paying into a prepaid balance, it is reasonable to ask what happens if you change your mind. 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 they are handled within 3 business days. That window is short, so if a refund matters to you, raise it soon after topping up rather than waiting.
Two details are worth keeping straight. First, the refundable amount is the unused portion, not the full top-up, because usage and channel fees are deducted. Second, there is no monthly subscription to cancel and no expiring balance to rescue, so your usage decisions stay yours. If you are still deciding whether to test the service, the ¥10 top-up is the smallest entry point, and the same prepaid balance then carries over without a deadline.
Referrals and how withdrawals work
Here is the referral answer in one line: you earn 15% commission on what the people you invite pay, plus 5% on what their invitees pay. The first level is your direct invite, covering top-ups and cards. The second level covers the people those invitees bring in. Both percentages are calculated on real payments, so the scheme is tied to actual activity rather than sign-up counts.
When it comes to getting the money out, you have two choices. You can withdraw commission to Alipay once the balance reaches ¥50, or you can move it directly to your API balance and spend it on requests. Moving it into the API balance is the fastest loop for a developer who is already paying for tokens: the commission becomes working credit without a separate cash-out step. Withdrawing to Alipay is the option for anyone who wants the commission as money.
That structure is worth understanding before you share a link. Direct invitees generate 15%, and their invitees generate 5%, so the two tiers compound as your network grows. There is no monthly subscription to cancel and no expiring balance to rescue, so the referral programme stands on its own: you are paid because the people you refer are actually spending. If you already use 59API for coding work and talk to other developers about it, the referral programme turns that conversation into a concrete reason to point them your way.
Connecting Codex through the 59API API relay
Codex, OpenAI SDKs, cURL and OpenAI-compatible clients such as Cursor, Cherry Studio, Cline and OpenCode all connect to the same host. Set base_url to https://api.59api.com/v1 and the chat endpoint to https://api.59api.com/v1/chat/completions. These clients pair with GPT, DeepSeek and other non-Claude, non-Gemini models only.
Per-request costs are shown per 1 million tokens. GPT-6.1 Sol, model id gpt-6.1-sol, is $0.1847 (¥1.33) for input and $0.9264 (¥6.67) for output, with a cache read of $0.0375 (¥0.27). DeepSeek V4 Flash, model id deepseek-v4-flash, is $0.2778 (¥2) for input and $1.11 (¥8) for output, with a cache read of $0.006944 (¥0.05).
To make the arithmetic concrete, consider a hypothetical Codex workload of 5M input plus 1M output tokens without cache on GPT-6.1 Sol. On 59API that is $1.85 (¥13.32), compared with an official list price reference of $20 (about ¥144), which puts 59API at about 9% of list price. The official list price is only a reference point, not a promise about anyone else's pricing. What matters for your own account is that the charge follows actual token usage, so a quiet afternoon costs less than a heavy one.
Claude and Gemini have their own client rules
One API host does not mean one protocol, and mixing them up is the most common setup mistake. Claude models work only through the genuine Claude Code or Claude Desktop client, version 2.1.285 or newer. Set ANTHROPIC_BASE_URL=https://api.59api.com and ANTHROPIC_AUTH_TOKEN=YOUR_59API_KEY. Claude models never work through the OpenAI SDK, cURL or other clients, so if you are connecting Codex, keep Claude out of that request path entirely.
Gemini follows the same separation in the other direction. Gemini models use Google's native protocol only, through Gemini CLI, using GOOGLE_GEMINI_BASE_URL=https://api.59api.com and GEMINI_API_KEY=YOUR_59API_KEY. They are not OpenAI-compatible and do not work on /v1/chat/completions.
So the clean mental model is this: one account, one key, one host, and a clear client-to-protocol mapping. Codex and OpenAI-compatible tools handle GPT, DeepSeek and other non-Claude, non-Gemini models. Claude Code and Claude Desktop handle Claude models. Gemini CLI handles Gemini models. Once you know which client you are opening, the configuration is two values, and you can start testing with a small prepaid balance instead of a large commitment.
Cards, metering and what to try first
Cards are optional, but they have rules you should understand before buying one. 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.
One example shows the shape. The G-PRO Starter Edition for GPT, valid for 30 days, is $83.19 (¥599), with quota $2300 and a weekly cap of $880. It drains at the card's metering price × 2.4, and its reference value at official list prices is about $638.89 (¥4600). That reference is a comparison point, not a cash value.
Here is the sensible order of operations. Top up a small prepaid balance, connect the client you actually use, and watch real token usage land in your account. If your workload is steady, add a card and let it cover that family's traffic. If you enjoy recommending the setup to other developers, share your referral link and earn 15% on what they pay, with 5% on what their invitees pay, then withdraw to Alipay from ¥50 or move the commission straight into API balance. That is a complete loop: predictable pricing, transparent usage, and a referral programme that pays on genuine spending.
Prêt à commencer ?
Une seule clé pour Claude, GPT et d’autres modèles, facturée aux tokens réels, sans abonnement mensuel. Inscrivez-vous pour créer votre clé API ; les tarifs de chaque modèle sont sur la page Tarifs.
Inscription gratuite Tarifs