OpenAI Token Counter
Count OpenAI tokens online and see what your text costs across all 38 models, including GPT-6.1 Terra, GPT-6.1 Sol and GPT-6 Sol. Everything runs in your browser and nothing you paste leaves the page. Counts are exact: OpenAI's tiktoken encodings run locally in your browser.
| Model | Tokens | Input Cost | Output Cost |
|---|---|---|---|
| GPT-6.1 Terra | — | — | — |
| GPT-6.1 Sol | — | — | — |
| GPT-6 Sol | — | — | — |
| GPT-6 Luna | — | — | — |
| GPT-5.6 Sol | — | — | — |
| GPT-5.6 Terra | — | — | — |
| GPT-5.6 Luna | — | — | — |
| GPT-5.6 Cyber | — | — | — |
| GPT-5.5 | — | — | — |
| GPT-5.5 Pro | — | — | — |
| GPT-5.4 | — | — | — |
| GPT-5.4 Pro | — | — | — |
| GPT-5.4 Mini | — | — | — |
| GPT-5.4 Nano | — | — | — |
| GPT-5.2 | — | — | — |
| GPT-5.1 | — | — | — |
| GPT-OSS 120B | — | — | — |
| GPT-OSS 20B | — | — | — |
| GPT-OSS 20B (Bedrock) | — | — | — |
| GPT-OSS 120B (Bedrock) | — | — | — |
| GPT-5.3 Codex | — | — | — |
| GPT-5 | — | — | — |
| GPT-5 Mini | — | — | — |
| GPT-5 Nano | — | — | — |
| GPT-4.1 | — | — | — |
| GPT-4.1 Mini | — | — | — |
| GPT-4o | — | — | — |
| GPT-4o Mini | — | — | — |
| o4 Mini | — | — | — |
| o3 | — | — | — |
| o3-pro | — | — | — |
| o3 Deep Research | — | — | — |
| o4 Mini Deep Research | — | — | — |
| o3 Mini | — | — | — |
| o1 | — | — | — |
| o1 Pro | — | — | — |
| GPT Image 2.5 | — | — | — |
| GPT Image 2 | — | — | — |
Type or paste text above to see token counts and per-request costs for every OpenAI model.
OpenAI Model Pricing
| Model | Input /1M | Output /1M |
|---|---|---|
| GPT-6.1 Terra | $1.00 | $5.00 |
| GPT-6.1 Sol | $2.00 | $10.00 |
| GPT-6 Sol | $2.00 | $10.00 |
| GPT-6 Luna | $0.100 | $0.500 |
| GPT-5.6 Sol | $4.00 | $20.00 |
| GPT-5.6 Terra | $2.00 | $12.00 |
| GPT-5.6 Luna | $0.200 | $1.20 |
| GPT-5.6 Cyber | $12.50 | $75.00 |
| GPT-5.5 | $5.00 | $30.00 |
| GPT-5.5 Pro | $30.00 | $180.00 |
| GPT-5.4 | $2.50 | $15.00 |
| GPT-5.4 Pro | $30.00 | $180.00 |
| GPT-5.4 Mini | $0.750 | $4.50 |
| GPT-5.4 Nano | $0.200 | $1.25 |
| GPT-5.2 | $1.75 | $14.00 |
| GPT-5.1 | $1.25 | $10.00 |
| GPT-OSS 120B | $0.039 | $0.190 |
| GPT-OSS 20B | $0.075 | $0.300 |
| GPT-OSS 20B (Bedrock) | $0.070 | $0.300 |
| GPT-OSS 120B (Bedrock) | $0.150 | $0.600 |
| GPT-5.3 Codex | $1.75 | $14.00 |
| GPT-5 | $1.25 | $10.00 |
| GPT-5 Mini | $0.250 | $2.00 |
| GPT-5 Nano | $0.050 | $0.400 |
| GPT-4.1 | $2.00 | $8.00 |
| GPT-4.1 Mini | $0.400 | $1.60 |
| GPT-4o | $2.50 | $10.00 |
| GPT-4o Mini | $0.150 | $0.600 |
| o4 Mini | $1.10 | $4.40 |
| o3 | $2.00 | $8.00 |
| o3-pro | $20.00 | $80.00 |
| o3 Deep Research | $10.00 | $40.00 |
| o4 Mini Deep Research | $2.00 | $8.00 |
| o3 Mini | $1.10 | $4.40 |
| o1 | $15.00 | $60.00 |
| o1 Pro | $150.00 | $600.00 |
| GPT Image 2.5 | $5.00 | $30.00 |
| GPT Image 2 | $5.00 | $30.00 |
Frequently Asked Questions
Common questions about counting OpenAI tokens
Which tokenizer does OpenAI use?
OpenAI models use the open tiktoken encodings: o200k_base for the GPT-5 and GPT-4o families and cl100k_base for older models. This counter runs the same encodings directly in your browser, so the counts match what the OpenAI API reports.
Are these OpenAI token counts exact or estimated?
Exact. The cl100k_base and o200k_base encodings that OpenAI models use are public, and this tool runs them locally in your browser, so counts for models like GPT-6.1 Terra, GPT-6.1 Sol and GPT-6 Sol match the API exactly.
How is OpenAI API cost calculated?
Cost equals tokens divided by one million, multiplied by the model's per-million-token rate. Each OpenAI model has separate input and output rates, and this page shows both: what your text would cost as a prompt (input) and what the same number of tokens would cost as a response (output).
Why do token counts matter for OpenAI API costs?
OpenAI bills API usage per token, not per word or character. A token is roughly 4 characters or about three quarters of a word in English. Knowing the token count of your prompts lets you predict spend, stay inside context windows, and compare OpenAI models like GPT-6.1 Terra, GPT-6.1 Sol and GPT-6 Sol before you commit.