Token Counting

Why Chinese Prompts Can Use Different Token Budgets Than English Prompts

If your team writes prompts in both English and Chinese, do not plan production budgets from one English estimate.

That shortcut fails because API limits and costs are applied to the tokenized request that actually reaches the model. Two prompts can ask for the same task and still consume different input tokens once the localized wording, punctuation, JSON instructions, and retrieved context are included.

As of July 21, 2026, OpenAI's token-counting guide recommends counting the exact request payload with POST /v1/responses/input_tokens. The guide says this count uses the same input format as the Responses API and includes request-structure overhead. That is the right baseline for multilingual prompt budgeting.

The core rule

Count the exact localized request before you send it.

If you only count the English version, you are budgeting from a proxy instead of the request you will ship.

Why Chinese prompt budgets can differ

  1. The localized wording is different input.
  2. Punctuation and formatting patterns change.
  3. Structured instructions such as JSON field labels can change shape.
  4. Retrieved context may expand or compress differently by language.
  5. The expected output length may change even when the task stays the same.

That is why a Chinese prompt budget can differ from an English prompt budget even when the business intent is identical.

Use the official preflight count, not a guess

  1. Build the real request payload.
  2. Send that payload to POST /v1/responses/input_tokens.
  3. Read input_tokens.
  4. Approve, trim, or reject the prompt before the production call.

This is stronger than using a character-count rule or a local tokenizer alone. The official count includes request-structure tokens that your team may not see in the visible text.

Local estimates still help with comparison

A local tokenizer is still useful for drafting and side-by-side comparisons. It is not the final authority, but it helps you see where Chinese prompt budgets and English prompt budgets begin to diverge.

ExampleEnglish tokensChinese tokensWhat changed
Short prompt57Only the sentence changed
JSON extraction task4041Wording changed, schema stayed aligned
Retrieval-heavy task5767Wording and policy context both changed

Paste-ready prompts to test in TokenTest

Example 1: short prompt

English:

Tell me a joke.

Chinese:

给我讲个笑话。

Example 2: JSON extraction task

English:

You are a support operations assistant.

Summarize the customer issue in one sentence and return JSON with:
- issue_type
- urgency
- summary

Customer message:
"I was billed twice after checkout failed."

Chinese:

你是一名客服运营助手。

请用一句话总结客户问题,并返回 JSON,包含:
- issue_type
- urgency
- summary

客户消息:
"结账失败后我被重复扣费了。"

Example 3: retrieval-heavy task

English:

You are reviewing a billing incident.

Read the policy excerpt and the customer complaint, then return:
- root_cause
- refund_risk
- escalation_required

Policy excerpt:
Refund duplicate charges caused by checkout errors within 7 days.

Customer complaint:
"I was billed twice after checkout failed."

Chinese:

你正在复核一笔账单事故。

阅读政策摘录和客户投诉后,返回:
- root_cause
- refund_risk
- escalation_required

政策摘录:
对因结账错误导致的重复扣费,可在 7 天内退款。

客户投诉:
"结账失败后我被重复扣费了。"

What to test before rollout

CheckWhy it matters
Count the exact localized requestConfirms the real input budget
Add the real retrieval blockShows whether context pushes the prompt over budget
Keep the same output schemaPrevents fake cross-language comparisons
Compare short and long versionsReveals where token growth becomes nonlinear

Why TokenTest is useful after preflight counting

The official preflight count tells you what should happen before the call. TokenTest helps you validate what actually happened after the call.

TokenTest's homepage and manual currently describe production-reference evaluation checks around usage integrity, token total consistency, input monotonicity, cache token evidence, and stop-limit linkage.

That matters because OpenAI's guide also notes that output-token usage includes non-visible generated tokens. If you only look at visible text, you can still miss budget risk.

A simple operating policy

Count the exact localized request with the official input-token endpoint, then verify live usage integrity for each production language.

Common mistakes

Final take

Chinese prompts can use different token budgets than English prompts because tokenization follows the real localized request, not the human idea behind it.

For reliable planning, use two layers:

  1. official preflight counting with POST /v1/responses/input_tokens
  2. live usage validation in TokenTest after the request

That is the difference between a rough estimate and a production decision.

Try the examples above in TokenTest and compare the same workflow in English and Chinese before rollout.