Free tool
LLM Token Cost Calculator
How do you calculate LLM API cost?
Multiply monthly requests by input tokens and output tokens per request, divide by one million, and apply each model’s per-million price. Some providers charge less for eligible cached input tokens; availability and cache rules vary by model. This calculator applies prices from the open-source LiteLLM model price database to every model at once, so you can see the cheapest option for the same workload.
Free tool
LLM token cost calculator
Compare the monthly token cost of 11 leading models from OpenAI, Anthropic, Google, DeepSeek and Mistral. Prices come from the open-source LiteLLM pricing database, with input, output and cached tokens priced separately.
Frequently asked questions
Where do the token prices come from?
From the open-source BerriAI/litellm model price file, widely used by AI engineering teams to track provider pricing. Prices change, so confirm with the provider before budgeting.
Why are output tokens more expensive?
Providers often price generated output differently from input. The ratio varies by model, so check both rates when comparing costs.
How can I lower token cost?
Shorten prompts, filter retrieved context, cache repeated prompts and route simple requests to smaller models, checking answer quality after each change.
More free tools
- AI readiness assessment21 questions, about 5 minutes. A score across strategy, data, platform, people, governance and delivery, with the full report emailed to you.Open the tool
- Cloud cost calculatorServers, GPUs, Kubernetes, PostgreSQL, storage and egress priced on AWS, Azure and Google Cloud side by side.Open the tool
- Should we use AI for this?Nine questions about one task give a verdict — go, pilot first or not yet — and a suggested approach.Open the tool
- AI project cost estimatorIndicative cost and weeks per stage for a chatbot, RAG, agent, ML model or data platform, in USD, INR or AED.Open the tool
- AI agent ROI calculatorHours saved, running cost, 3-year net benefit and payback month, from your own volumes and costs.Open the tool
- RAG readiness checkerDescribe your documents to see the challenges to plan for, a suggested architecture and an evaluation checklist.Open the tool
- AI decision engineReadiness, build-vs-buy and cost questions to work through before you commit budget to an AI project.Open the tool