Skip to content

How much do major LLM APIs differ in price? ​

Xiao Zhou wants to hook up an LLM API for his translation script. He opens the pricing pages of three providers and finds one model called gpt-6.2-astra and another called kimi-k3.1-pro, with prices in dollars for one and yuan for the other, plus several columns like "cache hit" and "batch" — he has no idea where to start comparing.

Let's start with a true-or-false question:

Quiz time同样处理 100 万 token 的Input,下面哪个更便宜?

APIs charge by token: you pay once for the input tokens and again for the output tokens. Every provider prices per "million tokens," but the currency and tiers differ. On top of that, there are three common surcharge/discount items: caching (repeated prefixes are billed at a lower "cache hit" price), batch processing (a discount for non-urgent tasks), and surcharges for long context or peak hours.

Calculate directly what your own usage would cost with the AI API Price Calculator: enter your token counts and number of calls, and prices from various providers are sorted automatically.

What you'll be able to do after this lesson ​

  • Put overseas and domestic model prices into the same table by reading each provider's pricing page
  • Know how much batch processing and caching each save, and which tasks should use them
  • Estimate for yourself roughly how much a task will cost

Overseas models: priced in dollars, with flagship and lightweight tiers differing by tens of times ​

Here are the standard prices (per million tokens, in USD) of several overseas models on sale in November 2026:

ModelInputOutputCache hit/read
gpt-6.2-astra (OpenAI flagship)$8.00$40.00$0.40
gpt-6.2-sol(OpenAI)$2.00$10.00$0.10
Claude Fable 5.2(Anthropic)$8$40$0.20
Claude Sonnet 5.5(Anthropic)$2$10$0.10
Claude Haiku 5.5 (prompt ≤ 100,000 tokens)$0.10$0.50$0.01
Gemini 4 Carbon(Google)$2.00$10.00$0.10
Gemini 3.5 Flash-Lite(Google)$0.30$2.50$0.03
Grok 4.7 (xAI)$2.00$6.00Not officially provided

A few points worth noting:

  • Claude Haiku 5.5 prices are tiered by prompt length: when the prompt exceeds 100,000 tokens, input rises to $0.50 and output to $2.50.

  • Gemini 4 Carbon's $2.00 / $10.00 is a promotional price valid until November 30, 2026; from December 1 it rises to $4.00 / $20.00.

  • Grok 4.7 has 500k tokens of context; the official page gives no cache price or batch discount figures.

  • Anthropic charges separately for cache writes — writing to the cache itself costs money, and only hits are cheap.

  • Google's Flash series also charges a separate storage fee for caching; for example, Gemini 3.5 Flash-Lite is $1.00 / per million tokens per hour.

  • I can give a concrete example of "flagship expensive, lightweight cheap" (e.g., gpt-6.2-astra input at $8.00 versus gpt-6.2-sol input at $2.00)

Domestic models: priced in yuan, with peak and off-peak differing by a factor of two ​

Domestic APIs are priced in yuan, and quite a few providers vary prices by time of day. DeepSeek designates Beijing time Monday to Friday (excluding Chinese public holidays) 9:00–12:00 and 14:00–18:00 as peak hours; all other hours (including weekends and holidays all day) are off-peak, at half the peak price:

ModelInput (cache miss)Input (cache hit)Output
deepseek-flash (peak / off-peak)2 yuan / 1 yuan0.04 yuan / 0.02 yuan8 yuan / 4 yuan
deepseek-v4-pro (peak / off-peak)9.0 yuan / 4.5 yuan0.30 yuan / 0.15 yuan27.0 yuan / 13.5 yuan
kimi-k3.1-pro¥13.00¥1.30¥68.00
kimi-k3¥20.00¥2.00¥100.00
MiniMax-M3.1-Flash1.00 yuan0.10 yuan (cache read)4.00 yuan
MiniMax-M3 (standard tier, ≤ 512k input, after the permanent 50% discount)2.10 yuan0.42 yuan (cache read)8.40 yuan

