Claude Haiku 4.5 pay-as-you-go on 59API: a cost checklist
Why everyday coding bills creep up
Most developers do not overspend because they picked one wrong model. They overspend because one model handles every task. A long context window, a chatty answer, a retry after a sloppy prompt: each request is billed by real token usage, and output tokens cost more than input tokens on every model on the price sheet. The practical fix is not a bigger subscription. It is a short decision list: which model fits the task, what does the request actually cost, and how do I keep the setup simple?
59API gives you one account, one API key and one API host, https://api.59api.com, covering Claude, GPT, Gemini, DeepSeek and other models. You top up a prepaid balance, and every request is charged by real token usage. There is no monthly fee, and your balance never expires. Monthly and weekly cards exist, but they are optional, not an entry fee.
That structure suits daily coding. Start with a small top-up, point your editor at an economical model for routine work, and move to a stronger model only when the task earns it. The rest of this checklist works through the real numbers first, then the exact connection settings, so you can judge the economics before you commit a single request.
One prepaid account, billing that follows real usage
59API bills in CNY, and its price sheet shows USD at ¥7.2 = $1. Every rate below is per 1 million tokens, so you can compare input, output and cache read costs directly instead of reverse-engineering a monthly invoice.
Top-ups come in practical increments: ¥10, ¥50, ¥100, ¥200, ¥500 and ¥1000, paid by WeChat Pay or bank card. Invoices are available. There is no monthly fee attached to the account, and unused balance does not expire, so a small top-up is a low-risk way to test a workflow before committing to a larger one.
Two details keep the economics predictable. First, you are charged per request by real token usage, so cost follows what the model actually reads and writes rather than a seat licence. Second, cache reads are priced separately from fresh input, which matters whenever you reuse a large system prompt or a stable repository context across many calls.
A simple habit: keep one economical model as your default for routine edits and explanations, then switch deliberately for the harder reasoning steps. On 59API, switching is a model id change, not a new account, a new key or a second billing relationship.
Rate checklist: five models worth comparing
Here is a short comparison set for everyday coding. Each line is per 1 million tokens.
- Claude Haiku 4.5 (claude-haiku-4-5-20251001): input $0.3472 (¥2.5), output $1.67 (¥12), cache read $0.0278 (¥0.2).
- MiniMax M3 (MiniMax-M3): input $0.1389 (¥1), output $0.5556 (¥4), cache read $0.0278 (¥0.2).
- GPT-6.1 Sol (gpt-6.1-sol): input $0.1847 (¥1.33), output $0.9264 (¥6.67), cache read $0.0375 (¥0.27).
- Claude Sonnet 5.5 (claude-sonnet-5-5): input $1.11 (¥8), output $5.56 (¥40), cache read $0.0972 (¥0.7).
- Claude Opus 5.5 (claude-opus-5-5): input $1.53 (¥11), output $7.22 (¥52), cache read $0.0694 (¥0.5).
Read the output column first, because that is where daily coding spend concentrates. Haiku 4.5 at $1.67 (¥12) per 1M output tokens already covers a lot of everyday work: refactors, test writing, short explanations. MiniMax M3 at $0.5556 (¥4) and GPT-6.1 Sol at $0.9264 (¥6.67) sit lower still. Reserve Sonnet 5.5 and Opus 5.5 for the tasks where a stronger answer saves you time rather than tokens.
Cache read rates reward repetition. Haiku 4.5 charges $0.0278 (¥0.2) per 1M cached tokens, so a reused prompt is cheap to keep in place across a long session.
Worked examples: what a real month of requests looks like
Numbers on a price sheet are abstract. These examples put them against concrete token volumes, with no cache usage. Official list prices are reference prices only; 59API is an independent third-party relay.
- Claude Haiku 4.5, 5M input + 1M output tokens: $3.4 (¥24.5) on 59API. At the official list price of $10 (about ¥72), 59API is about 34% of list price.
- Claude Sonnet 5.5, 3M input + 0.5M output tokens: $6.11 (¥44) on 59API. At the official list price of $11 (about ¥79.2), 59API is about 56% of list price.
- GPT-6.1 Sol, 5M input + 1M output tokens: $1.85 (¥13.32) on 59API. At the official list price of $20 (about ¥144), 59API is about 9% of list price.
Use these as planning anchors. The Haiku 4.5 example is the one to remember if you mostly write code: six million tokens of input and output for the price of a few small top-ups. The Sonnet 5.5 example shows the cost of deliberately upgrading a heavier workload, and the GPT-6.1 Sol example shows how far a low per-token rate stretches when input dominates.
Because 59API charges by real token usage, your own mix of input, output and cache reads will land somewhere between these shapes. Start with one model, watch the balance move, then adjust.
Connect in two settings, then pick your model
For Claude models on 59API, set ANTHROPIC_BASE_URL=https://api.59api.com and ANTHROPIC_AUTH_TOKEN=YOUR_59API_KEY. Claude models work only through the genuine Claude Code or Claude Desktop client, and Claude Code needs version 2.1.285 or newer. They do not run through the OpenAI SDK, cURL or other clients, so keep that boundary clear.
For GPT, DeepSeek and other non-Claude, non-Gemini models, use base_url https://api.59api.com/v1 with the chat endpoint https://api.59api.com/v1/chat/completions. That path covers Codex, OpenAI SDKs, cURL and OpenAI-compatible clients such as Cursor, Cherry Studio, Cline and OpenCode. Gemini models are different again: they use Google's native protocol only, through Gemini CLI, with GOOGLE_GEMINI_BASE_URL=https://api.59api.com and GEMINI_API_KEY=YOUR_59API_KEY.
One key, one host, several families. Decide the client first, then the model id, then the rate.
Cards are optional, and they behave differently
Your prepaid balance is the main path, and monthly and weekly cards are optional. 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.
For example, the Weekly C-PRO $290 card for Claude, valid 7 days, costs $40.14 (¥289), carries quota $290 with a weekly cap $290, drains at the card's metering price × 2.4, and has a reference value at official list prices of about $80.56 (¥580).
So which route should you take? If your usage is uneven and you want pay-as-you-go flexibility, top up the smallest amount that fits your week and let the balance sit there without expiring. If you know you will burn a fixed amount of Claude or GPT quota inside a fixed window, a card can give that quota a defined cap and its own key.
Either way, the entry point is the same: one account, one API key, one host, and pricing you can read before you spend. Open 59API, top up ¥10, point your client at https://api.59api.com, and let the first request tell you where the real cost sits in your workflow.
¿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