59API

← Volver a las guías

Gemini 3.8 Flash pricing on 59API: rates and setup

Modelos · EN · 2026-11-24

Why model access and model cost keep slowing you down

Most developers do not struggle to find a capable model. The friction appears later: every provider wants its own account, its own key, its own dashboard, and its own billing rules. Then the invoice arrives, and the hard part begins — working out which requests were cheap, which ones were expensive, and whether the model you actually want is worth the price you are paying.

59API was built to remove that friction. It is an independent third-party AI API relay: one account, one API key, and one API host at https://api.59api.com, covering Claude, GPT, Gemini, DeepSeek and other models. You top up a prepaid balance, and each request is charged according to its real token usage. There is no monthly fee, and your balance never expires.

This guide focuses on one model: Gemini 3.8 Flash. Below you will find the exact rates, the two environment variables you need for Gemini CLI, and a straightforward framework for deciding when this model fits your workload — and when a different Gemini model on the same account makes more sense. If you are tired of comparing scattered pricing pages while your code waits, here is the short version.

Gemini 3.8 Flash pricing on 59API, token by token

All 59API prices are quoted per 1 million tokens. Billing is in CNY, and the USD figures shown here use the rate ¥7.2 = $1. For Gemini 3.8 Flash, the model id is gemini-3.8-flash, and the rates are input $1.11 (¥8), output $5 (¥36), and cache read $0.1111 (¥0.8).

That split matters more than the headline number. Input tokens are the material you send: prompts, context, retrieved documents. Output tokens are what the model writes back, and they are the more expensive side of the ledger. Cache reads are charged at a smaller rate again, which makes sense for repeated context that can be reused instead of reprocessed.

For orientation, three other Gemini models on the same 59API account sit at different points. Gemini 2.5 Flash, id gemini-2.5-flash, is listed at input $0.2083 (¥1.5), output $1.67 (¥12), and cache read $0.0208 (¥0.15). Gemini 3.1 Pro, id gemini-3.1-pro, is input $1.39 (¥10), output $8.06 (¥58), and cache read $0.1389 (¥1). Gemini 4 Argon, id gemini-4-argon, is input $1.39 (¥10), output $6.67 (¥48), and cache read $0.0694 (¥0.5).

Because Gemini models have no official list price to compare against, these figures are simply the numbers you will be charged. Read them as the cost of your architecture, not as a discount claim.

Setting up Gemini 3.8 Flash in Gemini CLI

Connection details are where most guides get sloppy, so here they are exactly. Gemini models on 59API use Google native protocol, and the supported path is Gemini CLI. Set two environment variables:

That is the whole setup. Replace YOUR_59API_KEY with the key from your 59API account, point Gemini CLI at the relay host, and select gemini-3.8-flash as the model id.

One boundary is worth stating plainly, because getting it wrong wastes an afternoon: Gemini models are not OpenAI-compatible. They do not work on /v1/chat/completions, and they are not usable through the OpenAI SDK, cURL, Codex, Cursor, Cherry Studio, Cline or OpenCode. Those clients and tools connect to GPT, DeepSeek and other non-Claude, non-Gemini models on 59API. For Gemini, the native protocol through Gemini CLI is the route.

Once requests flow, check that your usage matches expectations. Since 59API charges by real token usage per request, the rate table above becomes a live cost model rather than a static document. If output volume is climbing faster than expected, that is visible immediately in the token counts rather than buried in a monthly statement.

When to use Gemini 3.8 Flash, and when to switch

Choose Gemini 3.8 Flash when you want a capable Gemini model at a middle tier of cost, especially for workloads with meaningful input context and substantial generated output. Consider a hypothetical example: a developer runs an internal assistant over a large codebase. Each turn sends context, the model returns a structured answer, and the same reference files are consulted again and again. At input $1.11 (¥8) and output $5 (¥36) per 1 million tokens, the running cost is predictable and directly proportional to usage.

Now consider where the alternatives pull ahead. If your workload is dominated by very large inputs with shorter replies, Gemini 2.5 Flash at input $0.2083 (¥1.5) and output $1.67 (¥12) costs materially less on both sides. If you need the higher-tier Gemini option for difficult reasoning, Gemini 3.1 Pro at input $1.39 (¥10) and output $8.06 (¥58) is the more expensive call, and Gemini 4 Argon at input $1.39 (¥10) and output $6.67 (¥48) sits between the two.

Two practical habits make the decision easier. First, route routine, high-volume, context-heavy work to a lower-cost Flash tier and reserve the stronger models for the requests that genuinely need them. Second, watch cache read volume: at $0.1111 (¥0.8) per 1 million tokens for Gemini 3.8 Flash, reused context carries the smallest charge in this table, so repeated context is worth tracking closely as your usage grows.

Billing, top-ups and getting your first request running

59API uses a prepaid model. Top-up options are ¥10, ¥50, ¥100, ¥200, ¥500 and ¥1000, paid by WeChat Pay or bank card, and invoices are available. Every request draws down your balance according to actual token usage, there is no monthly fee, and the balance never expires — so a small top-up is a perfectly reasonable way to begin.

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, so treat them as limits rather than value comparisons.

For Gemini 3.8 Flash specifically, your prepaid balance and standard API key are the straightforward path. Create your 59API account, add a balance with the top-up option that matches your working style, set the two Gemini CLI environment variables, and run a small test request with gemini-3.8-flash. Once you can see the token counts and the resulting charge, the pricing table stops being abstract — and you can decide, request by request, which model earns its place in your stack.

Docs

¿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