AI Token Calculator

Estimate how many AI tokens are in your text and how much it may cost to process it.

This is an approximate token estimate, not an exact tokenizer.
Different text types tokenize differently.
Optional: expected model response length.
Set your model’s input token price.
Set your model’s output token price.
How we calculate
  • Token count is estimated from character length and text type.
  • English text is roughly 1 token per 4 characters, but this varies.
  • Total tokens = estimated input tokens + expected output tokens.
  • Cost = input tokens × input price + output tokens × output price.