LLM Pricing Calculator
Compare and estimate costs for the world's leading Large Language Models. Whether you're building an AI-powered app or just curious about token costs, this tool helps you calculate expenses across OpenAI, Anthropic, Google, Mistral, and more.
How it works
Most AI providers charge per 1 million tokens. A "token" is roughly 4 characters or 0.75 words in English. This calculator uses the latest official pricing to give you a precise breakdown of:
- Input Costs: The price for the prompt you send to the model.
- Output Costs: The price for the text the model generates.
- Caching: Savings applied when using context caching (supported by models like GPT-4o and Gemini).
Why compare LLM prices?
The price difference between "Frontier" models (like Claude 3.5 Opus) and "Flash" models (like Gemini 1.5 Flash) can be over 100x. Choosing the right model for your specific task can save you thousands of dollars in API credits as you scale.