[KongchangAI]
Concept字符/token比 / 字符token换算系数

CHARS_PER_TOKEN

An empirical coefficient in LLM applications for roughly estimating token counts, namely the average number of characters per token. English prose is about 4 characters per token; code, dense with symbols and indentation, is usually 3.5 to 3.8; compacted JSON can be as low as 2.5; and Chinese, Japanese, and Korean text is close to 1 to 2. Choosing a smaller value makes the estimate more conservative.

Timeline (last 90 days)

Oct 18

In prompts mixing prose and code, CHARS_PER_TOKEN = 3.6 is a rough empirical conversion value used for deterministic token-count estimation.

Unverified50%
Oct 18

Compressed JSON or minified JS can have a characters/token ratio as low as 2.5, and non-Latin text such as Chinese, Japanese, and Korean often takes 1~2 tokens per character, so the CHARS_PER_TOKEN estimate cannot be used for reconciling against bills, only for relative ordering between different calls within the same script.

Unverified50%

All Facts (2)

Source Articles