aiClassic tool

AI Token Cost Calculator

Estimate tokens, words, characters and API costs for GPT-5.5, Claude and Gemini in one place.

  • ai
  • tokens
  • api
  • openai
  • claude
  • gemini

Use this AI token cost calculator to quickly estimate how many tokens a text may consume and what that means in API pricing across major LLM providers. The tool shows words, characters, estimated tokens and a pricing table for OpenAI, Anthropic and Google.

It works well for long prompts, prompt audits, budget planning, automation tests and text reviews before sending content to GPT-5.5, Claude Opus 4.7, Claude Sonnet 4.6, Gemini 2.5 Pro and lower-cost models. If you already expect a response size, you can also enter output tokens to compare input, cached input and output costs.

All calculations run in the browser and use estimation profiles for prose, code/JSON and Chinese, Japanese or Korean text. The pricing table reflects standard public rates checked in May 2026 on the official OpenAI, Anthropic and Google AI pricing pages.

Use “Auto” for basic content detection. Code and JSON usually cost more tokens, while CJK text uses a separate estimate profile.

Text metrics

0Estimated tokens
0Words
0Characters without spaces
0Total characters
0Output tokens used for pricing
-Applied profile

Model cost comparison

Rows below use standard public pricing per 1 million tokens. Gemini 2.5 Pro switches automatically to the higher tier when input exceeds 200k tokens.

Provider Model Input / 1M Cached / 1M Output / 1M Input cost Cached cost Output cost
Add text to generate the comparison.

Use clear inputs to get a more useful result.