/ Cost Calculator

AI Model API Cost Calculator

Official list prices · off-peak rates · cache-hit weighting · USD converted at a verified reference rate

LLM API cost is driven by four variables: input tokens, output tokens, cache hit rate, and whether the vendor prices by time of day (peak vs off-peak). This tool applies your usage to each vendor's published price list and estimates a monthly cost in the original billing currency, so models can be compared on one screen. Prices are official list prices per 1M tokens in CNY or USD — they are not converted into USD unless the vendor bills in USD. Estimates are for budgeting and do not equal a vendor's invoice.

Select models (multi-select)

Your usage

Off-peak: price at the off-peak rate Only affects time-based priced models
Cache hit rate 30%

Only applies to models with a published cache-hit price

Reference: estimated monthly cost at default usage

Assumptions: 100 calls/day · 2,000 input tokens per call · 800 output tokens per call · off-peak rates on · 30% cache hit rate · 30-day month · amounts in the original billing currency (CNY). Results are estimates, not purchase advice.

Model Vendor / channel Input price
(list price / 1M tokens)
Output price
(list price / 1M tokens)
Cache-hit price Est. monthly cost (CNY) Verified Official price source
DeepSeek V4.1 Flash DeepSeek Peak ¥2
Off-peak ¥1
Peak ¥8
Off-peak ¥4
Peak ¥0.04
Off-peak ¥0.02
¥13.84 2026-09-18 Tencent Cloud TokenHub pricing
DeepSeek V4 Pro 0813 Tencent Cloud (official direct) Peak ¥9
Off-peak ¥4.5
Peak ¥27
Off-peak ¥13.5
Peak ¥0.3
Off-peak ¥0.15
¥51.57 2026-09-18 Tencent Cloud TokenHub pricing
GLM-5.3 Alibaba Cloud Model Studio · Zhipu (direct) ¥8 ¥28 ¥2 ¥104.40 2026-10-28 Alibaba Cloud Model Studio — GLM-5.3 model page
GLM-5.3-Flash Alibaba Cloud Model Studio · Zhipu (direct) ¥0.8 ¥2.8 ¥0.23 ¥10.49 2026-10-28 Alibaba Cloud Model Studio — GLM-5.3-Flash model page
Kimi K3 Alibaba Cloud Model Studio ¥20 ¥100 ¥2 ¥327.60 2026-10-28 Alibaba Cloud Model Studio — Kimi K3 model page
Qwen3.5-Plus Alibaba Cloud Model Studio (≤128K tier) ¥0.8 ¥4.8 Not published ¥16.32 2026-09-18 Alibaba Cloud Model Studio pricing
Qwen3.7-Plus Alibaba Cloud Model Studio (≤256K tier, list price) ¥2 ¥8 Not published ¥31.20 2026-09-18 Alibaba Cloud Model Studio pricing
Qwen3.8-Flash Alibaba Cloud Model Studio ¥0.8 ¥2.7 ¥0.1 ¥10.02 2026-10-28 Alibaba Cloud Model Studio — Qwen3.8-Flash model page
Hunyuan TurboS Vision Tencent Cloud ¥3 ¥9 Not published ¥39.60 2026-09-18 Tencent Cloud Hunyuan billing
MiniMax M3 MiniMax Input ≤512K ¥2.1
Input >512K ¥4.2
Input ≤512K ¥8.4
Input >512K ¥16.8
Not published ¥32.76 2026-10-28 Alibaba Cloud Model Studio billing
Xiaomi MiMo V2.5 Pro Alibaba Cloud Model Studio · Xiaomi (≤256K tier) ¥7 ¥21 Not published ¥92.40 2026-09-18 Alibaba Cloud Model Studio pricing
Step 3.7 Flash Alibaba Cloud Model Studio · StepFun ¥1.35 ¥8.1 ¥0.27 ¥25.60 2026-10-28 Alibaba Cloud Model Studio — Step 3.7 Flash model page
GPT-6 Luna OpenAI Input ≤272K $0.1
Input >272K (long context) not published
Input ≤272K $0.5
Input >272K (long context) not published
Input ≤272K $0.01
Input >272K (long context) not published
≈ ¥11.00 2026-10-28 OpenAI API pricing
GPT-6.1 Sol OpenAI Input ≤272K $2
Input >272K (long context) not published
Input ≤272K $10
Input >272K (long context) not published
Input ≤272K $0.1
Input >272K (long context) not published
≈ ¥218.87 2026-10-28 OpenAI API pricing
Claude Haiku 5.5 Anthropic Prompt ≤100K $0.1
Prompt >100K $0.5
Prompt ≤100K $0.5
Prompt >100K $2.5
Prompt ≤100K $0.01
Prompt >100K $0.05
≈ ¥11.00 2026-10-28 Anthropic official pricing
Claude Sonnet 5.5 Anthropic $2 $10 $0.1 ≈ ¥218.87 2026-10-28 Anthropic official pricing
Gemini 3.1 Flash-Lite Google $0.25 $1.5 $0.025 ≈ ¥31.54 2026-10-28 Google AI pricing

