AI Token Counter & Cost Calculator

Estimate token counts and API costs for popular AI models.

0
Characters
0
Words
0
Tokens
0
Lines
Cost Estimate (Estimated Tokens: 0)
ModelInput Rate (per 1M)Output Rate (per 1M)Input CostOutput Cost
GPT-5.2$1.75$14.00$0.000000$0.000000
GPT-5$1.25$10.00$0.000000$0.000000
GPT-5 Nano$0.05$0.40$0.000000$0.000000
GPT-4o$2.50$10.00$0.000000$0.000000
GPT-4o-mini$0.15$0.60$0.000000$0.000000
o1$15.00$60.00$0.000000$0.000000
o1-mini$3.00$12.00$0.000000$0.000000
Claude Opus 4.6$5.00$25.00$0.000000$0.000000
Claude Sonnet 4.6$3.00$15.00$0.000000$0.000000
Claude Sonnet 4.5$3.00$15.00$0.000000$0.000000
Claude Sonnet 3.5$3.00$15.00$0.000000$0.000000
Claude Haiku 4.5$1.00$5.00$0.000000$0.000000
Gemini 3.1 Pro$2.00$12.00$0.000000$0.000000
Gemini 3 Flash$0.50$3.00$0.000000$0.000000
Gemini 2.5 Pro$1.25$10.00$0.000000$0.000000
DeepSeek V3$0.14$0.28$0.000000$0.000000

Token counts are estimates. Actual token counts depend on the model's tokenizer.

How to Use

Paste or type your text into the input area. The tool instantly counts characters, words, lines, and estimated tokens, then displays API cost estimates for 16 popular AI models including:

The table shows each model's standard rate (per 1M tokens) alongside the actual cost calculated from your input text. Use this tool to estimate costs before making API calls and choose the best model for your needs.

Pricing Data Sources

All model pricing is sourced from official API documentation (updated February 2026):

FAQ

Related Tools