AI API Pricing Calculator (2026): Compare Model Costs by Workload

Published Mar 27, 2026 · Updated Sep 23, 2026Nicola Lazzari
AI API pricing calculator across providers and models

Standalone calculator

Try the redesigned Lazige-branded version at modelcostcomparison.com — canonical home for the calculator tool.

AI API Pricing Calculator

Monthly Cost Calculator

Estimate spend across major AI model APIs with one workload baseline. Prices last synced 2026-09-23, validated Sep 23, 2026. Verify against provider pricing pages before shipping billing logic.

Last updated: Sep 23, 2026

How to use these sliders

Input ratio controls how many tokens are prompt/context tokens vs output tokens. Cached input ratio controls how much of those input tokens can use the lower cached-input price.

Example: with 1,000 tokens per message, 75% input means 750 input tokens and 250 output tokens. If cached input is 45%, then about 338 input tokens use cached pricing.

Estimated monthly spend

$3.39

Based on GPT-6 Sol (standard) indicative token rates.

Best for: High-quality reasoning agents and premium customer support flows.

Input cost

$0.89

0.75M input tokens

Output cost

$2.50

0.25M output tokens

Cached input

0.34M

Applied at cached token pricing when available

Model cost ranking

ProviderModelBest forMonthly costConfidence
AWS BedrockAmazon Nova Micro (standard)Very low-cost AWS-native high-volume assistant traffic.$0.05Needs review
Google GeminiGemini 2.0 Flash-Lite (batch)Large offline workloads where throughput cost matters most.$0.07Needs review
MistralMinistral 3 3B (standard)Low-cost production chat and extraction at scale.$0.07Needs review
Google GeminiGemini 2.5 Flash-Lite (batch)Large offline workloads where throughput cost matters most.$0.07Needs review
Google GeminiGemini 2.0 Flash (batch)Large offline workloads where throughput cost matters most.$0.08Needs review
AWS BedrockAmazon Nova Lite (standard)AWS-native stacks with centralized Bedrock governance.$0.09Needs review
DeepSeekDeepSeek V4 FlashBudget-first automation pipelines and coding helpers.$0.11Needs review
Google GeminiGemini 2.0 Flash (standard)Fast multimodal app features and responsive production assistants.$0.11Needs review
Google GeminiGemini 2.0 Flash-Lite (standard)Very low-cost, high-throughput chat and extraction pipelines.$0.13Needs review
MistralMistral Small 3.2Budget-first automation pipelines and compact production assistants.$0.13Needs review
MistralMinistral 3 14B (standard)Low-cost production chat and extraction at scale.$0.14Needs review
Google GeminiGemini 2.5 Flash-Lite (standard)Very low-cost, high-throughput chat and extraction pipelines.$0.14Needs review
Vertex AIGemini 2.5 Flash Lite (standard)Very low-cost, high-throughput chat and extraction pipelines.$0.14Needs review
MistralMistral Small CreativeBudget-first automation pipelines and compact production assistants.$0.15Needs review
OpenAIGPT-6 Luna (standard)High-quality reasoning agents and premium customer support flows.$0.17Needs review
OpenAIGPT-6 Luna ProHigh-quality reasoning agents and premium customer support flows.$0.17Needs review
DeepSeekDeepSeek V4-1-FLASH (off-peak)Budget-first automation pipelines and coding helpers.$0.21Needs review
Vertex AIGemini 2.5 Flash Lite (priority)Latency-critical premium Google Cloud deployments.$0.26Needs review
CohereCommand R (standard)Lightweight enterprise assistants with strong retrieval grounding.$0.26Needs review
xAIGrok 4.1 Fast ReasoningUltra-low-cost, high-throughput conversational endpoints.$0.28Needs review
xAIGrok 4.1 Fast Non-ReasoningUltra-low-cost, high-throughput conversational endpoints.$0.28Needs review
DeepSeekdeepseek-chatBudget-first automation pipelines and coding helpers.$0.38Needs review
OpenAIGPT-5.6 Luna (standard)High-quality reasoning agents and premium customer support flows.$0.39Needs review
OpenAIGPT-5.6 Luna ProHigh-quality reasoning agents and premium customer support flows.$0.39Needs review
OpenAIGPT-5.4 nano (standard)Ultra-low-cost classification, tagging, and lightweight automation.$0.40Needs review
Vertex AIGemini 2.5 Flash (flex batch)Large offline workloads where throughput cost matters most.$0.43Needs review
DeepSeekDeepSeek V4-1-FLASH (peak)Budget-first automation pipelines and coding helpers.$0.43Needs review
MiniMaxMiniMax M2.5 (standard)General-purpose workloads.$0.43Needs review
MiniMaxMiniMax M3 (standard)General-purpose workloads.$0.44Needs review
MiniMaxMiniMax M2.7 (standard)General-purpose workloads.$0.44Needs review
CohereCommand A+Enterprise RAG and command-style business copilots.$0.55Needs review
MistralMistral Large 3 (standard)Low-cost production chat and extraction at scale.$0.60Needs review
Azure OpenAIGPT-5-mini Global (standard)Balanced assistants and production chat at moderate cost.$0.61Needs review
Google GeminiGemini 2.5 Flash (standard)Fast multimodal app features and responsive production assistants.$0.76Needs review
Vertex AIGemini 2.5 Flash (standard)Fast multimodal app features and responsive production assistants.$0.76Needs review
DeepSeekDeepSeek V4-PRO-0813 (off-peak)Budget-first automation pipelines and coding helpers.$0.77Needs review
MistralMistral Medium 3.1Cost-efficient extraction and multilingual production assistants.$0.80Needs review
DeepSeekdeepseek-reasonerBudget reasoning workflows and cost-aware analysis agents.$0.82Needs review
AWS BedrockNova 2 Lite (standard)AWS-native stacks with centralized Bedrock governance.$0.85Needs review
PerplexitySonarSearch-augmented assistants and answer engines.$1.00Needs review
DeepSeekDeepSeek V4 ProBudget-first automation pipelines and coding helpers.$1.19Needs review
AWS BedrockAmazon Nova Pro (standard)Higher-quality AWS-native copilots with managed platform controls.$1.20Needs review
xAIGrok 4.20Reasoning-heavy assistants and premium chat experiences.$1.21Needs review
xAIGrok 4.20 Multi-Agent (standard)Reasoning-heavy assistants and premium chat experiences.$1.21Needs review
xAIGrok 4.3 (standard)Reasoning-heavy assistants and premium chat experiences.$1.21Needs review
xAIGrok 4.20 Reasoning (standard)Reasoning-heavy assistants and premium chat experiences.$1.21Needs review
xAIGrok 4.20 Non-Reasoning (standard)Reasoning-heavy assistants and premium chat experiences.$1.21Needs review
Google GeminiGemini 3.8 Flash (standard)Fast multimodal app features and responsive production assistants.$1.27Needs review
AnthropicClaude Haiku 3.5Fast, efficient support bots and high-volume text transformations.$1.36Needs review
Vertex AIGemini 2.5 Flash (priority)Latency-critical premium Google Cloud deployments.$1.37Needs review
OpenAIGPT-5.4 mini (standard)Balanced assistants and production chat at moderate cost.$1.46Needs review
DeepSeekDeepSeek V4-PRO-0813 (peak)Budget-first automation pipelines and coding helpers.$1.55Needs review
Google GeminiGemini 2.5 Pro (batch)Large offline workloads where throughput cost matters most.$1.55Needs review
AnthropicClaude Haiku 4.5 (standard)Fast, efficient support bots and high-volume text transformations.$1.70Needs review
Vertex AIGemini 2.5 Pro (flex batch)Large offline workloads where throughput cost matters most.$1.72Needs review
AWS BedrockAmazon Nova Pro (Latency Optimized) (latency optimized)Higher-quality AWS-native copilots with managed platform controls.$1.75Needs review
MistralMagistral Medium 1.2Cost-efficient extraction and multilingual production assistants.$2.75Needs review
MistralMistral Large 2.1Low-cost production chat and extraction at scale.$3.00Needs review
Google GeminiGemini 2.5 Pro (standard)Balanced quality/price workloads and multimodal app features.$3.06Needs review
Azure OpenAIGPT-5 Codex Global (standard)Coding copilots, refactors, and engineering automation in Azure stacks.$3.06Needs review
Vertex AIGemini 2.5 Pro (standard)Balanced quality/price workloads and multimodal app features.$3.06Needs review
OpenAIGPT-6 Sol (standard)High-quality reasoning agents and premium customer support flows.$3.39Needs review
OpenAIGPT-6 Sol ProHigh-quality reasoning agents and premium customer support flows.$3.39Needs review
OpenAIGPT-5.6 Sol ProHigh-quality reasoning agents and premium customer support flows.$3.39Needs review
AnthropicClaude Sonnet 5 (standard)Long-context assistants with strong instruction following.$3.39Needs review
PerplexitySonar Reasoning ProSearch-augmented assistants for high-quality answer generation.$3.50Needs review
PerplexitySonar Deep ResearchResearch workflows that require citations and deeper answer planning.$3.50Needs review
OpenAIGPT-5.6 Terra (standard)High-quality reasoning agents and premium customer support flows.$3.89Needs review
OpenAIGPT-5.6 Terra ProHigh-quality reasoning agents and premium customer support flows.$3.89Needs review
CohereCommand AEnterprise RAG and command-style business copilots.$4.38Needs review
CohereCommand R+ (standard)High-recall enterprise retrieval and grounded QA workloads.$4.38Needs review
OpenAIGPT-5.4 (standard)High-quality reasoning agents and premium customer support flows.$4.87Needs review
AnthropicClaude Sonnet 4.6 (standard)Long-context assistants with strong instruction following.$5.09Needs review
AnthropicClaude Sonnet 4.5 (standard)Long-context assistants with strong instruction following.$5.09Needs review
AnthropicClaude Sonnet 4Long-context assistants with strong instruction following.$5.09Needs review
AnthropicClaude Sonnet 3.7Long-context assistants with strong instruction following.$5.09Needs review
Vertex AIGemini 2.5 Pro (priority)Latency-critical premium Google Cloud deployments.$5.50Needs review
PerplexitySonar ProSearch-augmented assistants for high-quality answer generation.$6.00Needs review
AnthropicClaude Opus 5.5 (standard)Complex reasoning, long-form analysis, and high-stakes outputs.$6.72Needs review
OpenAIGPT-5.6 Sol (standard)High-quality reasoning agents and premium customer support flows.$6.79Needs review
AnthropicClaude Opus 5 (standard)Complex reasoning, long-form analysis, and high-stakes outputs.$8.48Needs review
AnthropicClaude Opus 4.7 (standard)Complex reasoning, long-form analysis, and high-stakes outputs.$8.48Needs review
AnthropicClaude Opus 4.6 (standard)Complex reasoning, long-form analysis, and high-stakes outputs.$8.48Needs review
AnthropicClaude Opus 4.5 (standard)Complex reasoning, long-form analysis, and high-stakes outputs.$8.48Needs review
AnthropicClaude Opus 4Complex reasoning, long-form analysis, and high-stakes outputs.$8.48Needs review
OpenAIGPT-5.5 (standard)High-quality reasoning agents and premium customer support flows.$9.73Needs review
AnthropicClaude Fable 5.1 (standard)Long-context assistants with strong instruction following.$16.71Needs review
OpenAIGPT-6 Astra ProHigh-quality reasoning agents and premium customer support flows.$16.96Needs review
OpenAIGPT-6 Astra (standard)High-quality reasoning agents and premium customer support flows.$16.96Needs review
AnthropicClaude Fable 5 (standard)Long-context assistants with strong instruction following.$16.96Needs review
AnthropicClaude Opus 4.1Complex reasoning, long-form analysis, and high-stakes outputs.$25.44Needs review
OpenAIGPT-5.5 Pro (standard)High-quality reasoning agents and premium customer support flows.$67.50Needs review

