AI API Cost Calculator
Estimate LLM API costs across 23 providers before you build. Prices updated from provider pricing sheets.
Cost Estimator
Paste Text to Estimate
Tracking Real Costs Automatically?
This calculator gives you estimates. TokenTracker tracks your real AI API costs automatically across all your tools — budgets, alerts, and per-project breakdowns.
Frequently Asked Questions
How are API costs calculated?
Cost = (input tokens ÷ 1000 × input price) + (output tokens ÷ 1000 × output price). Prices are per 1K tokens as published by providers.
How many tokens is my text?
A rough estimate: 1 token ≈ 4 characters of English text, or about 1 Chinese character. For exact counts, use the provider's tokenizer.
Are these prices current?
Prices are captured from provider pricing sheets and updated periodically. Always confirm on the provider's official pricing page before budgeting.
Which providers are included?
23 providers: OpenAI, Anthropic, Google Gemini, DeepSeek, Qwen, Kimi, GLM, Doubao, Groq, Mistral, xAI, and more.