Chinese LLM Token & Cost Calculator

Share:

Chinese LLM token & cost calculator for DeepSeek/Qwen/Kimi: estimate tokens and per-model API cost. Estimates only. In your browser.

RT-AI-066 · AI Tools
Your browser is too old for this tool’s interactive features. Please update to Safari 13.1, Chrome or Edge 80, Firefox 74 or newer.

Chinese LLM Token & Cost Calculator

Estimate how many tokens your text uses, then compute the API cost across Chinese large language models — DeepSeek, Qwen (通义千问), Kimi, Zhipu GLM, MiniMax, Doubao and ERNIE. Paste text to estimate tokens, or type input/output token counts directly, and compare per-request and total cost side by side. Everything runs in your browser; nothing is sent to a server and no model is called.

Heads-up: token counts use the OpenAI tokenizer and are estimates (估算) for Chinese models; prices were checked against official price lists on 25 October 2026 — official provider prices prevail (价格已核对,以各厂商官方为准). DeepSeek is shown at its peak rate (off-peak is half); prompts past a vendor's long-prompt tier are charged at the higher rate. Models not yet on the rate card show "—/待核实". Nothing is sent anywhere.

Estimated input tokens 0 估算 · OpenAI o200k
Model In / 1M Out / 1M Per request Total

Advertisement
After tool · AD-W1Responsive · Post-tool

From pasted text to a per-model monthly bill

Pick how you want to count

The tool takes input two ways: paste text and let it estimate the token count, or switch to "Enter token counts" mode and type the input / output token numbers you already know. Pasting text is ideal when you have not run the model yet and just want a rough figure first.

Paste text or enter token counts

In paste-text mode, drop in your prompt, document or conversation; the tool counts tokens with the browser-local OpenAI tokenizer (o200k_base) and treats that as the input tokens. Note: Chinese models do not use the OpenAI tokenizer, so the figure is an estimate (估算).

Set output tokens and request count

