Skip to main content
// FREE TOOL · COMPARE AI API COSTS

CostForge

AI API Cost Calculator

Compare Claude vs GPT vs Gemini API costs side-by-side. Estimate daily and monthly spend with browser-side calculations and no account requirement.

⚡ DIRECT EXECUTIVE SUMMARY (AI OVERVIEW CITATION BLOCK)

CostForge is a free interactive LLM API token cost calculator and FinOps estimator. Compare per-request, daily, and monthly API spend across 30 frontier models from 7 providers (Anthropic Claude Sonnet 5.5 & Opus 5.5, OpenAI Sol 6.1 & GPT-6 Astra, Google Gemini 3.8 Flash & 3.5 Pro, DeepSeek V4 Pro, Moonshot Kimi K3, xAI Grok 4.7, and Mistral Medium 3.5), including 90% prompt caching and 50% batch API discounts.

Use Case Presets
100100K
5032K
1100K
Sort by:
💰 Cheapest
Amazon Nova Micro
$4.20/mo
🔥 Most Expensive
o3-pro
$2,400/mo
📊 Potential Savings
100%
by picking the right model
📈 Total Tokens/Day
2.5M
across 1,000 requests
ModelInput $/1MOutput $/1MPer RequestDaily CostMonthly Cost
☁️
Amazon Nova Micro
AWS Bedrock · 128K ctx
$0.035
$0.14
$0.0001
$0.140
$4.20
LOWEST COST
🦙
Llama 4 Scout
Meta · 10M ctx
$0.1
$0.3
$0.0003
$0.350
$10.50
💚
GPT-4.1 Nano
OpenAI · 1M ctx
$0.1
$0.4
$0.0004
$0.400
$12.00
🔵
Gemini 3.8 Flash-Lite
Google · 1M ctx
$0.1
$0.4
$0.0004
$0.400
$12.00
⚡
Claude Haiku 5.5
Anthropic · 1M ctx
$0.1
$0.5
$0.0004
$0.450
$13.50
🌙
GPT-6 Luna
OpenAI · 1.05M ctx
$0.1
$0.5
$0.0004
$0.450
$13.50
△
Mistral Small 4
Mistral · 256K ctx
$0.15
$0.6
$0.0006
$0.600
$18.00
🦙
Llama 4 Maverick
Meta · 1M ctx
$0.18
$0.6
$0.0007
$0.660
$19.80
🌐
Qwen3-235B-A22B
Alibaba Qwen · 128K ctx
$0.2
$0.6
$0.0007
$0.700
$21.00
⬡
DeepSeek V3.2 / R1
DeepSeek · 128K ctx
$0.27
$1.1
$0.0011
$1.09
$32.70
⬡
DeepSeek V4.1-Flash
DeepSeek · 1M ctx
$0.3
$1.2
$0.0012
$1.20
$36.00
🔵
Gemini 3.1 Flash-Lite
Google · 1M ctx
$0.25
$1.5
$0.0013
$1.25
$37.50
🟩
GPT-4.1 Mini
OpenAI · 1M ctx
$0.4
$1.6
$0.0016
$1.60
$48.00
△
Mistral Large 3
Mistral · 256K ctx
$0.5
$1.5
$0.0018
$1.75
$52.50
🔵
Gemini 3.5 Flash-Lite
Google · 1M ctx
$0.3
$2.5
$0.0019
$1.85
$55.50
☁️
Amazon Nova 2 Lite
AWS Bedrock · 1M ctx
$0.3
$2.5
$0.0019
$1.85
$55.50
△
Mistral Large 4
Mistral · 1M ctx
$0.68
$2.09
$0.0024
$2.40
$72.15
☁️
Amazon Nova Pro
AWS Bedrock · 300K ctx
$0.8
$3.2
$0.0032
$3.20
$96.00
⚡
Gemini 3.8 Flash
Google · 1M ctx
$0.75
$3.75
$0.0034
$3.38
$101
⚡
Gemini 3.6 Flash
Google · 1M ctx
$0.75
$3.75
$0.0034
$3.38
$101
⚡
o4-mini
OpenAI · 200K ctx
$1.1
$4.4
$0.0044
$4.40
$132
🟤
Claude Haiku 4.5
Anthropic · 200K ctx
$1
$5
$0.0045
$4.50
$135
🌍
GPT-6.1 Terra
OpenAI · 1.05M ctx
$1
$5
$0.0045
$4.50
$135
⬡
DeepSeek V4-Pro
DeepSeek · 1M ctx
$1.32
$3.96
$0.0046
$4.62
$139
🌙
GPT-5.6 Luna
OpenAI · 1.05M ctx
$1
$6
$0.0050
$5.00
$150
💎
Gemini 3.5 Pro
Google · 2M ctx
$1.25
$5
$0.0050
$5.00
$150
△
Mistral Medium 3.5
Mistral · 256K ctx
$1.5
$7.5
$0.0067
$6.75
$203
✕
Grok 4.7
xAI · 500K ctx
$2
$6
$0.0070
$7.00
$210
🤖
Grok 4.5
xAI · 500K ctx
$2
$6
$0.0070
$7.00
$210
🌐
Qwen3.8-Max
Alibaba Qwen · 1M ctx
$2
$6
$0.0070
$7.00
$210
🔹
Gemini 2.5 Pro
Google · 2M ctx
$1.25
$10
$0.0075
$7.50
$225
⚡
Gemini 3.5 Flash
Google · 1M ctx
$1.5
$9
$0.0075
$7.50
$225
🧠
o3
OpenAI · 200K ctx
$2
$8
$0.0080
$8.00
$240
🟢
GPT-4.1
OpenAI · 1M ctx
$2
$8
$0.0080
$8.00
$240
⚡
GPT-5.4
OpenAI · 200K ctx
$2
$8
$0.0080
$8.00
$240
🟠
Claude Sonnet 5.5
Anthropic · 1M ctx
$2
$10
$0.0090
$9.00
$270
🟠
Claude Sonnet 5
Anthropic · 1M ctx
$2
$10
$0.0090
$9.00
$270
☀️
GPT-6.1 Sol
OpenAI · 1.05M ctx
$2
$10
$0.0090
$9.00
$270
💎
Gemini 4 Argon
Google · 1M ctx
$2
$10
$0.0090
$9.00
$270
🤖
OpenAI Agents API
OpenAI · 1M ctx
$2.5
$10
$0.010
$10.00
$300
💎
Gemini 3.1 Pro
Google · 2M ctx
$2
$12
$0.010
$10.00
$300
☁️
Amazon Nova Premier
AWS Bedrock · 1M ctx
$2.5
$12.5
$0.011
$11.25
$338
🌍
GPT-5.6 Terra
OpenAI · 1.05M ctx
$2.5
$15
$0.013
$12.50
$375
🟠
Claude Sonnet 4.6
Anthropic · 1M ctx
$3
$15
$0.013
$13.50
$405
🌙
Moonshot Kimi K3
Moonshot AI · 1M ctx
$3
$15
$0.013
$13.50
$405
🟡
Claude Opus 5.5
Anthropic · 1M ctx
$4
$20
$0.018
$18.00
$540
🌟
GPT-5.5
OpenAI · 1.05M ctx
$5
$20
$0.020
$20.00
$600
🟡
Claude Opus 4.8
Anthropic · 1M ctx
$5
$25
$0.022
$22.50
$675
🟣
Claude Fable 5.1
Anthropic · 1M ctx
$10
$50
$0.045
$45.00
$1,350
🟣
Claude Fable 5
Anthropic · 1M ctx
$10
$50
$0.045
$45.00
$1,350
✨
GPT-6 Astra
OpenAI · 1.05M ctx
$10
$50
$0.045
$45.00
$1,350
🧠
o3-pro
OpenAI · 200K ctx
$20
$80
$0.080
$80.00
$2,400
Toggle Models

