Perimattic

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
Model monitoring dashboard showing drift and performance metrics
ISO 27001 Certified
AWS Partner
Microsoft Partner
ServiceNow Partner
Calculator

Configure Your LLM Usage

Adjust the inputs below to estimate your costs

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

Projection Period

Your Results Are Ready!

Enter your details below to view your complete analysis.

Your data is secure and processed in accordance with our Privacy Policy. GDPR compliant. We never share your information with third parties.

What You Get

Understanding LLM Costs

Key factors that drive your AI API spending

Token Volume

Input and output tokens are billed separately. Longer prompts and verbose responses cost more. Optimizing prompt length is the fastest way to cut costs.

Model Selection

Top-tier models such as GPT-6 Astra or Claude Fable 5.1 cost 20 to 100 times more per token than small models such as GPT-6 Luna or Gemini 3.5 Flash-Lite. Match the model tier to the task.

Growth & Scale

LLM costs scale linearly with usage. A 10% monthly growth rate doubles your bill in about 7 months. Plan for scale with caching and model routing.

Agent Steps

An agent may call a model several times to complete one task. Cost per task is the cost per call multiplied by the number of calls, so a five-step agent costs five times a single chatbot reply.
The LLM Cost Formula

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.

Abstract visualization of a large language model
FAQ

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.

Need Expert Help?

Track 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