Tₖ
TOKEN & LLM COST

Token & LLM Cost

Count tokens locally, check context usage and estimate request costs with your own rates.

Local processing
Workspace
Default capacity and rates are illustrative, not model quotes. Raw text counts exclude message framing, tool definitions, images and reasoning tokens. Claude, Gemini and other models require their own tokenizers and billing data.
0 characters
Read only
Ready. Enter your content, then choose an action.
◇ Content is processed in this browser onlyInput is not saved automatically
HOW TO USE

How to use

Choose the encoding used by your model and paste the complete text. Enter context capacity, reserved output tokens, input/output USD rates per million tokens, and total planned requests. For daily or monthly forecasts, enter the total requests for that period.

Example

1,000 input tokens at $1/million plus 1,000 output tokens at $3/million cost $0.004 per request, or $4 for 1,000 requests.

GOOD TO KNOW

Keep in mind

Up to 100,000 characters. Algorithm assets load from this site on first use; no model call or text upload occurs. Costs assume identical input and the full reserved output on every request, excluding cache discounts, batch rates, tiers, taxes and other charges.

Common questions

Why does API usage differ? This counts raw text using the selected encoding. Protocol and model overhead add tokens. Reserved output is a planning assumption, not a prediction of actual generation length.