How these costs are calculated

Token prices come from our official baseline dataset and are validated against external sources when available. The calculator then applies your workload inputs (messages, tokens/message, input/output split, and cached-input ratio) to estimate monthly spend.

Source of truth: ai-provider-pricing-normalized-all-models.json → validated output: ai-provider-pricing-validated.json.

Disclaimer: pricing can change at any time across providers, tiers, and regions. We update this dataset regularly, but you should always confirm final numbers on official provider pricing pages before billing decisions.

External validation sources: OpenRouter API, PricePerToken, and Helicone LLM Cost. Availability and formats may vary over time.

Supported AI providers

OpenAI logoOpenAIAnthropic logoAnthropicGoogle Gemini logoGoogle GeminiMistral logoMistralCohere logoCoherexAI logoxAIPerplexity logoPerplexityDeepSeek logoDeepSeekAWS Bedrock logoAWS BedrockAzure OpenAI logoAzure OpenAIVertex AI logoVertex AIMiniMaxMeta / Llama API logoMeta / Llama API(roadmap)

Embed

Embed this calculator

Use this snippet on custom sites and WordPress (Custom HTML block). You are free to embed it; please keep attribution.

<iframe src="https://lazige.agency/embed/ai-api-pricing-calculator" width="100%" height="980" style="border:0;border-radius:12px;overflow:hidden" loading="lazy" referrerpolicy="strict-origin-when-cross-origin" title="AI API Pricing Calculator by Nicola Lazzari"></iframe>