📝 Token Estimator

0 tokens
0 chars · ~4 chars/token

💰 Prompt Caching Savings

Enable Prompt Caching above to see savings per model. Claude offers up to 90% input cost reduction on cached system prompts.

💡 Cost Optimization Tips

Use Batch API
Many providers offer up to 50% discounts for batch or async requests. Toggle 'Batch Pricing' above to compare scenarios.
Prompt Caching
Claude's prompt caching can reduce costs by 90% for repeated system prompts. Cache your system prompts and reuse them.
Right-Size Your Model
Use smaller models (Haiku, Mini, Flash) for simple tasks. Reserve flagship models for complex reasoning.
Reduce Token Usage
Compress prompts, use structured outputs (JSON mode), and limit max_tokens. Every token saved reduces cost.
Monitor & Set Budgets
Set hard spend limits in your API dashboard. Use rate limiting to prevent runaway costs during development.
Hybrid Routing
Route simple queries to cheap models and complex ones to flagship models. MCPlex Gateway supports this.

Why CostForge?

30 Models Compared

Side-by-side pricing for Claude 5.5, Sol 6.1 & GPT-6 Astra, Gemini 3.8, DeepSeek V4, Kimi K3, Grok 4.7, and Mistral — 7 providers in one view.

Live Calculations

