Skip to main content
TokenCost logoTokenCost

Tencent Token Counter

Count Tencent tokens online and see what your text costs across all 5 models, including Hy4 Flash, Hy4 and Hy4 preview. Everything runs in your browser and nothing you paste leaves the page. Counts are estimates made with the cl100k_base encoding, since Tencent has not released a browser-ready tokenizer. Estimated counts are marked with a tilde (~).

ModelTokensInput CostOutput Cost
Hy4 Flash———
Hy4———
Hy4 preview———
Hy3———
Hunyuan HY3 Preview———

Type or paste text above to see token counts and per-request costs for every Tencent model.

Tencent Model Pricing

ModelInput /1MOutput /1M
Hy4 Flash$0.035$0.141
Hy4$0.417$1.25
Hy4 preview$0.834$2.50
Hy3$0.132$0.528
Hunyuan HY3 Preview$0.178$0.595

Frequently Asked Questions

Common questions about counting Tencent tokens

Which tokenizer does Tencent use?
Tencent uses its own tokenizer, which is not publicly available to run in a browser. This counter estimates counts with OpenAI's cl100k_base encoding, which is typically within roughly 10 to 20 percent of the real count for English text.
Are these Tencent token counts exact or estimated?
Estimated. Tencent has not released its tokenizer for browser use, so this tool approximates counts with OpenAI's cl100k_base encoding. Estimates are usually close for English text but can drift for code, JSON, and non-English languages. Estimated counts are marked with a tilde (~).
How is Tencent API cost calculated?
Cost equals tokens divided by one million, multiplied by the model's per-million-token rate. Each Tencent model has separate input and output rates, and this page shows both: what your text would cost as a prompt (input) and what the same number of tokens would cost as a response (output).
Why do token counts matter for Tencent API costs?
Tencent bills API usage per token, not per word or character. A token is roughly 4 characters or about three quarters of a word in English. Knowing the token count of your prompts lets you predict spend, stay inside context windows, and compare Tencent models like Hy4 Flash, Hy4 and Hy4 preview before you commit.

Related Tools