LLM API Pricing &
Cost Calculator

Compare API pricing and calculate real-world monthly costs for top AI models (GPT-6 Astra, Claude Opus 5.5, Gemini 3.8 Flash, DeepSeek-V4.1-Flash). Unlike basic calculators, our engine accurately simulates provider-specific Prompt Caching (Write surcharges, Read discounts, hourly storage fees) and long context tiers.

Pricing Data Updated At: 2026/09/27

Calculation Settings

Pricing Tier
▶ Detailed Settings
▶ Presets
⇅ Sort
▼
1

GPT-6 Astra

OpenAI👑
$0.2696
Total
In: $0.0976Out: $0.15
Cache Saved: $0.0804(Cost: $0.0220)
Context Window1M
Benchmark98.5
Max Out:128K
Training Cutoff:2026-04
Slow
2

Claude Fable 5.1

Anthropic👑
$0.2627
Total
In: $0.0976Out: $0.15
Cache Saved: $0.0873(Cost: $0.0151)
Context Window1M
Benchmark97.5
Max Out:128K
Training Cutoff:2026-06
Slow
3
$0.2696
Total
In: $0.0976Out: $0.15
Cache Saved: $0.0804(Cost: $0.0220)
Context Window1M
Benchmark97.5
Max Out:128K
Training Cutoff:2026-01
Slow
4

GPT-6 Sol

OpenAI👑
$0.0539
Total
In: $0.0195Out: $0.0300
Cache Saved: $0.0161(Cost: $0.0044)
Context Window1M
Benchmark97.5
Max Out:128K
Training Cutoff:2026-04
Standard
5

Claude Opus 5.5

Anthropic👑
$0.1060
Total
In: $0.0390Out: $0.0600
Cache Saved: $0.0340(Cost: $0.0070)
Context Window1M
Benchmark97.25
Max Out:128K
Training Cutoff:2026-06
Standard
6

GPT-5.6 Sol

OpenAI👑
$0.1498
Total
In: $0.0488Out: $0.09
Cache Saved: $0.0402(Cost: $0.0110)
Context Window1M
Benchmark97
Max Out:128K
Training Cutoff:2026-02
Standard
7

Claude Opus 5

Anthropic👑
$0.1348
Total
In: $0.0488Out: $0.075
Cache Saved: $0.0402(Cost: $0.0110)
Context Window1M
Benchmark96.5
Max Out:128K
Training Cutoff:2026-05
Slow
8

GPT-5.5 pro

OpenAI👑
$1.14
Total
In: $0.60Out: $0.5400
Context Window1M
Benchmark96.5
Max Out:128K
Training Cutoff:2025-12
Slow
9

GPT-5.4 pro

OpenAI👑
$1.14
Total
In: $0.60Out: $0.5400
Context Window1M
Benchmark96
Max Out:128K
Training Cutoff:2025-08
Slow
10
$0.1348
Total
In: $0.0488Out: $0.075
Cache Saved: $0.0402(Cost: $0.0110)
Context Window1M
Benchmark95
Max Out:128K
Training Cutoff:2026-01
Slow
11

grok-4.7

xAI👑
$0.0426⚠️
Total
In: $0.0195Out: $0.018
Cache Saved: $0.0154(Cost: $0.0051)
Context Window500K
Benchmark94
Max Out:-
Training Cutoff:2026-05
Fast
12

Claude Sonnet 5

Anthropic👑
$0.0539
Total
In: $0.0195Out: $0.0300
Cache Saved: $0.0161(Cost: $0.0044)
Context Window1M
Benchmark93.75
Max Out:128K
Training Cutoff:2026-01
Fast
13
$0.175
Total
In: $0.10Out: $0.075
Context Window1M
Benchmark93.5
Max Out:128K
Training Cutoff:2026-01
Slow
14
$0.076
Total
In: $0.04Out: $0.036
Context Window1M
Benchmark93.5
Max Out:65K
Training Cutoff:2025-01
Standard
15

GPT-5.6 Terra