A few points worth noting:

  • Kimi's K3 series bills cache writes separately: kimi-k3.1-pro writes cost ¥13.00 for the 5-minute tier and ¥26.00 for the 1-hour tier; cache-hit input is charged only at the hit price, with no repeated write fee.

  • MiniMax-M3 charges more beyond 512k input tokens: after the standard tier's 50% discount, input is 4.20 yuan and output 16.80 yuan; setting service_tier to priority bills at 1.5 times the standard price.

  • MiniMax's conversion reference is that 1600 Chinese characters consume about 1000 tokens; Kimi says 1 token is roughly equivalent to 1.5–2 Chinese characters.

  • Tongyi Qianwen and Zhipu GLM's model marketplace pages (e.g., qwen4-max, GLM-5.3) don't show prices; you have to check their separate pricing pages.

  • I know DeepSeek's off-peak price is half the peak price, and I can name which hours count as peak

Batch processing and caching: the two easiest discounts to get ​

Batch processing (Batch API) suits "non-urgent" tasks: accumulate requests and submit them in bulk, and providers generally charge half price.

ModelStandard input / outputBatch input / output
gpt-6.2-astra$8.00 / $40.00$4.00 / $20.00
gpt-6.2-sol$2.00 / $10.00$1.00 / $5.00
Claude Fable 5.2$8 / $40$4 / $20
Claude Sonnet 5.5$2 / $10$1 / $5
Gemini 4 Carbon (before 2026-11-30)$2.00 / $10.00$1.00 / $5.00
kimi-k3.1-pro¥13.00 / ¥68.00batch is 60% of the standard price
  • Both OpenAI and Anthropic offer a 50% Batch discount (Anthropic explicitly states a 50 percent discount, and batch and caching discounts can be stacked); Google's paid tier Batch also offers a 50% cost reduction; Kimi is 60%. xAI only says "not every model accepts Batch API requests," without giving a discount figure.
  • OpenAI also has background request discounts: the 2-hour completion window is 30% lower than Standard, and the 8-hour window is 40% lower.

Caching suits tasks where "the same prefix appears repeatedly": the first time you write a long prefix into the cache there is an extra charge, and afterwards each hit is billed only at a very low read price.

  • Cache hit prices are usually a fraction of the input price: gpt-6.2-sol input $2.00, cache hit $0.10; deepseek-flash peak input 2 yuan, cache hit 0.04 yuan; kimi-k3.1-pro input ¥13.00, hit ¥1.30.

  • But writing to the cache itself costs money: Anthropic charges separately for cache writes; OpenAI gpt-6.2-sol is 30m write $2.50, 12h write $5.00; Kimi k3.1-pro write 5min ¥13.00, 1h ¥26.00. If a prefix only appears once or twice, caching is not applicable and is actually more expensive.

  • Kimi automatically enables context caching for repeated request prefixes, with a default TTL of 5 minutes; Google's Gemini 4 Carbon only supports implicit caching, and the Flash series additionally charges a cache storage fee.

  • I can name which part of my task is the "prefix that is the same every time," and what its cache hit price is

How to estimate the cost of a task ​

Four steps: count the tokens → multiply by the unit price → add the effects of caching and batching → multiply by the number of calls.

Line them upEstimate the cost of one call
  1. 1?
  2. 2?
  3. 3?
  4. 4?

Click them one by one, in order.

For example: using gpt-6.2-sol to process a 30,000-token document with about 5 thousand tokens of output. Input 0.03 × $2.00 = $0.06, output 0.005 × $10.00 = $0.05, about $0.11 per call. If submitted as a batch instead, calculate with the batch prices of input $1.00 and output $5.00, multiplied by the same token counts. If you batch-process 1000 such documents, the standard price would be about $110. Conversely, the same task on gpt-6.2-astra costs about $0.44 per call — which is why "try the cheaper model first" is common practice.

  • I can calculate the cost of any single call using "token count × price per million ÷ one million"

Free quota: what you can use for free ​

  • Google AI Studio is free to use in all available regions; the free tier for Gemini 4 Hydrogen, Gemini 3.8 Flash, Gemini 3.6 Flash, and Gemini 3 Flash Preview offers free input/output (content is used to improve the product); the free tier for Gemini 3.5 Flash-Lite has free input/output but caching is unavailable.

  • New Anthropic users receive a free credit for testing the API; the code execution tool has a free monthly usage duration per organization, with usage beyond that billed at $0.05 / hour / container.

  • Zhipu has a set of free models: GLM-4.7-Flash, GLM-4.5-Flash, GLM-4-Flash-250414 (text), GLM-4.6V-Flash, GLM-4.1V-Thinking-Flash (visual reasoning).

  • Gemini 3 and newer models get a batch of free Grounding with Google Search requests per month (shared across all Gemini 3 and newer models), after which it is $14 / 1,000 requests.

  • Note: Gemini 4 Carbon, Gemini 4 Argon, Gemini 4 Neon, and Gemini 3.1 Pro Preview have no free tier.

  • I know the name of at least one model I can try for free