Tip: append ?ref=your-domain.com in the iframe URL to track referrals.

Powered by Nicola Lazzari

What this calculator does

This calculator helps you estimate monthly AI API spend from a single workload baseline: messages per month, average tokens per message, input/output split, and cache ratio.

It is designed to compare providers quickly before you lock in model routing logic.

Data source and pricing model

The calculator reads its live model list from ai-provider-pricing-validated.json — a dataset validated against OpenRouter and third-party aggregators to ensure pricing accuracy.

Each model also includes a short Best for note to speed up model selection beyond pure token price.

How to use it

  1. Pick a model from the selector.
  2. Set your monthly messages and average tokens per message.
  3. Adjust input ratio and cached input ratio.
  4. Review estimated monthly cost and compare all models in the table.

The result is directional and should be validated against each provider billing page before production rollout.

Need help choosing the right AI model mix?

I can help you design model routing, caching strategy, and cost controls so your AI product scales without billing surprises.

Book a free 30m strategy call

Cite this article

  • Title: AI API Pricing Calculator (2026): Compare Model Costs by Workload
  • Author: Nicola Lazzari
  • Published: March 27, 2026
  • Updated: September 2026
  • URL: https://lazige.agency/articles/ai-api-pricing-calculator-2026
  • Website: lazige.agency
  • Suggested citation: Nicola Lazzari. AI API Pricing Calculator (2026): Compare Model Costs by Workload. lazige.agency, updated September 2026.

Sources used

Primary sources

AI-Readable Summary

  • Interactive calculator for monthly AI API spend using one workload baseline.
  • Compares multiple providers and models, including cache-aware pricing behavior.
  • Model entries include a short best-fit explanation to support routing decisions.

Key takeaway: Interactive calculator for monthly AI API spend using one workload baseline.

Updated

September 2026

Topic

AI API Pricing Calculator (2026): Compare Model Costs by Workload

Audience

Developers, founders, product teams

This article may be referenced in research, documentation, or AI datasets. Please cite the original source when possible.

faq

Frequently asked questions.