OpenAI👑
$0.0599
Total
In: $0.0195Out: $0.036
Cache Saved: $0.0161(Cost: $0.0044)
Context Window1M
Benchmark93.5
Max Out:128K
Training Cutoff:2026-02
Fast
16

GPT-5.5

OpenAI👑
$0.1439
Total
In: $0.0488Out: $0.09
Cache Saved: $0.0461(Cost: $0.0051)
Context Window1M
Benchmark93.25
Max Out:128K
Training Cutoff:2025-12
Standard
17
$0.175
Total
In: $0.10Out: $0.075
Context Window1M
Benchmark93
Max Out:128K
Training Cutoff:2025-08
Slow
18
$0.0525
Total
In: $0.03Out: $0.0225
Context Window1M
Benchmark93
Max Out:65K
Training Cutoff:2026-03
Blazing Fast
19
$0.0525
Total
In: $0.03Out: $0.0225
Context Window1M
Benchmark92.5
Max Out:65K
Training Cutoff:2026-03
Blazing Fast
20
$0.9240
Total
In: $0.42Out: $0.5040
Context Window400K
Benchmark92.5
Max Out:128K
Training Cutoff:2025-08
Slow
21

GPT-5 pro

OpenAI
$0.6600
Total
In: $0.30Out: $0.36
Context Window400K
Benchmark92
Max Out:272K
Training Cutoff:2024-09
Slow
22
$0.0525
Total
In: $0.03Out: $0.0225
Context Window1M
Benchmark91.5
Max Out:65K
Training Cutoff:2026-03
Blazing Fast
23

grok-4.6

xAI👑
$0.0426⚠️
Total
In: $0.0195Out: $0.018
Cache Saved: $0.0154(Cost: $0.0051)
Context Window500K
Benchmark91.5
Max Out:-
Training Cutoff:2026-02
Fast
24

GPT-5.4

OpenAI👑
$0.0720
Total
In: $0.0244Out: $0.045
Cache Saved: $0.0230(Cost: $0.0026)
Context Window1M
Benchmark91.25
Max Out:128K
Training Cutoff:2025-08
Standard
25
$0.0809
Total
In: $0.0293Out: $0.045
Cache Saved: $0.0241(Cost: $0.0066)
Context Window1M
Benchmark90.75
Max Out:64K
Training Cutoff:2026-01
Fast
26

GPT-5.2

OpenAI
$0.0609
Total
In: $0.0171Out: $0.0420
Cache Saved: $0.0161(Cost: $0.0018)
Context Window400K
Benchmark90.75
Max Out:128K
Training Cutoff:2025-08
Fast
27
$0.0609
Total
In: $0.0171Out: $0.0420
Cache Saved: $0.0161(Cost: $0.0018)
Context Window128K
Benchmark90.75
Max Out:16K
Training Cutoff:2025-08
Standard
28
$0.0570
Total
In: $0.03Out: $0.0270
Context Window1M
Benchmark90.5
Max Out:65K
Training Cutoff:2025-01
Blazing Fast
29

DeepSeek-V4-Pro

DeepSeek👑
$0.0252
Total
In: $0.0129Out: $0.0119
Cache Saved: $0.0131(Cost: $0.0005)
Context Window1M
Benchmark90
Max Out:384K
Training Cutoff:-
Standard
30
$0.175
Total
In: $0.10Out: $0.075
Context Window200K
Benchmark89.5
Max Out:64K
Training Cutoff:2025-08
Slow
31

GPT-6 Luna

OpenAI👑
$0.0027
Total
In: $0.0010Out: $0.0015
Cache Saved: $0.0008(Cost: $0.0002)
Context Window1M
Benchmark89.5
Max Out:128K
Training Cutoff:2026-04
Blazing Fast
32
$0.0609
Total
In: $0.0171Out: $0.0420
Cache Saved: $0.0161(Cost: $0.0018)
Context Window128K
Benchmark88.75
Max Out:16K
Training Cutoff:2025-08
Fast
33

GPT-5

