LLM Cost Calculator
Compare API costs across current OpenAI, Anthropic and Google models. Estimate cost per request, per agent task and per user, and find the most cost-effective model for your use case. Prices checked 1 October 2026.
- Free AI Cost Estimation Tool
- 10 models compared
- Up to 12-month projection
Configure Your LLM Usage
Model Selection
Standard API prices per 1M tokens, checked 1 October 2026: OpenAI, Anthropic, Google.
Usage Estimates
= 2,200 requests/month
Agents & Users
Use 1 for a single chatbot reply. An agent that plans, calls tools and writes an answer often makes 3 to 10 model calls per task.
Application Details
Scaling & Projections
Your Results Are Ready!
Enter your details below to view your complete analysis.
Understanding LLM Costs
Token Volume
Model Selection
Growth & Scale
Agent Steps
Cost = (Tokens / 1M) × Rate × Requests
Input and output tokens are priced separately, and output tokens typically cost 4 to 8 times more. For agents, multiply by the number of model calls each task makes.
Beyond the Numbers
Understanding token costs is critical for budgeting, but building a production-grade LLM application involves architecture, fine-tuning, and deployment decisions that go beyond pricing. Perimattic's AI development services help teams ship AI products that balance cost, latency, and accuracy.
Frequently asked questions
How much does an LLM API call cost in 2026?
It depends on the model. As of 1 October 2026, GPT-6.1 Sol and Claude Sonnet 5.5 cost $2 per million input tokens and $10 per million output tokens, so a request with 1,000 input and 500 output tokens costs about $0.007. Small models are much cheaper: GPT-6 Luna is $0.10 and $0.50 per million tokens, about $0.00035 for the same request. Top-tier models such as GPT-6 Astra and Claude Fable 5.1 cost $10 and $50. Multiply by your monthly request volume, and by the number of model calls per task if you run agents.
How can I reduce LLM API costs?
There are several proven strategies to reduce LLM API costs. First, enable prompt caching where supported; cached input tokens are billed at a small fraction of the normal rate, which cuts input costs substantially for repeated prefixes such as system prompts. Second, use batch APIs for non-real-time workloads to get roughly 50% discounts. Third, choose the right model for each task: use small models such as GPT-6 Luna, Claude Haiku 4.5 or Gemini 3.5 Flash-Lite for simple tasks and reserve larger models for complex reasoning. Fourth, optimize your prompts to reduce token usage by being concise and removing unnecessary context. Finally, implement response caching at the application level to avoid redundant API calls.
What is token pricing and how are tokens counted?
Tokens are the fundamental units LLMs use to process text. Roughly, one token equals about 4 characters or 0.75 words in English. LLM providers charge separately for input tokens (your prompt) and output tokens (the model response), with output tokens typically costing 4 to 8 times more than input tokens. For example, if you send a 500-word prompt (~670 tokens) and receive a 200-word response (~270 tokens), you pay for 670 input tokens plus 270 output tokens at the respective rates for your chosen model.
How do I work out LLM cost per agent and per user?
For an agent, find the cost of one model call (input tokens times the input rate plus output tokens times the output rate) and multiply it by the number of model calls the agent makes per task. For cost per user, divide the monthly total by the number of active users. In production, the reliable way to get both is to record token usage on every call with a user and agent identifier, which is what LLM observability tools do.
How do self-hosted LLM costs compare to API costs?
Self-hosted open-weight models have no per-token API fees, but you pay for GPU capacity, engineering time for deployment and scaling, and on-call support. Self-hosting usually only pays off at sustained high volume or when data must stay on your own infrastructure. Compare a realistic monthly GPU and staffing cost against the API totals this calculator shows before deciding.
How do I estimate LLM costs for a new project?
Start by estimating three variables: average tokens per request (input + output), requests per day, and your growth rate. For a chatbot, typical requests use 500-2,000 input tokens and 200-1,000 output tokens. For content generation, expect 500-1,500 input and 1,000-4,000 output tokens. Multiply tokens per request by daily volume and your model pricing to get daily cost, then scale to monthly. Add a 20 to 30% buffer for prompt iterations and unexpected spikes. Use this calculator to compare models side by side; you may find that a cheaper model handles most requests well, with a larger model reserved for complex cases.
Related Tools
LLM Observability Cost Calculator
Compare what Langfuse, LangSmith and Datadog would cost for your trace volume, seats and retention.
Try it free CalculatorAI ROI Calculator
Calculate your AI investment return with detailed 3-year projections, sensitivity analysis, and payback period.
Try it free AssessmentAI Readiness Assessment
Evaluate your organization's readiness for AI adoption across data, infrastructure, talent, and strategy dimensions.
Try it free CalculatorSoftware Dev Cost Calculator
Calculate custom software development costs based on project scope, team size, and methodology.
Try it freeTrack LLM cost per model, agent and user
This calculator estimates spend before you build. Perimattic AI Suite measures it in production: token cost per model, agent, feature and user, with budget alerts. Comparing observability tools as well? Try the LLM observability cost calculator.
Or email sales@perimattic.com