- Tokens
- …
- Words
- 33
- Characters
- 194
Exact count with o200k_base, the tokenizer OpenAI uses for gpt-4.1-mini.
- As input to gpt-4.1-mini
- $0.00
- With a 300-token reply
- $0.00048
- × 1,000 requests
- $0.4800
| Model | Provider | One request | 1,000 requests |
|---|---|---|---|
| gpt-4.1-nano | OpenAI | $0.00012 | $0.1200 |
| gpt-4.1-mini | OpenAI | $0.00048 | $0.4800 |
| gemini-3.6-flash | $0.00113 | $1.13 | |
| mistral-medium-latest | Mistral | $0.00225 | $2.25 |
| claude-haiku-5-5 | Anthropic | $0.00015 | $0.1500 |
| gpt-4.1 | OpenAI | $0.00240 | $2.40 |
| gemini-2.5-pro | $0.00300 | $3.00 | |
| grok-4.7 | xAI | $0.00180 | $1.80 |
| gpt-5.6-terra | OpenAI | $0.00360 | $3.60 |
| claude-sonnet-5-5 | Anthropic | $0.00300 | $3.00 |
| claude-opus-5-5 | Anthropic | $0.00600 | $6.00 |
| gpt-6-astra | OpenAI | $0.0150 | $15.00 |
How it works
What a token is
Models read text in tokens: pieces of words. In English, a token is about four characters or three quarters of a word, but code, numbers and other languages split differently, which is why counting beats guessing.
How the count works
OpenAI models use the o200k_base tokenizer (older GPT-4 and GPT-3.5 models use cl100k_base). This page runs that tokenizer in your browser. For Claude, Gemini, Mistral and Grok it gives a close estimate, because each of those vendors uses its own tokenizer.
How the cost works
Cost = input tokens × the model's input price + output tokens × its output price, using current list prices per million tokens. The reply length is your estimate; set it to what your app usually gets back.
Want these numbers enforced instead of estimated? Put a hard dollar ceiling on your API keys · or see all free tools.