OpenAI
$0.0435
Total
In: $0.0122Out: $0.0300
Cache Saved: $0.0115(Cost: $0.0013)
Context Window400K
Benchmark88.5
Max Out:128K
Training Cutoff:2024-09
Standard
34
$0.0406⚠️
Total
In: $0.0195Out: $0.018
Cache Saved: $0.0174(Cost: $0.0031)
Context Window500K
Benchmark88.5
Max Out:-
Training Cutoff:-
Standard
35

GPT-5.6 Luna

OpenAI👑
$0.0060
Total
In: $0.0020Out: $0.0036
Cache Saved: $0.0016(Cost: $0.0004)
Context Window1M
Benchmark88
Max Out:128K
Training Cutoff:2026-02
Blazing Fast
36

GPT-5.1

OpenAI
$0.0435
Total
In: $0.0122Out: $0.0300
Cache Saved: $0.0115(Cost: $0.0013)
Context Window400K
Benchmark87.75
Max Out:128K
Training Cutoff:2024-09
Standard
37

GPT-5.4 mini

OpenAI👑
$0.0216
Total
In: $0.0073Out: $0.0135
Cache Saved: $0.0069(Cost: $0.0008)
Context Window400K
Benchmark87.5
Max Out:128K
Training Cutoff:2025-08
Fast
38
$0.0066
Total
In: $0.0029Out: $0.0036
Cache Saved: $0.0030(Cost: $0.00)
Context Window1M
Benchmark86.5
Max Out:384K
Training Cutoff:-
Blazing Fast
39
Total
In: $0.0195Out: $0.018
Cache Saved: $0.0184(Cost: $0.0020)
Context Window2M
Benchmark86.25
Max Out:-
Training Cutoff:-
Slow
40
$0.0609
Total
In: $0.0171Out: $0.0420
Cache Saved: $0.0161(Cost: $0.0018)
Context Window400K
Benchmark86
Max Out:128K
Training Cutoff:2025-08
Standard
41
$0.0435
Total
In: $0.0122Out: $0.0300
Cache Saved: $0.0115(Cost: $0.0013)
Context Window400K
Benchmark86
Max Out:128K
Training Cutoff:2024-09
Slow
42
$0.0435
Total
In: $0.0122Out: $0.0300
Cache Saved: $0.0115(Cost: $0.0013)
Context Window128K
Benchmark86
Max Out:16K
Training Cutoff:2024-09
Standard
43
$0.0435
Total
In: $0.0122Out: $0.0300
Cache Saved: $0.0115(Cost: $0.0013)
Context Window128K
Benchmark86
Max Out:16K
Training Cutoff:2024-09
Standard
44
$0.0550
Total
In: $0.025Out: $0.0300
Context Window1M
Benchmark85.75
Max Out:65K
Training Cutoff:2025-01
Standard
45
$0.0609
Total
In: $0.0171Out: $0.0420
Cache Saved: $0.0161(Cost: $0.0018)
Context Window400K
Benchmark85.75
Max Out:128K
Training Cutoff:2025-08
Fast
46
$0.0159
Total
In: $0.0049Out: $0.009
Cache Saved: $0.0031(Cost: $0.0020)
Context Window1M
Benchmark85
Max Out:65K
Training Cutoff:2025-01
Blazing Fast
47
$0.0217⚠️
Total
In: $0.0122Out: $0.0075
Cache Saved: $0.0108(Cost: $0.0020)
Context Window1M
Benchmark85
Max Out:-
Training Cutoff:-
Standard
48
Total
In: $0.0195Out: $0.018
Cache Saved: $0.0184(Cost: $0.0020)
Context Window2M
Benchmark84.75
Max Out:-
Training Cutoff:-
Slow
49
$0.0435
Total
In: $0.0122Out: $0.0300
Cache Saved: $0.0115(Cost: $0.0013)
Context Window400K
Benchmark84.5
Max Out:128K
Training Cutoff:2024-09
Standard
50
$0.0435
Total
In: $0.0122Out: $0.0300
Cache Saved: $0.0115(Cost: $0.0013)
Context Window400K
Benchmark84.25
Max Out:128K
Training Cutoff:2024-09
Standard
51
$0.0178⚠️
Total
In: $0.0098Out: $0.0060
Cache Saved: $0.0082(Cost: $0.0020)
Context Window256K
Benchmark82.5
Max Out:-
Training Cutoff:-
Fast
52
$0.0809
Total
In: $0.0293Out: $0.045
Cache Saved: $0.0241(Cost: $0.0066)
Context Window1M
Benchmark82
Max Out:64K
Training Cutoff:2025-07
Fast
53
$0.0040⚠️
Total
In: $0.0020Out: $0.0015
Cache Saved: $0.0015(Cost: $0.0005)
Context Window2M
Benchmark80.75
Max Out:-
Training Cutoff:-
Fast
54
$0.0040⚠️
Total
In: $0.0020Out: $0.0015
Cache Saved: $0.0015(Cost: $0.0005)
Context Window2M
Benchmark80.25
Max Out:-
Training Cutoff:-
Fast
55
$0.0121
Total
In: $0.0029Out: $0.0075
Cache Saved: $0.0014(Cost: $0.0016)
Context Window1M
Benchmark80
Max Out:65K
Training Cutoff:2026-03
Blazing Fast
56

