59API

← Back to all guides

Claude Haiku 4.5 pay-as-you-go on 59API for side projects

API · EN · 2026-11-16

The side-project budget problem

Most side projects do not burn through compute evenly. A weekend you might ship a prototype, test three prompts and close the laptop. The next three weeks you might touch nothing at all. A subscription priced for constant usage feels wrong when your traffic is a spiky line, and prepaid credits that quietly expire feel wrong too. You want a cost model that follows actual demand instead of pretending every month is the same month.

That is the situation 59API is built for. 59API is an independent third-party AI API relay: one account, one API key and one API host, covering Claude, GPT, Gemini, DeepSeek and other models. You keep a prepaid balance, and 59API charges per request according to real token usage. There is no monthly fee, and the balance never expires. A dormant month costs you nothing extra; an active day costs you exactly what the tokens cost.

Monthly and weekly cards exist, but they are optional. That distinction matters for side projects. If you are still deciding whether a weekend experiment deserves a subscription, you are not being asked to commit to a recurring plan before you know the shape of your usage. Consider a hypothetical situation: a solo developer tests a chat assistant for two evenings, then abandons it for a month. With pay-as-you-go on 59API, the spend stays attached to the tokens that were actually processed.

How the money works

The billing model is deliberately simple for irregular workloads. You top up, you use it, and the balance stays available until you spend it. Top-ups come in ¥10, ¥50, ¥100, ¥200, ¥500 and ¥1000, paid by WeChat Pay or bank card, and invoices are available. Billing is in CNY, with USD figures shown at ¥7.2 = $1, so you can read the per-token rates in either currency without guessing at an exchange rate.

For a side project, the small top-ups are the important part. A ¥10 top-up is enough to find out whether a particular model behaves the way your prototype needs, and if the answer is no, you have not locked yourself into a large recurring commitment. When usage becomes predictable and heavier, you can top up more and treat the balance as working capital rather than a subscription you must remember to renew every month.

Because charges are per request and based on real token usage, the practical effect is that your bill is a by-product of your product. A feature that nobody opens generates no bill. A release that attracts real usage generates a proportional one. There is no monthly fee to justify or defend, and no expiring balance to lose track of. For founders running several experiments at once, that is the difference between a tool you can leave switched on and a cost line you keep postponing.

Choosing models for bursty usage

Pay-as-you-go only helps if the model choices are sensible, and 59API exposes a broad catalogue with per-million-token rates. For light, frequent, small requests, Claude Haiku 4.5 (model id claude-haiku-4-5-20251001) is priced at $0.3472 (¥2.5) input, $1.67 (¥12) output and $0.0278 (¥0.2) cache read, against an official list price of $1 / $5. DeepSeek V4 Flash (model id deepseek-v4-flash) lists $0.2778 (¥2) input, $1.11 (¥8) output and $0.006944 (¥0.05) cache read. MiniMax M3 (model id MiniMax-M3) is $0.1389 (¥1) input and $0.5556 (¥4) output, with $0.0278 (¥0.2) cache read.

Here is a hypothetical worked example. A side project processes 5M input tokens and 1M output tokens without cache on Claude Haiku 4.5. On 59API that is $3.4 (¥24.5). At the official list price of $10 (about ¥72), 59API is about 34% of list price. That gap matters most for the projects that spike: a demo day, a launch week, a batch job that runs once and then sleeps.

Compare that with GPT-6.1 Sol (model id gpt-6.1-sol) at $0.1847 (¥1.33) input and $0.9264 (¥6.67) output. For 5M input tokens plus 1M output tokens without cache, the 59API cost is $1.85 (¥13.32), while the official list price is $20 (about ¥144), making 59API about 9% of list price. The right takeaway is not that one model wins, but that switching models between a cheap default and a heavier reasoning option is a normal, cheap decision when you are billed per token.

One key, but real protocol boundaries

59API keeps access simple: one account, one API key, one API host at https://api.59api.com. What you plug that key into still matters, because each model family expects its own client and protocol. For Claude Code or Claude Desktop, 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, version 2.1.285 or newer, and never through the OpenAI SDK, cURL or other clients.

For Codex, OpenAI SDKs, cURL and OpenAI-compatible clients such as Cursor, Cherry Studio, Cline and OpenCode, use base_url https://api.59api.com/v1 and the chat endpoint https://api.59api.com/v1/chat/completions. Those paths cover GPT, DeepSeek and other non-Claude, non-Gemini models only.

Gemini follows Google's native protocol through Gemini CLI, using GOOGLE_GEMINI_BASE_URL=https://api.59api.com and GEMINI_API_KEY=YOUR_59API_KEY. Gemini models are not OpenAI-compatible and do not work on /v1/chat/completions. These are genuine constraints, not marketing details, and they are worth checking before you wire up a project.

When a card makes more sense

Pay-as-you-go is the natural default for unpredictable side-project usage, but sometimes a card is the better shape. A card has its own key, can call only 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.

Compare two hypothetical options. The weekly G-PRO $1100 card costs $40.56 (¥292) for 7 days, with quota $1100 and a weekly cap of $1100. The monthly G-PRO Starter version costs $83.19 (¥599) for 30 days, with quota $2300 and a weekly cap of $880. If you know you will run heavy, sustained traffic this week, the card removes the need to keep topping up. If you do not know, prepaid balance on 59API keeps the risk at zero until you actually send tokens.

So the decision is straightforward. Uncertain, spiky, experiment-heavy usage points to pay-as-you-go on 59API. Predictable, concentrated usage may justify a card. Either way you get one account, one key and transparent per-token billing with no monthly fee, and 59API is ready when your next side project starts demanding tokens.

Docs

Ready to get started?

One key for Claude, GPT and more, billed by real token usage with no monthly fee. Sign up to create your API key; rates for every model are on the pricing page.

Sign up free Pricing