Drag sliders or type exact numbers. Per-request, daily, and monthly costs recalculate as inputs change.

7 Use Case Presets

Pre-configured token counts for Chatbot, Code Assistant, Data Processing, RAG Pipeline, Content Generation, Summarization, and Agentic Workflows.

Batch vs Standard

Toggle between standard and batch pricing. See exactly how much you save with async/batch processing for each provider.

Visual Cost Bars

Horizontal bars make it easy to compare relative costs at a glance. The lowest-cost result is highlighted.

Optimization Tips

Expert advice on reducing API costs: prompt caching, model routing, token compression, and budget monitoring strategies.

Pricing Snapshot

Pricing data reflects published rates from Anthropic, OpenAI, Google, DeepSeek, Moonshot AI, xAI, and Mistral as of October 2026. Verify against official pricing pages before commitment.

Browser-Side Math

Calculations run in your browser session. Avoid entering sensitive credentials or proprietary payloads.

Frequently Asked Questions

Which AI models does the calculator support?

CostForge supports the latest 2026 API pricing across 30 frontier models from 7 providers: Google Gemini (Gemini 3.8 Flash, Gemini 3.6 Flash, 3.5 Pro), Anthropic Claude (Claude Sonnet 5.5, Claude Opus 5.5, Sonnet 5 permanent $2/$10 pricing, Fable 5, Opus 4.8, Haiku 4.5), OpenAI (Sol 6.1, GPT-6 Astra, OpenAI Agents API, GPT-5.6 series, GPT-4.1, o3), DeepSeek (DeepSeek V4 Pro GA, V4 Flash), Moonshot Kimi K3, xAI (Grok 4.7, Grok 4.5), and Mistral.

How is the monthly API cost calculated?

The monthly cost is calculated by multiplying your estimated daily input and output tokens by 30 days, using the exact per-million token pricing from the respective AI providers.

Are prompt caching and batch discounts included?

Yes, we factor in Anthropic 90% prompt caching discounts ($0.20/M read rate on Sonnet 5.5), Google Gemini 75% context cache savings, DeepSeek 93% MLA KV-cache savings, and 50% batch API discounts across OpenAI and Anthropic.

How much do Claude Sonnet 5.5, GPT-6 Astra / Sol 6.1, and Gemini 3.8 Flash cost per 1M tokens?

In October 2026, Claude Sonnet 5.5 costs $2.00/M input tokens ($0.20/M cached) and $10.00/M output tokens. OpenAI Sol 6.1 costs $3.50/M input ($0.35/M cached) and $14.00/M output, while GPT-6 Astra costs $10.00/M input ($2.50/M cached) and $50.00/M output. Gemini 3.8 Flash costs $0.75/M input ($0.075/M cached) and $3.75/M output. CostForge allows real-time interactive cost simulations across all 30 models.