LLM API Cost Calculator

Estimate LLM API cost projections. Select models and volume parameters to calculate cost per request, day, month, and year.

Projected Expenses

Cost / Request
$0.00700
Daily Cost
$7.00
Monthly Cost
$210.00
Yearly Cost
$2555.00
Prompt (29%)Completion (71%)
$2.00 / Day$5.00 / Day

Monthly Cost Comparison Across Models

Compare what it would cost to run your configured volume of 1,000 requests/day (1,000 in / 500 out) across other models.

Meta - Llama 4 Scout (10M Context) $6.00/mo
Google - Gemini 2.0 Flash-Lite $6.75/mo
Mistral - Mistral Small 4 $7.50/mo
DeepSeek - DeepSeek V3 $8.40/mo
Google - Gemini 2.0 Flash $9.00/mo
OpenAI - GPT-6 Luna (High-Volume) $10.50/mo
Anthropic - Claude Haiku 5.5 (High Speed) $10.50/mo
OpenAI - GPT-4o mini $13.50/mo
Qwen / Alibaba - Qwen 2.5 Coder 32B $15.00/mo
Mistral - Mistral Codestral $15.00/mo
Meta - Llama 3.3 70B $16.50/mo
Meta - Llama 4 Maverick (1M Context) $18.00/mo
DeepSeek - DeepSeek V4.1 Flash $27.00/mo
Moonshot AI - Kimi k1.5 (Reasoning) $31.50/mo
DeepSeek - DeepSeek R1 $49.35/mo
Mistral - Mistral Large 4 $52.50/mo
Moonshot AI - Kimi Moonshot v1 (2M Context) $72.00/mo
Google - Gemini 3.8 Flash (Multimodal) $78.75/mo
Anthropic - Claude 3.5 Haiku $84.00/mo
Meta - Llama 3.1 405B $90.00/mo
DeepSeek - DeepSeek V4 Pro $99.00/mo
OpenAI - o3-mini $99.00/mo
Google - Gemini 1.5 Pro $112.50/mo
Alibaba Cloud - Qwen 4 Max Preview (1M Context) $144.00/mo
Qwen / Alibaba - Qwen 2.5 Max $144.00/mo
Mistral - Mistral Large 2 $150.00/mo
Google - Gemini Omni 1.2 Flash (Video/Audio) $180.00/mo
Google - Gemini 2.5 Pro $187.50/mo
OpenAI - GPT-6.1 Sol (Workhorse) (Selected)$210.00/mo
Anthropic - Claude Sonnet 5.5 (Coding Workhorse) $210.00/mo
Google - Gemini 4 Carbon (Agentic Frontier) $210.00/mo
Moonshot AI - Kimi K3.1 Pro (2.8T MoE) $210.00/mo
xAI - Grok 2 $210.00/mo
OpenAI - GPT-4o (Previous Gen) $225.00/mo
OpenAI - GPT Astra (Omni Agent) $270.00/mo
Anthropic - Claude 3.7 Sonnet (Thinking) $315.00/mo
Anthropic - Claude 3.5 Sonnet $315.00/mo
xAI - Grok 3 (Preview) $315.00/mo
Anthropic - Claude Opus 5.5 (Heavy Reasoning) $420.00/mo
OpenAI - GPT-4.5 Orion $450.00/mo
Anthropic - Claude Fable 5.2 (Flagship Thinking) $840.00/mo
OpenAI - GPT-6 Astra (Flagship) $1050.00/mo
OpenAI - o1 $1350.00/mo

Frequently Asked Questions

How do input and output token costs differ?

Inference APIs charge significantly more for output tokens than input tokens (typically 4x to 5x higher). This is because generating tokens requires maintaining the model state sequentially, which is far more GPU-compute intensive than processing inputs in parallel.

What is context caching and how does it save costs?

Providers like Google and DeepSeek offer context caching. If you reuse large static blocks of text (like system prompts or RAG context) across subsequent requests, you only pay a fraction of the cost (up to 90% cheaper) for cache-hits, drastically reducing token bills.

Why should I use a local LLM instead of APIs?

If your system processes millions of requests a day, API costs grow linearly. Self-hosting open-weight models (like Llama 3) converts variable token costs into fixed hardware amortization expenses, which becomes highly profitable at massive query volumes.

How LLM Pricing Schemes Work

Commercial LLM providers charge on a utility billing structure based on the quantity of million tokens processed (MTok). This pricing is split into two components:

  • Input Tokens: Prompt tokens sent to the API, including system instructions, context retrievals, and history.
  • Output Tokens: Completion tokens generated by the LLM response.

Factors Affecting API Cost Scales

API pricing is heavily linked to model scale. Lightweight models (e.g., GPT-6 Luna, Gemini 3.8 Flash, or historical GPT-4o mini) cost fractions of a cent per request ($0.10/MTok) and are ideal for high-frequency classification tasks. Large, highly reasoning frontier models (e.g., Claude Sonnet 5.5, Claude Fable 5.2, or GPT-6 Astra) provide the deep intelligence required for autonomous multi-step reasoning, agent execution, and complex coding assignments.

How to Reduce API and Token Costs

Developers optimize costs by:

  1. Prompt Pruning: Removing boilerplate system roles and restricting instructions.
  2. Dynamic Routing: Routing simple intents to mini models and reserving advanced reasoning for frontier models.
  3. Cache Optimization: Structuring requests to take advantage of prompt cache-hits.
  4. Output Truncation: Limiting max output tokens to prevent long conversational loops.

Internal Links