59API FAQ: Claude Sonnet 5.5 setup, API keys and access
One account, one API key, one balance
Most developers hit the same wall when they want access to more than one AI model family: separate accounts, separate API keys, separate dashboards and separate invoices to reconcile. 59API removes that fragmentation. It is an independent third-party AI API relay, so a single account and a single API key give you one API host, https://api.59api.com, for Claude, GPT, Gemini, DeepSeek and other models.
Money moves the way most developers expect it to. You top up a prepaid balance, and every request is charged according to the real token usage it consumes. 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 are optional if you want them, but they are not required to use 59API at all.
All rates are quoted per 1 million tokens. Billing is in CNY, and the USD figures are shown at ¥7.2 = $1, so you can compare a 59API rate against a reference official list price without doing currency arithmetic in your head. That is the whole idea: one key, one host, and a request that reaches the model family you actually chose.
Here is what the most common questions come down to, and how the setup looks in practice.
Which key reaches which model?
The most frequent support question is not about billing. It is why a request fails even though the key looks perfectly correct. The answer is that model families on 59API speak their own protocols, and your client has to match the protocol.
Claude models work only through the genuine Claude Code or Claude Desktop client, and Claude Code needs to be version 2.1.285 or newer. Claude models do not work through the OpenAI SDK, cURL or any other client, no matter how similar your request body looks. If you are wiring up a third-party editor or an SDK, Claude is not part of that path.
GPT, DeepSeek and other non-Claude, non-Gemini models are the other side of the coin. They work with Codex, OpenAI SDKs, cURL and OpenAI-compatible clients such as Cursor, Cherry Studio, Cline and OpenCode, using the OpenAI-style base URL and chat endpoint.
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 before you regenerate a key, check the client. Match the family to the tool, and the rest of the setup is short.
Claude setup: Claude Code and Claude Desktop
For Claude models on 59API, set two environment variables. Point ANTHROPIC_BASE_URL at https://api.59api.com, and put your key in ANTHROPIC_AUTH_TOKEN as YOUR_59API_KEY. Then run the genuine Claude Code or Claude Desktop client, using Claude Code 2.1.285 or newer.
That is the entire connection step. There is no separate Claude account to create, no second key to rotate, and no monthly subscription to maintain. Your prepaid 59API balance is charged per request by real token usage.
To see what that looks like in practice, consider Claude Sonnet 5.5. Its rate is $1.11 (¥8) per 1 million input tokens, $5.56 (¥40) per 1 million output tokens, and $0.0972 (¥0.7) for a cache read. Claude Opus 5.5 is listed at $1.53 (¥11) input and $7.22 (¥52) output per 1 million tokens, while Claude Haiku 4.5 sits at $0.3472 (¥2.5) input and $1.67 (¥12) output.
One hypothetical request shape shows the difference clearly. For Claude Sonnet 5.5, 3M input plus 0.5M output tokens without cache costs $6.11 (¥44) on 59API. The same shape at the official list price of $11 (about ¥79.2) makes 59API about 56% of list price. The official list price is only a reference point, not a requirement of the service.
OpenAI-compatible setup for GPT, DeepSeek and more
For Codex, OpenAI SDKs, cURL and OpenAI-compatible clients such as Cursor, Cherry Studio, Cline and OpenCode, the setup is equally short. Set base_url to https://api.59api.com/v1 and point your chat endpoint at https://api.59api.com/v1/chat/completions. Send the same YOUR_59API_KEY value in the authorization field your client expects.
Because this path covers GPT, DeepSeek and other non-Claude, non-Gemini models, you can keep one client and switch model IDs as your work changes. GPT-6.1 Sol is $0.1847 (¥1.33) input and $0.9264 (¥6.67) output per 1 million tokens. GPT-6 Astra is $0.6944 (¥5) and $3.47 (¥25). DeepSeek V4 Flash is $0.2778 (¥2) and $1.11 (¥8), and MiniMax M3 is $0.1389 (¥1) and $0.5556 (¥4).
Run the same arithmetic on a hypothetical GPT-6.1 Sol workload of 5M input plus 1M output tokens without cache, and 59API charges $1.85 (¥13.32). At the official list price of $20 (about ¥144), that is about 9% of list price.
One key, one host and a model ID you can change. That is the whole developer experience on this side of 59API.
Gemini setup through Gemini CLI
Gemini follows its own path. Set GOOGLE_GEMINI_BASE_URL to https://api.59api.com and set GEMINI_API_KEY to YOUR_59API_KEY. Then talk to the models from Gemini CLI, which speaks Google's native protocol.
Do not try to route Gemini through an OpenAI-compatible client. Gemini models are not OpenAI-compatible and do not work on /v1/chat/completions. If a Gemini request fails inside an SDK or a third-party editor, the protocol mismatch is the first thing to check, not your key.
Rates follow the same per 1 million token format. Gemini 3.1 Pro is $1.39 (¥10) input, $8.06 (¥58) output and $0.1389 (¥1) for a cache read. Gemini 2.5 Flash is $0.2083 (¥1.5) input, $1.67 (¥12) output and $0.0208 (¥0.15) for a cache read. Gemini 3.8 Flash is $1.11 (¥8) input and $5 (¥36) output per 1 million tokens.
That is the second environment-variable setup in this FAQ, and it takes about the same time. The third path, the OpenAI-compatible one, takes a base URL and a chat endpoint. Pick the family, use its client, and you are ready to send a request through 59API.
One key or a card? And how do you fund it?
Top-ups are simple. You can add ¥10, ¥50, ¥100, ¥200, ¥500 or ¥1000, paid by WeChat Pay or bank card, and invoices are available. The balance never expires and there is no monthly fee, so you stay in control of the spend.
Cards are the optional layer. 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 official prices.
For example, the C-PRO Standard version for Claude, valid 30 days, is $152.64 (¥1099), with quota $1100 and a weekly cap of $410. It drains at the card's metering price × 2.4, and its reference value at official list prices is about $305.56 (¥2200).
So the short version of the FAQ: fund a prepaid balance, create one API key, point the right client at https://api.59api.com, and choose the model family that matches your tool. 59API handles the routing, the metering and the billing so you can stay focused on the request.
¿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