CostRouter FREE DEVELOPER TOOL

Token calculator · Tokenizer

Turn a prompt into a clear budget. Count tokens, explore model pricing and see what your group saves.

Available groups, ordered by price. The selected group determines your estimate.

Estimated request input tokens
or

Estimated as one user message, including message overhead. Counts may use a default tokenizer or model-specific approximation.

Estimated response text tokens
or

A sample helps you plan; it does not predict the response. Reasoning and other billable output may add tokens.

Calculate sends your text to CostRouter for estimation.

Rates per 1M tokens · USD

Choose a model to see pricing.

Compared with platform base rates, not verified provider list prices. Estimates exclude quota rounding, tool charges and recharge promotions; actual usage may differ.

No account neededNo model generation or account charges

From tokens to a practical budget

What is a token?

A token is a piece of text a model processes. It may be a word, part of a word, punctuation or bytes within a character. Counts vary by model, language and text; character counts are not a reliable substitute.

Can I estimate output before making a request?

Yes. Enter an expected output token count or paste a sample response. This is a planning assumption, not a prediction. Visible response text may omit billable reasoning and formatting tokens.

How are cache reads and writes priced?

Where rates are available, the calculator splits total input into ordinary input, cache reads and cache writes. Each portion is charged once at its own rate. Actual cache reuse depends on the provider, matching prefixes, minimum length and expiration.

What does the savings figure compare?

Group savings compare your selected group with the platform base price using identical token and cache assumptions. Cache savings are shown separately. These figures do not claim a verified comparison with official provider pricing.

Is my text sent to a server?

Yes. When you calculate, your text is sent to CostRouter for token estimation. The calculator does not forward it to a model provider or generate a response. Calculating does not charge your account.

Copyright 2026 CostRouter. All rights reserved.

CostRouter is prohibited for users located in mainland China. If use from mainland China is discovered, CostRouter may suspend or terminate the account, and any paid fees or remaining balance will not be refunded.

Free Token Calculator & Tokenizer | CostRouter