GPT-4.1

OpenAI
$0.0486
Total
In: $0.0195Out: $0.0240
Cache Saved: $0.0154(Cost: $0.0051)
Context Window1M
Benchmark79.75
Max Out:32K
Training Cutoff:2024-06
Fast
57
$0.0820⚠️
Total
In: $0.0293Out: $0.045
Cache Saved: $0.0230(Cost: $0.0077)
Context Window256K
Benchmark79
Max Out:-
Training Cutoff:-
Standard
58
$0.0121
Total
In: $0.0029Out: $0.0075
Cache Saved: $0.0014(Cost: $0.0016)
Context Window1M
Benchmark78.75
Max Out:65K
Training Cutoff:2025-01
Blazing Fast
59

o3-pro

OpenAI
$0.64
Total
In: $0.40Out: $0.2400
Context Window200K
Benchmark78.5
Max Out:100K
Training Cutoff:2024-06
Very Slow
60
$0.0087
Total
In: $0.0024Out: $0.0060
Cache Saved: $0.0023(Cost: $0.0003)
Context Window400K
Benchmark77.75
Max Out:128K
Training Cutoff:2024-05
Fast
61
Total
In: $0.0195Out: $0.018
Cache Saved: $0.0184(Cost: $0.0020)
Context Window2M
Benchmark77.75
Max Out:-
Training Cutoff:-
Standard
62
$0.0067⚠️
Total
In: $0.0020Out: $0.0045
Cache Saved: $0.0018(Cost: $0.0002)
Context Window256K
Benchmark77.75
Max Out:-
Training Cutoff:-
Fast
63

GPT-5.4 nano

OpenAI👑
$0.0059
Total
In: $0.0020Out: $0.0037
Cache Saved: $0.0018(Cost: $0.0002)
Context Window400K
Benchmark77.5
Max Out:128K
Training Cutoff:2025-08
Blazing Fast
64
$0.2432
Total
In: $0.0976Out: $0.1200
Cache Saved: $0.0768(Cost: $0.0256)
Context Window200K
Benchmark77.5
Max Out:100K
Training Cutoff:2024-06
Very Slow
65

Claude Opus 4

Anthropic
$0.4044
Total
In: $0.1464Out: $0.2250
Cache Saved: $0.1206(Cost: $0.0330)
Context Window200K
Benchmark77.25
Max Out:32K
Training Cutoff:2025-03
Standard
66

o3

OpenAI
$0.0486
Total
In: $0.0195Out: $0.0240
Cache Saved: $0.0154(Cost: $0.0051)
Context Window200K
Benchmark76.5
Max Out:100K
Training Cutoff:2024-06
Slow
67
Total
In: $0.0195Out: $0.0240
Cache Saved: $0.0154(Cost: $0.0051)
Context Window200K
Benchmark74.5
Max Out:100K
Training Cutoff:2024-06
Very Slow
68
Total
In: $0.0024Out: $0.0045
Cache Saved: $0.0010(Cost: $0.0015)
Context Window1M
Benchmark74.25
Max Out:65K
Training Cutoff:2025-01
Blazing Fast
69
$0.0087
Total
In: $0.0024Out: $0.0060
Cache Saved: $0.0023(Cost: $0.0003)
Context Window400K
Benchmark73.5
Max Out:128K
Training Cutoff:2024-09
Fast
70
Total
In: $0.0020Out: $0.0015
Cache Saved: $0.0015(Cost: $0.0005)
Context Window2M
Benchmark73.25
Max Out:-
Training Cutoff:-
Blazing Fast
71
Total
In: $0.0020Out: $0.0015
Cache Saved: $0.0015(Cost: $0.0005)
Context Window2M
Benchmark73.25
Max Out:-
Training Cutoff:-
Fast
72