Enter the expected output tokens (the length of the model's reply) and how many requests you make per month or per batch. Cost = input tokens × input rate + output tokens × output rate, multiplied by requests — the table converts it live.

Compare cost across models

The table ranks DeepSeek, Qwen, Kimi, Zhipu, MiniMax and more from cheapest to priciest, showing per-request and total cost. Prices were checked against official provider price lists on 25 October 2026 — official prices prevail; prompts past a vendor's long-prompt tier are charged the higher rate; models not yet on the rate card show "—/待核实".

Advertisement
After how-to · AD-W2Responsive

How the Chinese LLM token & cost calculator works

Tokens, not words, are how LLMs bill — and Chinese counts differently

Every major large language model bills by the token, and a token is not the same as a word or a character. Roughly, a token is a short chunk of text — in English about four or five characters, while for Chinese it depends on the tokenizer: OpenAI's o200k counts roughly one token per character, and DeepSeek says its own counts about 0.6. That is why you cannot price an LLM call by counting words: the only honest unit is the token. This calculator gives you two ways to get there. Paste your prompt, document or conversation and it estimates the token count using a tokenizer that runs entirely in your browser; or, if you already have exact figures from your API usage logs, switch to manual mode and type the input and output token counts straight in. Either way, it then multiplies those tokens by each model's published input and output rates — at the vendor's higher long-prompt rate once a prompt passes its tier, such as 256K on Qwen3.7 Plus or 512K on MiniMax M3 — and ranks the results from cheapest to most expensive, so the trade-offs are visible at a glance.

The reason input and output are entered separately is that almost every provider prices them separately — and output is usually the more expensive of the two, often by several times. The text you paste represents only the input you send; the length of the model's reply, the output tokens, is something you have to estimate yourself before the request is made. Reasoning models complicate this further: a model like GLM-5.3 (or DeepSeek V4 with thinking on) generates a large volume of intermediate "thinking" tokens that are typically billed as output, so even a short final answer can carry a surprisingly high per-call cost. When you are budgeting for one of those, set the output token field higher than the visible answer length would suggest, or your estimate will run low.

"The cheapest and priciest Chinese model can differ by more than ten times on the same prompt — which is exactly why estimating before you commit pays for itself."

Estimates, not invoices: read the numbers as planning figures

It is important to be clear about what this tool can and cannot tell you. The token counts are estimates, not exact figures. They are produced with OpenAI's o200k_base tokenizer because it is the one that can run locally and openly in a browser — but DeepSeek, Qwen, Kimi, Zhipu and the rest each use their own tokenizer, and the same text will segment into a slightly different number of tokens on each. Treat the count as a sound planning figure, accurate enough to compare models and size a budget, but not as the exact number that will appear on your invoice. The same caution applies to the prices: the rates here were checked against official provider price lists on 25 October 2026, but providers change them often, and the official price always prevails. Models not yet on the rate card are listed by name with a "—/待核实" marker and left out of the arithmetic rather than guessed at.

Used with that understanding, the calculator is genuinely useful for the decisions that matter before you spend money. Run the same workload across the models and the cost gap is frequently several to more than ten times, which can change which model you choose, how long you let replies run, and whether a feature is viable at scale. Multiply a single request by your expected monthly volume and you have a defensible budget line before a single API key is issued. And because the whole thing runs locally — no upload, no model call, no stored input — you can iterate as much as you like: paste a real prompt, read the spread, tighten the output length, switch models, and re-check, all without anything you type ever leaving your device. When the decision is final, confirm the current rate on each provider's own pricing page and treat the figure here as the starting estimate it is meant to be.

Reasoning models bill their thinking as output

01

LLM APIs bill by token, not by character: one token is roughly a short chunk of text, and input and output are usually priced separately.

02

The same text is a different number of tokens on different tokenizers: OpenAI's o200k counts about one token per Chinese character and one per 4–5 English characters, while DeepSeek's own docs put its tokenizer at about 0.6 tokens per Chinese character and 0.3 per English character.

03

This tool estimates tokens with OpenAI's o200k_base tokenizer, while DeepSeek, Qwen, Kimi and other Chinese models each have their own tokenizer — so the numbers here are estimates (估算), not an exact bill.

04

Output tokens usually cost far more than input tokens — many models charge several times more for output, so keeping replies short is often the biggest saving.

05

Models that reason before answering (GLM-5.3 always does; DeepSeek V4 can switch it on) generate a large volume of "thinking" tokens, usually billed as output, which can sharply raise the per-call cost.

06

Run the same prompt across different models and the cost gap between the cheapest and priciest is frequently several to more than ten times.

07

The context window (ctx) sets how many tokens fit in one call; a big window is not cheap — long input is metered, and more tokens cost more.

08

Monthly cost for a batch job = per-request cost × number of requests; estimate one call, then multiply by scale to avoid a runaway bill at launch.

09

Prices in this calculator were checked against official provider price lists on 25 October 2026; official prices prevail. Doubao and ERNIE are not on our rate card yet and show "—/待核实".

10

The whole calculation runs locally in your browser — pasted text is never uploaded, never sent to a model, and never stored.

📅 Research current as of 25 Oct 2026 · Sources: Chat model prices re-checked 2026-10-25 against each vendor's own international price list (DeepSeek, Alibaba Cloud Model Studio, Moonshot/Kimi, Z.ai, MiniMax), with Alibaba's and MiniMax's long-prompt tiers; DeepSeek at its peak rate. Token counts estimated with OpenAI's o200k_base tokenizer in the browser. Doubao and ERNIE not yet on the rate card.
Tariffs and unit prices change frequently — confirm the current rate with your provider before relying on these figures.

Frequently Asked Questions

  • No. This tool estimates tokens locally in your browser with OpenAI's o200k_base tokenizer, while DeepSeek, Qwen, Kimi, Zhipu and other Chinese models each use a different tokenizer, so the segmentation differs. The token counts here are estimates (估算), good for budgeting but not an exact bill.
  • Prices were checked against official provider price lists on 25 October 2026 — official prices prevail. Providers change prices often, and promotional or regional pricing can differ. Check the provider's own page before any real purchase or launch. Doubao and ERNIE are not on our shared rate card yet (Doubao prices in USD on BytePlus, ERNIE in CNY on Baidu Qianfan) and show "—/待核实".
  • No. It does just two things in your browser: estimate tokens with a local tokenizer, and multiply numbers to compute cost in plain JavaScript. It never calls DeepSeek, Qwen or any model, and makes no network requests beyond loading our own same-origin tokenizer and pricing-data files.
  • If you have not run the model yet and only have some text, use paste-text mode and let the tool estimate the input tokens. If you already have exact input / output token counts from your API usage or logs, switch to "Enter token counts" and type them in for a result closer to the real bill.
  • Because input and output are usually priced separately, and output often costs much more than input. The length of the model's reply (output tokens) is something you cannot know before the request, so you estimate it; pasted text only represents the input you send.
  • Yes, and it differs by vendor. On the OpenAI o200k tokenizer this tool uses, a Chinese character is about one token and English runs about 4–5 characters per token; DeepSeek's own docs say 1 Chinese character ≈ 0.6 tokens and 1 English character ≈ 0.3 tokens. So for DeepSeek this estimate probably runs high on Chinese text and can run low on English. Compute per token, not per character.
  • It means that model's price is not on our shared rate card yet, so it is left out of the arithmetic and only listed by name — never guessed. Today that is Doubao and ERNIE: Doubao is priced in USD on ByteDance's BytePlus, ERNIE in CNY on Baidu Qianfan; check the vendor's own price list.
  • Reasoning models generate a large volume of "thinking" tokens before the answer, usually billed as output tokens. Even if the final answer is short, the intermediate reasoning consumes tokens and raises the per-call cost — set output tokens higher when estimating these.
  • No. All calculation happens locally in your browser with plain JavaScript. Nothing you paste or type is sent to any model, server or third party, and nothing is stored.
  • Completely free, with no account or sign-up and no usage limit. It runs in your browser and collects no data.

Method & sources

How it computes

Cost per request = input tokens ÷ 1M × input rate + output tokens ÷ 1M × output rate, in USD from the shared CN rate card (each row re-read from the vendor's own price list 2026-10-25; DeepSeek at its peak rate). Above a vendor's long-prompt tier — Qwen3.7 Plus 256K, MiniMax M3 512K input tokens — the whole request bills the higher rate. Pasted text is counted with OpenAI's o200k_base tokenizer, an estimate for these models (LlmCostKernel).

What this tool implements

  • Prices are each vendor's own international list price in USD per million tokens, re-read 2026-10-25 and unchanged since 2026-10-14: DeepSeek V4 Pro $1.32 / $3.96 and V4.1 Flash $0.30 / $1.20 at peak (off-peak is half); Qwen3.8 Max $2 / $6, Qwen3.7 Plus $0.40 / $1.60, Qwen3.8 Flash $0.15 / $0.47; Kimi K3 $3 / $15, Kimi K2.6 $0.95 / $4; GLM-5.3 $1.40 / $4.40; MiniMax M3 $0.30 / $1.20.
  • Long-prompt tiers are applied as the vendors bill them, by input tokens per request: Alibaba qwen3.7-plus "0<Token≤256K" $0.40 / $1.60 and "256K<Token≤1M" $1.20 / $4.80; MiniMax-M3 "≤ 512k input tokens" $0.30 / $1.20, above $0.60 / $2.40. "K" is read as 1,000, the reading that never under-bills. A request whose input + output exceeds the model's window is flagged as unsendable.
  • Token counts for pasted text are labelled estimates: they use OpenAI's o200k_base tokenizer (about one token per Chinese character), while DeepSeek's own docs give 1 Chinese character ≈ 0.6 tokens and 1 English character ≈ 0.3 tokens on its tokenizer — so for DeepSeek the estimate runs high on Chinese text and can run low on English, and the page says so.
  • Doubao and ERNIE are listed but unpriced: Doubao Seed 2.0 Pro is priced in USD on BytePlus ModelArk and ERNIE 5.0 in CNY on Baidu Qianfan, and neither is on the shared rate card yet; they are never guessed or converted.
  • Corrected 2026-10-25: the base tier was charged at every prompt length (Qwen3.7 Plus at 300K input read $0.1232 for $0.3696); "a Chinese character is close to 1–2 tokens" → about one on o200k, 0.6 on DeepSeek's tokenizer (DeepSeek docs); the pre-tokenizer fallback of characters ÷ 2 → TokenEstimateKernel's o200k-rate estimate; the "unverified" wording for Doubao and ERNIE → not yet on the rate card; zh-TW pages now show Traditional model names. Added: tier, window, off-peak, discount and retirement notes.

Sources

What can make this go out of date

  • The shared rate card public/assets/vendor/reca-ai-data/llm-models.js (chatCN, chatCNAsOf) and the vendored js-tiktoken o200k_base tables, both same-origin; nothing the reader types is sent anywhere.
Advertisement
Pre-footer · AD-W3 728 × 90