Calculator › Sources & method
Sources and methodology
This site exists to answer one question quickly and honestly: what will this workload cost on each model? Here is exactly how the numbers are produced.
Who this site is for
Developers, product managers and founders who need to estimate LLM API spend before they build or switch models, and anyone tracking how API prices change over time (see the price changes log). AI Token Cost is an independent site run by a small Beijing-based team. It is not affiliated with OpenAI, Anthropic, Google, xAI, DeepSeek or any other provider listed, and providers cannot pay to change a price or a ranking.
Price sources
All prices were read by hand from each provider's official pricing page on December 1, 2026:
- OpenAI: https://platform.openai.com/docs/pricing. Standard tier. Prompts over 272K input tokens are billed at the long-context rate shown. Batch API: 50% off. Regional (data-residency) endpoints add 10% on newer models.
- Anthropic: https://docs.anthropic.com/en/docs/about-claude/pricing. Cached input = cache-hit price. Writing to the cache costs 1.25x input (5-minute) and is not included. Claude 4.7 and later use a newer tokenizer that produces about 30% more tokens for the same text. Batch API: 50% off.
- Google: https://ai.google.dev/gemini-api/docs/pricing. Paid tier, text input. Prompts over 200K tokens are billed at the higher rate shown (Pro models). Batch Mode: 50% off.
- xAI: https://docs.x.ai/docs/models. Prompts of 200K tokens or more are billed at the higher rate shown, for every token in the request.
- DeepSeek: https://api-docs.deepseek.com/quick_start/pricing. Standard (peak) prices. Off-peak hours are 50% off.
- Moonshot AI (Kimi): https://platform.kimi.ai/docs/pricing/chat. Flat pricing across the 1M-token context. Cache writes are billed separately (5-minute writes at the input price, 1-hour writes at 2× input) and are not included here. Batch API for Kimi K3.1 Pro and K3 is billed at 60% of the standard price (the calculator's batch toggle does not apply it).
- Alibaba Cloud (Qwen): https://www.alibabacloud.com/help/en/model-studio/model-pricing. International (Singapore) prices shown; cached = implicit cache hit. Qwen4-Max: cache hit $0.075, explicit cache creation $1.875 (5-minute) or $3.00 (1-hour) per 1M; Global deployments (Frankfurt, Hong Kong, Tokyo, Virginia) $1.413 input / $4.24 output. Qwen 3.8 Max: explicit cache reads $0.17 and explicit cache creation $2.50 per 1M; Frankfurt and Virginia deployments $1.65 input / $4.951 output. No batch in the International region for either model.
- Z.ai (GLM): https://docs.z.ai/guides/overview/pricing. International Z.ai API list prices in USD.
- LongCat (Meituan): https://longcat.chat/platform/docs/pricing/longcat-2.5. Pay-as-you-go limited-time discounted price; LongCat has not published an end date or the regular price.
- Baidu (ERNIE): https://intl.cloud.baidu.com/en/doc/qianfan/s/Jm8r1826a-intl-en. Baidu AI Cloud Qianfan international pay-as-you-go prices in USD (same price in text-generation and deep-thinking modes). Mainland-China Qianfan bills in yuan with separate peak and off-peak rates.
- Thinking Machines Lab: https://tinker-docs.thinkingmachines.ai/tinker/models/models_and_pricing/. Tinker list prices per 1M tokens: prefill = input, cached prefill = input tokens that hit the prompt cache, sample = output. Fine-tuning (train) tokens are billed separately and are not included in the calculator. The 256K training-context variants cost more for training only; prefill and sample prices are the same.
- Xiaomi (MiMo): https://mimo.mi.com/docs/en-US/price/pay-as-you-go. Xiaomi MiMo API Platform overseas pay-as-you-go prices in USD; mainland China bills in yuan (MiMo-V2.6-Pro ¥3 input / ¥6 output, MiMo-V2.6-Flash ¥1 / ¥2 per 1M). Cache writes are free for a limited time. Batch API: 50% off for Pro and Flash. Web search is billed separately ($5 per 1,000 calls).
- Meta (Muse): https://dev.meta.ai/docs/pricing-rate-limits. Meta Model API pay-as-you-go prices in Standard mode (your content is not used to train Meta models). Contributor mode, where Meta may train on your prompts and outputs, is cheaper but is offered for Muse Spark only. Muse Ember bills requests over 200K input tokens at a higher rate for the whole request. Web search grounding costs $2.50 per 1,000 queries.
- Tencent (Hy): https://www.tencentcloud.com/document/product/1300/78937. Tencent Cloud TokenHub international (Singapore region) pay-as-you-go list prices in USD. The Hy4 flash 50% launch discount ended at 12:00 on Nov 30, 2026 (Beijing time); a 50% discount on Hy4 runs until 23:59:59 on Dec 31, 2026 (Beijing time). The calculator uses list prices. Mainland-China TokenHub bills in yuan.
- Amazon Bedrock: https://aws.amazon.com/products/ergo/pricing/. Amazon Bedrock list prices for Global cross-Region inference. US cross-Region inference (data stays in US Regions) costs 10% more. Cached input = cache-read price; writing to the 30-minute cache costs $1.25 per 1M tokens on Global and is not included. Standard, Flex and Batch tiers are billed at the same rate, so there is no batch discount.
Prices are standard pay-as-you-go list prices in USD for text. Regional or data-residency endpoints (usually +10%), priority or "fast" modes, enterprise discounts, free tiers, and cloud-marketplace prices (Azure, Bedrock, Vertex AI) are not included.
How costs are calculated
- Per request: uncached input × input price + cached input × cached price + output × output price, divided by 1,000,000.
- Long-context pricing: when a prompt exceeds the model's threshold, the higher rate applies to the whole request.
- Batch: 50% off input, output and cached input where the provider publishes a batch discount (OpenAI, Anthropic, Google). For some older OpenAI models the batch rate has no separate cached price, so cached input is billed at the batch input rate.
- DeepSeek off-peak: 50% off everything.
- Tokenizer adjustment: Claude 4.7 and later models are charged for 1.3× the tokens, per Anthropic's note that their newer tokenizer produces about 30% more tokens for the same text.
- A month is 30 days.
Not included
- Prompt cache write charges (Anthropic: 1.25× input for 5-minute writes, 2× for 1-hour; Amazon Ergo: $1.25 per 1M for 30-minute writes; OpenAI publishes cache-write prices for its newest models), and Google's cache storage fee.
- Tool fees such as web search, code execution containers or grounding.
- Image, audio and video tokens, embeddings and fine-tuning.
- Taxes.
Token counting
The counter uses OpenAI's open-source o200k_base tokenizer (via the js-tiktoken library), loaded on demand and run entirely in your browser. Other providers' tokenizers are not public in the same way, so their counts are estimates.
Price change log
Dated API price changes and launches are on the AI API price changes log (updated weekly). Site check notes:
- December 2, 2026: added Amazon Ergo ($1.00 / $0.03 cached / $3.00 per 1M, Global cross-Region inference on Amazon Bedrock; US cross-Region 10% more; no batch discount), verified on the AWS Ergo pricing page and the Bedrock model card. Re-read OpenAI's official pricing page and the GPT-5.6 Sol model page: the $4 / $20 promotional rate is no longer listed; the list price is now $5.00 input / $0.50 cached / $30.00 output per 1M tokens (prompts over 272K: $10.00 / $1.00 / $45.00).
- December 1, 2026: re-read the OpenAI, Anthropic, Google, xAI, DeepSeek and Tencent TokenHub pricing pages. Gemini 4 Carbon and Gemini 4 Argon now list $4 input / $0.20 cached / $20 output (Google's page: $2 / $0.10 / $10 through Nov 30, 2026, $4 / $0.20 / $20 starting Dec 1, 2026; Google does not state a time zone). Tencent's 50% Hy4 flash launch discount ended at 12:00 on Nov 30, 2026 (Beijing time); the stored Hy4 flash price was already the list price. OpenAI's page still lists GPT-5.6 Sol at $4 / $20 and says its promotional pricing is available until Nov 30, 2026, without a separate post-promo rate. Other list prices unchanged.
- November 24, 2026: xAI Grok Build 0.1 reached end of life on Nov 19, 2026 and is now marked retired on its model page; Anthropic announced the retirement of Claude Opus 4.5 on the Claude API on Jan 22, 2027. No list-price changes to current models.
- November 23, 2026: re-checked list prices on the official OpenAI, Anthropic, Google, xAI, DeepSeek, Z.ai and Kimi pricing pages; no list-price changes to existing models. Added GLM-5.3-FlashX ($0.37 input / $1.25 output, cached input $0.075 per 1M) from Z.ai's pricing page. Added two dated rows for Dec 1, 2026: Google routes all gemini-2.5-pro requests to Gemini 3.8 Flash and all gemini-2.5-flash requests to Gemini 3.5 Flash-Lite, billed at those models' rates.
- November 13, 2026: added Gemini 4 Carbon (introductory $2 / $10 through Nov 30, then $4 / $20) and Gemini 4 Hydrogen ($1.50 / $7.50), both read from Google's pricing page. Re-checked the Google, Claude Fable 5.2 / Mythos 5.2 and DeepSeek prices; no changes to existing models. See the price changes log.
- November 18, 2026: all models re-checked against the official pages; no price changes to existing models. GPT-4.1 nano and o4-mini were retired by OpenAI on Oct 23, 2026 and are now marked as retired. Added Kimi K3.1 Pro, Kimi K3, Qwen 3.8 Max, GLM-5.3, GLM-5.3-Flash and LongCat-2.5 (limited-time discount). Still flagged: GPT-5.6 Sol promotional price (through Nov 30, 2026), Gemini 4 Argon (doubles Dec 1, 2026), Gemini 3.8 Flash and Gemini 3.6 Flash (double Jan 1, 2027).
- October 28, 2026: all 53 models checked; no price changes. Added GPT-6.1 Terra.
- October 21, 2026: all 52 models checked. Added Claude Mythos 5.1, Claude Mythos 5, Gemini 3.6 Flash, Gemini 3 Flash (preview) and Grok 4.6.
- October 19, 2026: first full price check.