Estimate input tokens and total price for OpenAI, Gemini, and Claude models. This is a planning estimate, not a billing source of truth.
Need more than a template?
I build AI agents and workflow automation that connect to the systems you already run.
AI systems and automation →Paste a prompt, pick a model and the tool estimates how many input tokens it will use and what the call will cost, including the output tokens you expect back. The numbers are estimates. Real tokenizers differ by model, so use this for budgeting and sizing, and the provider's own counter when you need an exact figure.
Text: "Summarise the attached incident report in five bullet points."
Size: 61 characters, 9 words
Input: about 16 tokens (at roughly 4 characters per token)
Output: 200 tokens, entered by youThe estimate takes the larger of characters divided by the model's characters-per-token figure and words times 1.33.
OpenAI, Google and Anthropic each tokenize differently. For exact counts use tiktoken for OpenAI models, the countTokens API for Gemini and the token counting endpoint for Claude.
Code, JSON and text in other languages often use more tokens per character than English prose, so the estimate may run low for them.
For every model in this tool, output tokens cost several times more than input tokens. A long answer can cost far more than the prompt that asked for it.
System prompts, conversation history, tool definitions and retrieved documents all count as input. Paste them in too, or the total will be short.