How to use the token calculator
Select a model, enter input and output tokens for one request, and set your expected monthly volume. The estimate includes both sides of the conversation and shows what one request costs. For input-only work, enter zero output tokens.
If you have a prompt instead of a measured count, choose Paste text. The browser reports how many tokens, words, and characters it contains. Open Inspect token IDs to see the token sequence. Switch back to Enter token count to use the measured input as a starting point and add any system instructions, message history, or tool schemas you expect to send.
From one request to your monthly bill
Suppose a request uses 1,000 input and 250 output tokens. At $2 per million input tokens and $10 per million output tokens, that is $0.0045 per request, or $4.50 for 1,000 requests. The figure scales linearly as long as the rate and mix of requests stay the same.
Use the token cost calculator if you have total usage from a report. To compare one model's input price with another model's output price, use the cost-per-token converter. For Anthropic workloads, the Claude calculator shows Claude's rates and a worked example.
How the text count works
The browser uses the o200k_base encoding, which OpenAI's tiktoken maps to models including GPT-4o and GPT-4.1. Tokenization counts part-words, punctuation, and line breaks. Code and multilingual text often behave differently from English prose.
A rate preset changes the price only. For Claude, Gemini, and models with another or unpublished encoding, enter the model's own measured token count when precision matters. Include anything the API also bills, such as reasoning tokens charged as output. The pricing table links to official sources for different tiers and any extra charges.
Does the calculator upload my prompt?
The tool processes calculator inputs in your browser. It does not send your prompt to a model or a counting service. Reloading the page clears the tool's session. See the privacy policy for the requests needed to deliver the site.