o1-pro

OpenAI
$4.80
Total
In: $3.00Out: $1.8000
Context Window200K
Benchmark71.75
Max Out:100K
Training Cutoff:2023-10
Very Slow
73

o4-mini

OpenAI
$0.0268
Total
In: $0.0107Out: $0.0132
Cache Saved: $0.0084(Cost: $0.0028)
Context Window200K
Benchmark71.75
Max Out:100K
Training Cutoff:2024-06
Standard
74
Total
In: $0.002Out: $0.0012
Context Window1M
Benchmark71.5
Max Out:65K
Training Cutoff:2025-01
Blazing Fast
75

Claude Haiku 4.5

Anthropic👑
$0.0350
Total
In: $0.02Out: $0.0150
Context Window200K
Benchmark69.5
Max Out:64K
Training Cutoff:2025-07
Fast
76
$0.0820⚠️
Total
In: $0.0293Out: $0.045
Cache Saved: $0.0230(Cost: $0.0077)
Context Window131K
Benchmark69.25
Max Out:-
Training Cutoff:-
Standard
77
$0.0097
Total
In: $0.0039Out: $0.0048
Cache Saved: $0.0031(Cost: $0.0010)
Context Window1M
Benchmark68.75
Max Out:32K
Training Cutoff:2024-06
Fast
78
$0.0809
Total
In: $0.0293Out: $0.045
Cache Saved: $0.0241(Cost: $0.0066)
Context Window1M
Benchmark68.5
Max Out:64K
Training Cutoff:2025-03
Fast
79

GPT-4o

OpenAI
$0.0672
Total
In: $0.0244Out: $0.0300
Cache Saved: $0.0128(Cost: $0.0128)
Context Window128K
Benchmark68.5
Max Out:16K
Training Cutoff:2023-10
Fast
80

o1

OpenAI
$0.4032
Total
In: $0.1464Out: $0.18
Cache Saved: $0.0768(Cost: $0.0768)
Context Window200K
Benchmark66.25
Max Out:100K
Training Cutoff:2023-10
Slow
81
$0.29
Total
In: $0.20Out: $0.09
Context Window128K
Benchmark63.75
Max Out:4K
Training Cutoff:2023-12
Standard
82

o3-mini

OpenAI
$0.0296
Total
In: $0.0107Out: $0.0132
Cache Saved: $0.0056(Cost: $0.0056)
Context Window200K
Benchmark62.75
Max Out:100K
Training Cutoff:2023-10
Standard
83

GPT-4

OpenAI
$0.78
Total
In: $0.60Out: $0.18
Context Window8K
Benchmark61
Max Out:8K
Training Cutoff:2023-12
Slow
84
$0.0017
Total
In: $0.0005Out: $0.0012
Cache Saved: $0.0005(Cost: $0.00)
Context Window400K
Benchmark59.75
Max Out:128K
Training Cutoff:2024-05
Blazing Fast
85
$0.0024
Total
In: $0.0010Out: $0.0012
Cache Saved: $0.0008(Cost: $0.0003)
Context Window1M
Benchmark59.25
Max Out:32K
Training Cutoff:2024-06
Blazing Fast
86
$0.0051⚠️
Total
In: $0.0029Out: $0.0015
Cache Saved: $0.0024(Cost: $0.0007)
Context Window131K
Benchmark58.75
Max Out:-
Training Cutoff:-
Fast
87
$0.0040
Total
In: $0.0015Out: $0.0018
Cache Saved: $0.0008(Cost: $0.0008)
Context Window128K
Benchmark58.25
Max Out:16K
Training Cutoff:2023-10
Fast
88
$0.0145
Total
In: $0.01Out: $0.0045
Context Window16K
Benchmark47.5
Max Out:4K
Training Cutoff:2021-09
Fast