Checkpoint ​

  • I know API prices are quoted "per million tokens," with input and output billed separately
  • I can give an example where the cache hit price is far lower than the input price (e.g., deepseek-flash peak input 2 yuan, cache hit 0.04 yuan)
  • I know batch discounts are generally 50%, and Kimi is 60% of the standard price
  • I know that writing to the cache costs extra, and that it is not worthwhile when a prefix only appears once or twice
  • I can estimate the cost of a task myself and judge how much I would save by switching to a cheaper model

Common misconceptions ​

"A more expensive model is always better." Price reflects positioning and compute cost, not necessarily better performance on your task. In the same task, gpt-6.2-sol costs about $0.11 per call and gpt-6.2-astra about $0.44; if a cheaper model can do your task well, the extra money is wasted. The common practice is to try the cheaper one first and upgrade only if it falls short.

"A cache hit always saves money." Writing to the cache costs extra: Anthropic charges separately for cache writes, and Kimi k3.1-pro write at the 5-minute tier is ¥13.00 — the same as the input price. Caching only pays off when the same long prefix appears repeatedly (e.g., multi-turn conversations, batch-processing the same set of system prompts); if the prefix appears only once or twice, it is actually more expensive.

"Domestic models are cheap, overseas ones are expensive — just convert and compare the numbers." With different currencies, you cannot just compare the numbers; you also need to consider time periods (DeepSeek's peak is twice the off-peak rate), context tiers (Claude Haiku 5.5 input above 100,000 tokens costs 5× more, and MiniMax-M3 above 512k input also costs more), and discounts (batch, caching). When comparing, first calculate the cost of the same task on both sides before drawing conclusions.

FAQ ​

How is large model API pricing calculated? ​

APIs are billed by token: you pay once for the number of input tokens and again for the number of output tokens. Each provider prices "per million tokens," but the currencies and tiers differ. Beyond that, there are also price adjustments such as cache hits, batch processing discounts, and surcharges for long contexts or peak hours.

What is the price of the DeepSeek API? ​

deepseek-flash costs 2 yuan for input and 8 yuan for output during peak hours, and 1 yuan for input and 4 yuan for output during off-peak hours; deepseek-v4-pro costs 9.0 yuan for input and 27.0 yuan for output during peak hours, and 4.5 yuan for input and 13.5 yuan for output during off-peak hours (all per million tokens). Peak hours are Beijing time Monday to Friday (excluding public holidays) at 9:00–12:00 and 14:00–18:00, and off-peak prices are half of peak prices.

How much does the Claude API cost? ​

Claude Fable 5.2 costs $8 for input and $40 for output; Claude Sonnet 5.5 costs $2 for input and $10 for output; Claude Haiku 5.5, when the prompt does not exceed 100,000 tokens, costs $0.10 for input and $0.50 for output, and after that input rises to $0.50 and output to $2.50 (all per million tokens). Note that Anthropic charges separately for cache writes, and it's only cheaper on a cache hit.

How much does the GPT API cost? ​

gpt-6.2-astra has a standard price of $8.00 for input and $40.00 for output, and gpt-6.2-sol costs $2.00 for input and $10.00 for output (all per million tokens). Batch submissions get a 50% discount; for example, gpt-6.2-sol batch pricing is $1.00 for input and $5.00 for output.

Which large model API is the cheapest? ​

Looking at input prices alone, Claude Haiku 5.5, when the prompt does not exceed 100,000 tokens, costs $0.10 for input and $0.50 for output, making it the lowest-priced overseas model in the table on this page; among domestic models, MiniMax-M3.1-Flash costs 1.00 yuan for input and 4.00 yuan for output, and deepseek-flash costs 1 yuan for input and 4 yuan for output during off-peak hours. In addition, Zhipu has a batch of free models (such as GLM-4.7-Flash and GLM-4.5-Flash) that can be used for free directly.

Next section ​

Price is only half of the cost; the other half is the model's own capability and positioning. The next section puts the models currently on sale from each provider side by side for comparison.

gaodong.aiAboutPrivacyTermsContact

Created and maintained by Haorui Li, co-author of the KiT candlestick foundation model.

Independent tutorials, not affiliated with any product mentioned. Product names and trademarks belong to their owners. Check official pages for prices and policies.