AI Model API Pricing Table (Live): Input/Output Rates and Context Windows Compared

Last updated: 2026-08-31 · This is an evergreen reference page, updated as events develop and new public benchmark data lands
A live comparison of official API prices for major LLMs — input/output cost per million tokens and context windows, sourced from the model registry that powers our benchmark, updated as vendors reprice.

How to read this table

The live table below lists official API prices for the models we continuously benchmark. LLM APIs bill per token, with input (what you send) and output (what the model generates) priced separately — output rates are usually much higher. The context window caps how much material fits in one request; long-context models are not necessarily pricier per token, but filling the window multiplies input cost.

The data shares the same model registry that powers our benchmark: whatever models we test are the models whose prices are tracked here, updated when vendors reprice.

Common cost-control tactics

Vendor-neutral strategies: put long, stable system prompts behind the provider's prompt-caching mechanism (cached input is typically discounted heavily); route by difficulty — send classification and extraction to small models and reserve flagships for hard reasoning; use batch APIs for non-realtime workloads; and cap output length — output tokens cost more than input tokens.

Beyond price: read it against capability scores

Price alone misjudges models that are cheap but wrong. Read this table against the YZ Index leaderboard (real sandbox execution, rule-based scoring): pick the cheapest model within a capability tier, not the cheapest overall. Per-model pages provide score history.

AI 模型 API 价格与参数对照(活数据)

单位:美元 / 百万 token(官方牌价)。数据来自本站评测所用的模型注册表,价格变动随官方调价更新;“—”表示未登记。

Model厂商输入 $/M输出 $/M上下文
Claude Opus 4.7 claude 15 75 200K
Claude Sonnet 4.6 claude 3 15 200K
Claude Haiku 4.5 claude 0.8 4 200K
DeepSeek V4 Pro deepseek 2 8 128K
DeepSeek V4 Flash deepseek 0.1 0.5 128K
豆包 Pro doubao 0.8 2 128K
Gemini 3.1 Pro gemini 2.5 15 1000K
Gemini 2.5 Pro gemini 1.25 10 1000K
Gemini 2.5 Flash gemini 0.15 0.6 1000K
GPT-5.5 Pro gpt 15 60 200K
GPT-o3 gpt 10 40 200K
GPT-5.5 gpt 5 20 200K
GPT-5.4 Nano gpt 0.1 0.4 128K
Grok 4 grok 3 15 131K
Grok 3 mini grok 0.3 0.5 131K
Perplexity Sonar perplexity 0 0 128K
Qwen3 Max qwen 1.6 6.4 131K
GLM-4.6 zhipu 2 8 200K
See the full leaderboard and methodology →

FAQ

How often is this table updated?

It reads live from the model registry behind our benchmark; prices are synced when vendors announce changes, without republishing this page.

Why might it differ from the vendor site?

The table shows list prices as registered; there can be lag between a vendor change and our sync, and tiered, cached or batch discounts are not reflected. Treat vendor sites as authoritative for budgeting.

How do I estimate monthly cost quickly?

Monthly cost ≈ requests × (avg input tokens × input rate + avg output tokens × output rate) ÷ 1,000,000. Measure average lengths from logs, then plug in the rates above.