Models without a published cache price are estimated at the standard input price (no cache discount assumed); time-based priced models use the off-peak rate (matching the "Off-peak" toggle above); tiered models are priced at the tier an example input of 2,000 tokens falls into. The estimate column uses exactly the same formula, default parameters and reference rate as the interactive calculator below. USD is the official billing currency for those models; estimated monthly costs are converted to CNY (1 USD = 6.718 CNY, CFETS central parity rate 2026-10-23), indicative only. For a two-model, line-by-line comparison use the model comparison.

Variables, formula and a worked example

Input tokens: the content sent to the model per call (including the system prompt and conversation history). Output tokens: the content the model generates. They are billed separately; output is usually priced higher than input.

Cache hit rate: the share of input tokens served from context cache, billed at the lower cache-hit price. It only applies to models with a published cache price; for the others the standard input price is used and no cache discount is assumed.

Off-peak (time-based pricing): some vendors (e.g. DeepSeek) price by time of day. Outside peak hours — nights, lunch hours, weekends and public holidays — the off-peak rate is about half the peak rate.

Formula: monthly cost = calls/day × 30 days × (input tokens ÷ 1,000,000 × effective input price + output tokens ÷ 1,000,000 × output price), where effective input price = hit rate × cache-hit price + (1 − hit rate) × standard price. Prices are in each vendor's original currency (CNY or USD per 1M tokens); cross-currency comparison converts USD to CNY at a reference rate, which is indicative only.

Example model DeepSeek V4.1 Flash (DeepSeek, off-peak rate, verified 2026-09-18, official source)
Effective input priceEffective input price = 30% × ¥0.02 (cache hit) + 70% × ¥1 (standard) = 0.71 CNY/1M tokens.
Input cost100 × 30 × (2000 ÷ 1,000,000) × 0.71 = ¥4.24
Output cost100 × 30 × (800 ÷ 1,000,000) × ¥4 = ¥9.60
Estimated monthly cost ¥13.84 (a fixed-assumption estimate, not purchase advice)

Not covered: free tiers, resource packs, subscription discounts and limited-time promos are not included; tiered models are estimated at the tier your input length falls into; an estimate is not a vendor's actual invoice and does not constitute purchase advice.

Frequently asked questions

How does this calculator work?

Monthly cost = calls per day × 30 × (input tokens ÷ 1,000,000 × effective input price + output tokens ÷ 1,000,000 × output price). The effective input price is weighted by cache hit rate: hit rate × cache-hit price + (1 − hit rate) × standard price. Models without a published cache price are billed at the standard input price.

When do DeepSeek off-peak rates apply?

DeepSeek uses time-based pricing. Peak hours are weekdays 9:00–12:00 and 14:00–18:00; all other times (nights, early mornings, weekends and public holidays) use the off-peak rate, which is about half the peak rate. Scheduling batch jobs off-peak directly reduces cost.

What does cache hit rate mean?

The cache hit rate is the share of input tokens that hit the context cache. Hit tokens are billed at a much lower cache-hit price; the rest are billed at the standard input price. Keeping a stable prompt prefix (such as a fixed system prompt) raises the hit rate and lowers input cost.