59API

← सभी गाइड पर लौटें

59API for small teams: a Codex API proxy setup guide

API · EN · 2026-11-17

The small-team AI bill problem

A small team rarely has an AI budget that behaves like a fixed subscription. Maybe you are three engineers building an internal tool, and each person is testing a different model in a different client. Maybe you are a two-person studio that needs a strong model on some days and a cheap one for everything else. Or maybe you are a solo founder who wants to ship a side project without opening yet another monthly bill.

Here is the problem those teams share: access, billing, and setup all become separate jobs. You juggle provider accounts, keys, and invoices, then discover that the client you actually use does not speak the protocol the model expects. The result is a lot of small friction before a single useful response comes back.

59API is built to remove that friction in a way that fits small teams: one account, one API key, one API host at https://api.59api.com, and prepaid balance charged per request by real token usage. There is no monthly fee, and your balance never expires. You top up only what you plan to use, and that money stays available for as long as you need it.

That sounds simple, but the details matter more than the headline. So the honest question is not whether an API relay sounds good in theory. It is whether this particular setup matches how your team actually works.

What 59API is, and how the money works

59API is an independent third-party AI API relay. You get one account and one API key, and you point your tools at one API host: https://api.59api.com. From there you can reach supported models without managing a separate account with each vendor.

One limit is worth stating plainly, because it saves a lot of confusion. Claude models work only through the genuine Claude Code or Claude Desktop client (Claude Code 2.1.285 or newer), set with ANTHROPIC_BASE_URL=https://api.59api.com and ANTHROPIC_AUTH_TOKEN=YOUR_59API_KEY; they never work through the OpenAI SDK, cURL, Codex, or other third-party clients. Gemini models 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; they are not OpenAI-compatible. For Codex and OpenAI-compatible tooling, the working set is GPT, DeepSeek, and other non-Claude, non-Gemini models.

On the billing side, you pay per request based on real token usage. Billing is in CNY, and USD figures are shown at ¥7.2 = $1. Top-ups come in ¥10, ¥50, ¥100, ¥200, ¥500, and ¥1000, paid by WeChat Pay or bank card, and invoices are available. If your plans change, 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.

Situations where 59API suits a small team

Imagine a four-person startup building an internal assistant. Two developers work in Codex, one tests in Cursor, and a designer experiments in Cherry Studio. Instead of four separate sign-ups and four sets of keys, each person can point an OpenAI-compatible client at the same 59API host and use the same key. When the week ends, the team looks at one prepaid balance rather than three overlapping invoices.

Now imagine a two-person agency that resells AI-assisted writing workflows. Predictability matters more than a headline discount, so per-request billing by real token usage fits: quiet weeks cost little, busy weeks scale with actual usage. A student team with a strict budget can top up ¥10 or ¥50, use exactly that, and stop.

Several other situations work well too. A solo developer who wants to compare GPT-6.1 Sol against DeepSeek V4 Flash for the same feature can switch models without changing endpoints. A team that wants receipts for expense reports can use invoices. A team that wants a hard ceiling on spend can choose an optional card instead of an open wallet.

By contrast, 59API is a poor fit if you want a seat-based monthly contract or a negotiated enterprise agreement. It is also a poor fit if your plan depends on calling Claude models from Codex or another third-party client, because Claude works only in the official Claude Code or Claude Desktop client, and Gemini works only in Gemini CLI. Knowing what it is not is part of deciding whether it is right for you.

Connecting Codex and OpenAI-compatible clients

The setup is short because there is only one host and one key. 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. Put your 59API key in the field your client uses for an API key, using the placeholder YOUR_59API_KEY while you test.

That is the whole integration for a small team: one base URL, one endpoint, one credential. There is no per-client account to create and no separate key to rotate per tool, which matters when three people are working in three different editors on the same afternoon.

A practical tip for a small team: agree on one model per task before anyone starts experimenting. Use a fast, inexpensive model for routine work and a stronger GPT model for the tasks where output quality actually changes the outcome. The pricing below makes that split easy to reason about, because every model is billed on the same simple token basis.

One more detail to keep in your notes: 59API is an independent relay, not an official channel of any model provider. Official list prices are reference prices for comparison, and your actual cost on 59API is the per-token rate shown in your dashboard.

What it actually costs, with real numbers

Rates are listed per 1 million tokens. GPT-6.1 Sol is $0.1847 (¥1.33) for input and $0.9264 (¥6.67) for output, with cache read at $0.0375 (¥0.27). DeepSeek V4 Flash is $0.2778 (¥2) input and $1.11 (¥8) output, with cache read at $0.006944 (¥0.05). Qwen3.7 Plus is $0.1389 (¥1) input and $0.4167 (¥3) output, with cache read at $0.0417 (¥0.3).

Worked examples make the difference easier to picture. For GPT-6.1 Sol, 5M input plus 1M output tokens without cache costs $1.85 (¥13.32) on 59API, against an official list price of $20 (about ¥144), so 59API is about 9% of list price. For GPT-5.6 Sol, 2M input plus 0.5M output tokens without cache is $1.67 (¥12) on 59API, against an official list price of $18 (about ¥129.6), also about 9% of list price.

For a small team, the practical takeaway is that a weekend of experimentation can cost less than a single takeaway lunch, and the number on the invoice matches the tokens you actually used. That is exactly the argument for prepaid, per-request billing: no fixed fee to amortise, no unused seat to regret.

Cards, and when to skip them

Monthly and weekly cards are optional, so a small team can ignore them at first. When you do want a prepaid ceiling, the G-PRO entry card is $83.19 (¥599) for 30 days, with quota $2300 and a weekly cap $880, draining at the card's metering price × 2.4; its reference value at official list prices is about $638.89 (¥4600). A weekly option exists too, such as the GPT weekly card at $40.56 (¥292) for 7 days.

Read the card rules carefully. Quota and caps are card metering units written in $, not official list-price dollars, so do not convert them into official prices. Unused quota does not roll over. 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.

My advice for a small team is simple. Start with the prepaid wallet and a small top-up such as ¥10 or ¥50, connect one tool with the base_url and endpoint above, and measure a week of real usage. If you then want a predictable ceiling rather than an open wallet, add a card. That way you buy the structure you need, and only after you know how your team actually spends.

दस्तावेज़

शुरू करने के लिए तैयार?

Claude, GPT और अन्य मॉडलों के लिए एक ही key, असली token उपयोग पर बिलिंग और कोई मासिक शुल्क नहीं। साइन अप करके अपनी API key बनाएं; हर मॉडल की दरें मूल्य पेज पर हैं।

मुफ़्त साइन अप मूल्य