Understanding LLM API Pricing & Cost Optimization

Essential concepts and practical techniques to minimize your AI infrastructure spending

💰

Input vs. Output Pricing Ratio (3-5x)

API pricing is billed per 1 million (1M) tokens. Output tokens (text generated by AI) are typically 3x to 5x more expensive than input tokens. Choosing a model with affordable output rates is critical for long-form generation tasks.

⚡

Prompt Caching: Up to 90% Savings

Frontier models from OpenAI, Anthropic, Google, and DeepSeek support prompt caching. By keeping reusable instructions and context in memory, you can slash input costs by 50% to 90% on repeated calls.

🎯

Intelligent Multi-LLM Routing

Instead of sending every query to the most expensive frontier model, route lightweight classification and extraction to Flash/Mini models, and reserve flagship models for complex reasoning and coding.

Frequently Asked Questions (FAQ)

In-depth answers to LLM API formulas, caching architectures, long context tiers, and cost reduction

Q. How does this simulator calculate monthly LLM API expenses?+

The core equation is "(Requests × Input Tokens ÷ 1,000,000 × Input Rate) + (Requests × Output Tokens ÷ 1,000,000 × Output Rate)". Our simulator further isolates input into "Shared Context" (system prompt/documents) and "Unique Tokens", modeling provider-specific Prompt Caching rules, Long Context tiered thresholds, and hourly storage charges. Click "View Formula" on any model card to inspect the exact mathematical breakdown (Write, Read, Storage).

Q. How do Prompt Caching billing models differ across Anthropic, Google, OpenAI, and DeepSeek?+

Each provider employs unique caching mechanics modeled by our engine: • Anthropic (Claude): Charges a cache write creation surcharge (1.25x for 5-min TTL, 2.0x for 1-hour TTL) with subsequent reads (N-1) discounted by 90%. • Google (Gemini): Charges a 1x standard write fee + discounted read rate, plus an hourly storage fee per 1M tokens. • OpenAI & DeepSeek: DeepSeek automatically caches prompts above 64 tokens with no write fee; OpenAI 5.6 / 6 models (such as GPT-6 Astra) feature a 30-min TTL with a 1.25x write surcharge and deeply discounted reads.

Q. When does Prompt Caching become more expensive than standard non-cached calls?+

When request volume is very low (1-2 calls) or when Gemini context is stored across long idle periods, the sum of write surcharges and storage fees can exceed standard input costs. Our simulator includes an automated "Cost Guard" that disables caching and falls back to standard rates whenever caching would result in higher total expenses.

Q. How do Long Context Tiered Pricing Thresholds work?+

Certain models raise input, output, and cache rates by 1.5x to 2x once prompt volume exceeds defined thresholds. Our simulator detects when your input exceeds these limits and automatically applies longContextPricing rates.

Q. How are Benchmark Scores (0–100) calculated and normalized?+

Benchmark scores (0–100) are normalized metrics synthesized from authoritative public evaluations including MMLU-Pro, SWE-bench, HumanEval, MATH, and GPQA. Sorting by "By Benchmark" allows you to evaluate price-to-performance tradeoffs across all frontier models.

Q. What are the top practical strategies to minimize production AI costs?+

1. Multi-LLM Tiering: Route routine classification and extraction to ultra-low-cost models (Gemini Flash, GPT Mini, DeepSeek at $0.1–$0.5/1M), reserving flagship models solely for complex reasoning. 2. Prompt Prefix Architecture: Place static instructions and background context at the very top of prompts, exceeding provider minimums (e.g. 1,024 tokens) to achieve 80–90% caching discounts. 3. Output Token Constraints: Because output tokens cost 3–5x more than input, enforce strict max_tokens and concise structured schemas.

Note: Performance scores are reference values (0-100) compiled based on various benchmarks.