AI API Cost Calculator
Estimate and compare API costs for popular AI models across providers — text, image, video, and embeddings — by input/output token pricing.
- Instant
- 100% Client-Side
- No Login Required
- Data Stays in Your Browser
Total (1,000 requests)
$10.00
Cost / request
$0.0100
Selected model
GPT-5.4
All text models — cost for your inputs
· cheapest first| Model | Provider | Cost / request | Total × 1,000 |
|---|---|---|---|
| Cloudflare Clef-FlashReleased Oct 1, 2026. 9B decision model (Qwen3.5-9B base, Apache 2.0), 38.8 ms median latency in Cloudflare testing. Cut from $0.09 to $0.038 on Oct 9, 2026 (3,455 neurons per M), with the hosted context window reduced from 64K to 24,576 tokens; self-hosted weights still support 256K. Input rate only. Weaker than Clef on out-of-scope and hallucination detection. | Cloudflare Workers AI | $0.000038 | $0.0380 |
| Gemini DecisionReleased Nov 11, 2026 with the Decisions API. Binary, categorical and rubric decisions over text, image, video, audio and PDF input, with zero output tokens. Shared input is billed once per request regardless of question count; each question adds tokens for its own instructions. No context caching, no Batch API. Free tier available. | Google (Gemini) | $0.000100 | $0.1000 |
| Cloudflare Clef-OmniReleased Oct 9, 2026. Decision model on a 30B MoE backbone (3B active) that takes audio (WAV/MP3) and video (MP4/WebM) as well as text and images; media is billed as input tokens. Input rate only (13,636 neurons per M). 64K context. | Cloudflare Workers AI | $0.000150 | $0.1500 |
| Tencent Hy4 flashTokenHub Singapore list price, generally available Nov 2026. 220B total / ~12B active MoE (63.5B Engram table), text and image input, 1M context. Open weights under the Tencent Hy License. OpenRouter lists the Tencent endpoint at 50% off ($0.035 / $0.0015 cached / $0.1405 out), FP8. Reasoning on by default (high); thinking bills as output. | Tencent (Hy, TokenHub) | $0.000211 | $0.2105 |
| Cloudflare ClefReleased Oct 1, 2026. 27B decision model (Qwen3.8-27B base, Apache 2.0). Returns probabilities for typed questions instead of text, and Workers AI lists an input rate only (21,818 neurons per M). 65,536-token context, up to 4 images per request. 10,000 free neurons per day. | Cloudflare Workers AI | $0.000240 | $0.2400 |
| GLM-4.7-FlashX | Z.ai (GLM) | $0.000270 | $0.2700 |
| Mercury 3 (launch rate)Released Oct 19, 2026. Diffusion LLM, 1M context, 131,072 max output. 50% launch discount with no published end date; list price $0.20 in / $0.02 cached / $0.70 out. Same rate across the full window. Reasoning tokens bill as output. Prefix caching is automatic with no documented TTL. 100M free tokens per new account. | Inception (Mercury) | $0.000275 | $0.2750 |
| GPT-4.1 nano | OpenAI | $0.000300 | $0.3000 |
| Gemini 2.5 Flash-Lite | Google (Gemini) | $0.000300 | $0.3000 |
| GPT-6 LunaReleased Sep 22, 2026 as OpenAI's most efficient tier for high-volume tasks. 1.05M context. Cache writes $0.125. Same 2x input / 1.5x output penalty above 272K input tokens. | OpenAI | $0.000350 | $0.3500 |
| Claude Haiku 5.5Released Oct 7, 2026. Rates shown are for prompts up to 100,000 tokens (cached tokens count). Over 100K the whole request bills at $0.50 in / $0.05 cache read / $0.625 cache write (5 min) / $2.50 out. Cache writes $0.125 (5 min) / $0.20 (1 hour) under the line. 1M context, 128K max output. Batch $0.05/$0.25 under 100K. | Anthropic (Claude) | $0.000350 | $0.3500 |
| Muse EmberRates for requests up to 200K input tokens (cached tokens count). Over 200K the whole request bills $0.30 in / $0.012 cached / $1.50 out. No cache-write fee (automatic prefix caching). Standard mode only, no Contributor variant. 1,048,576 context, 524,288 max output. Reasoning effort defaults to max; thinking bills as output. Web search $2.50 per 1,000 queries. | Meta (Muse) | $0.000350 | $0.3500 |
| Tencent Hy3TokenHub Singapore list price. 295B total / 21B active MoE, native 256K context. | Tencent (Hy, TokenHub) | $0.000396 | $0.3960 |
| GLM-5.3-FlashList price, now in effect. The 50% launch promo ($0.075 in / $0.25 out / $0.015 cached) ended at 24:00 on Sep 9, 2026 (UTC+8). 320B-A18B MIT-licensed open weights, 1M context. | Z.ai (GLM) | $0.000400 | $0.4000 |
| NVIDIA Nemotron 3.5 Super VL (Together AI)NVIDIA open-weights model released Oct 15, 2026: 120B total / 12B active hybrid Mamba-2 MoE, text+image+video input, up to 1M context (most hosts serve 256K), OpenMDW-1.1 license. Rates are Together AI serverless; DeepInfra lists the same $0.15 / $0.02 cached / $0.50. Reasoning is on by default and bills as output. | Together AI (open models) | $0.000400 | $0.4000 |
| GPT-4o mini | OpenAI | $0.000450 | $0.4500 |
| MiniMax M3.1 FlashReleased Oct 19, 2026. Flat price across the 1M context, no time-of-day or long-prompt tier. Thinking is always on and effort defaults to max; thinking tokens bill as output. Prompt cache applies from 512 input tokens. Priority tier not supported. | MiniMax (M3, Hailuo) | $0.000450 | $0.4500 |
| DeepSeek V4.1 Flash (deepseek-flash)Off-peak rate. Peak (01:00-04:00 and 06:00-10:00 UTC, weekdays): $0.30 in / $0.006 cached / $1.20 out per 1M. Model name deepseek-flash, which serves DeepSeek-V4.1-Flash-1017 since Oct 17, 2026 (price unchanged); legacy deepseek-v4-flash names are served by it at this price. | DeepSeek | $0.000450 | $0.4500 |
| Mistral Small 4 | Mistral | $0.000450 | $0.4500 |
| Grok 4 Fast | xAI (Grok) | $0.000450 | $0.4500 |
| Ripple-65B Preview (Together AI)Ricursive Intelligence open-weights model released Nov 4, 2026: 65B dense, 1M context, text only, Apache 2.0, tuned for agentic coding (80.52 Terminal-Bench 2.1 self-reported). Rates are Together AI serverless; Ricursive also lists GMI Cloud, OpenRouter and Fireworks as hosts. | Together AI (open models) | $0.000500 | $0.5000 |
| Mercury 3 (list rate)Regular Mercury 3 price once the launch discount ends (no end date announced as of Oct 21, 2026). | Inception (Mercury) | $0.000550 | $0.5500 |
| Mercury 2.5 (retired)Retired: closed to new users from Oct 19, 2026, and existing-user access ended Nov 15, 2026. Rates kept for historical costing. 260K context. | Inception (Mercury) | $0.000575 | $0.5750 |
| LFM2.5-24B-A2BReleased Oct 13, 2026 on Liquid Console. 24B total / 2.45B active MoE, 131K context, reasoning always on (thinking bills as output). Open weights under the LFM Open License v1.0 (commercial use only under $10M annual revenue). | Liquid AI (LFM) | $0.000600 | $0.6000 |
| Particle-1Released Oct 28, 2026: DeepSeek V4.1 Flash post-trained (LoRA + RL) to use about 45% fewer tokens. Peak (standard) rate, 04:00-20:30 America/New_York. Off-peak 20:30-04:00 NY is 50% off ($0.125 / $0.015 / $0.50). Flex tier another 50% off. Particle also hosts DeepSeek V4.1 Flash at the same rates. 1,048,576-token context, 131,072 max output; reasoning on by default and bills as output. API only, no open weights. | Particle AI | $0.000750 | $0.7500 |
| Step 3.7 FlashStepFun high-speed multimodal reasoning model with low/medium/high reasoning effort. Cache writes bill at the input rate. | StepFun (Step) | $0.000775 | $0.7750 |
| GPT-5.6 LunaCheapest GPT-5.6 tier (nano). | OpenAI | $0.000800 | $0.8000 |
| Inkling 2 Small (Together AI)Thinking Machines Lab open-weights model released Nov 4, 2026: 594B total / 17B active MoE, text and image input, 1M context, Apache 2.0. Rates are Together AI serverless; caching is automatic with no write fee, entries last about an hour best-effort. Cloudflare Workers AI lists the same input/output rate but $0.10 cached. | Together AI (open models) | $0.000800 | $0.8000 |
| Inkling 2 Small (Cloudflare Workers AI)Model @cf/thinkingmachines/inkling-2-small. Same $0.30/$1.00 as Together but cached input is $0.10 (Together $0.03). Workers Paid plan or AI Gateway credits required. Send x-session-affinity for cache hits. Reasoning levels none to max, default high. | Cloudflare Workers AI | $0.000800 | $0.8000 |
| GPT-5.4 nano | OpenAI | $0.000825 | $0.8250 |
| MiniMax M3Permanent 50% off list ($0.60/$2.40). Up to 512K input; above 512K: $0.60 in / $0.12 cached / $2.40 out per 1M. Priority tier is 1.5x. | MiniMax (M3, Hailuo) | $0.000900 | $0.9000 |
| GLM-5.3-FlashX-Legal (GLM-Legal)Legal-domain variant of GLM-5.3-FlashX, announced Oct 12, 2026. Same rates as GLM-5.3-FlashX. Cache storage free for a limited time. 1M context, 128K max output. Launch blog says API access is via a beta application. | Z.ai (GLM) | $0.000995 | $0.9950 |
| GLM-5.3-FlashXFaster GLM-5.3-Flash serving (about 200 tokens/s per Z.ai). Not on the GLM Coding Plan yet. | Z.ai (GLM) | $0.000995 | $0.9950 |
| Reflection Beam 1.0 (Together AI)Reflection open-weights model, weights released Oct 16, 2026: 501B total / 23B active MoE, 1M context, 128K max output, text only, Apache 2.0. Rates are Together AI serverless; Baseten lists $1.30 in / $0.13 cached / $4.30 out. Reasoning is always on (lowest effort: low) and reasoning tokens bill as output. | Together AI (open models) | $0.001000 | $1.00 |
| GPT-4.1 mini | OpenAI | $0.001200 | $1.20 |
| Mistral Large 3 | Mistral | $0.001250 | $1.25 |
| Qwen3.8-27B (DeepInfra)Alibaba Qwen3.8-27B open weights (27B dense, text+image, 262K context). DeepInfra list rates; its API also flags a 25% discount ($0.15 / $0.0375 cached / $1.875) with no published end date. Thinking bills as output. Base model for the harness-hub Hermes/pi/OpenCode LoRA adapters, which DeepInfra does not serve. | DeepInfra (open models) | $0.001450 | $1.45 |
| RadixArk DaisyRose-27B (DeepInfra)RadixArk open-weights model released Nov 18, 2026: RL-only fine-tune of Qwen3.8-27B (27.8B dense, text+image input, 262K context, Apache 2.0). DeepInfra list rates, identical to its Qwen3.8-27B listing; DeepInfra currently applies a 25% discount ($0.15 / $0.0375 cached / $1.875) with no published end date. Default reasoning effort is xhigh and thinking bills as output. | DeepInfra (open models) | $0.001450 | $1.45 |
| Gemini 2.5 Flash | Google (Gemini) | $0.001550 | $1.55 |
| DeepSeek V4 ProOff-peak rate (DeepSeek-V4-Pro-0813). Peak (01:00-04:00 and 06:00-10:00 UTC, weekdays): $1.32 in / $0.044 cached / $3.96 out per 1M. | DeepSeek | $0.001650 | $1.65 |
| Mistral Large 4 (preview)Public preview from Oct 6, 2026 at half the list price ($1.36 in / $0.14 cached / $4.18 out); no end date published. 1.05T total / 52B active MoE, 1M context, image input. Open weights promised for end of Oct 2026. | Mistral | $0.001725 | $1.72 |
| Gemini 3 Flash | Google (Gemini) | $0.002000 | $2.00 |
| Grok Build 0.1256K context. Above 200K prompt tokens: $2 in / $0.40 cached / $4 out. | xAI (Grok) | $0.002000 | $2.00 |
| Tencent Hy4TokenHub Singapore list price, generally available Nov 2026 (same as Hy4 Preview). Text and image input, computer use, 1M context. OpenRouter lists the Tencent endpoint at 50% off ($0.417 / $0.021 cached / $1.2505 out), FP4. Reasoning on by default at high effort; thinking bills as output. Model id hy4, base URL tokenhub-intl.tencentcloudmaas.com/v1. | Tencent (Hy, TokenHub) | $0.002084 | $2.08 |
| Step 5 PreviewReleased Oct 8, 2026. 600B total / 27B active MoE, 1M context, 64K max output, image and video input. No separate cache-write charge (writes bill at the $1.00 miss rate). Cache is automatic above 256 tokens and cannot be pinned; misses bill at 10x the hit rate. Reasoning tokens bill as output. Open weights due Oct 15, 2026. | StepFun (Step) | $0.002350 | $2.35 |
| Grok 4.31M context. Above 200K prompt tokens: $2.50 in / $0.40 cached / $5 out. 20% batch discount available. | xAI (Grok) | $0.002500 | $2.50 |
| Gemini 3.8 FlashLaunched Sep 2, 2026. Introductory rate through Dec 31, 2026; $1.50/$7.50 from Jan 1, 2027. Batch and Flex are half these rates. Output includes thinking tokens. | Google (Gemini) | $0.002625 | $2.62 |
| Gemini 3.7 Flash (deprecated)Deprecated Oct 8, 2026; API requests are routed to Gemini 3.8 Flash. Introductory rate through Dec 31, 2026; $1.50/$7.50 from Jan 1, 2027. Output includes thinking tokens. | Google (Gemini) | $0.002625 | $2.62 |
| Gemini 3.6 FlashLaunched Jul 2026. Same introductory rate as 3.8 Flash through Dec 31, 2026; $1.50/$7.50 from Jan 1, 2027. Output includes thinking tokens. | Google (Gemini) | $0.002625 | $2.62 |
| Kimi K2.7 Code262,144-token context, thinking forced on. K2 series closed to newly registered users from Oct 31, 2026 and retiring by end of Dec 2026. | Moonshot AI (Kimi) | $0.002950 | $2.95 |
| GPT-5.4 mini | OpenAI | $0.003000 | $3.00 |
| Muse Spark 1.3Standard mode. Contributor mode (muse-spark-1.3-contributor) bills $0.10 in / $0.002 cached / $0.20 out in exchange for letting Meta train on your prompts and outputs. 1M context, no long-context premium. | Meta (Muse) | $0.003375 | $3.38 |
| Muse Spark Open (Together AI)Meta open-weights model released Oct 15, 2026: 816B total / 42B active MoE, 1M context, text+image+video+audio input. Not on Meta Model API; rates are Together AI serverless, same as Muse Spark 1.3 Standard. Reasoning effort defaults to xhigh on the model card, and thinking bills as output. Not every host caches: check cached_tokens. | Together AI (open models) | $0.003375 | $3.38 |
| GPT-6.1 TerraReleased Oct 26, 2026 for visual reasoning, computer use and writing. Half of GPT-6.1 Sol on every rate. Cache writes $1.25 (30-minute) or $2.50 (12-hour, Responses API). 1.05M context, 128K max output. Above 272K input tokens: 2x input and cache rates, 1.5x output. Batch/Flex 50% off. Tool calling needs the Responses API. | OpenAI | $0.003500 | $3.50 |
| Claude Haiku 4.5 | Anthropic (Claude) | $0.003500 | $3.50 |
| GLM-5.3 | Z.ai (GLM) | $0.003600 | $3.60 |
| GLM-5.2 | Z.ai (GLM) | $0.003600 | $3.60 |
| Qwen4-MaxReleased Nov 16, 2026 on Alibaba Cloud Model Studio (International, Singapore). One tier up to 1M input tokens, same rate thinking or not; thinking bills as output. Cache writes $1.875 (5 min) / $3 (1 hour); reads $0.075 explicit or implicit. Implicit cache hits are not guaranteed. No batch discount (batch not supported). 1M free tokens for 90 days in Singapore. | Alibaba (Qwen, Wan) | $0.003750 | $3.75 |
| Grok 4.7Released Sep 21, 2026 at the same price as Grok 4.6. 500K context. Above 200K prompt tokens the whole request bills at $4 in / $1 cached / $12 out. | xAI (Grok) | $0.005000 | $5.00 |
| Grok 4.6500K context, configurable reasoning. Above 200K prompt tokens: $4 in / $1 cached / $12 out. | xAI (Grok) | $0.005000 | $5.00 |
| Grok 4.5Above 200K prompt tokens: $4 in / $0.60 cached / $12 out. | xAI (Grok) | $0.005000 | $5.00 |
| Gemini 4 HydrogenGA Nov 12, 2026; Google's recommended upgrade from Gemini 3.8 Flash. Flat rate across the 1,048,576-token unified window, no introductory end date. Implicit caching only (95% off cached input, 4,096-token minimum), no storage fee. Batch/Flex $0.75/$0.0375/$3.75; Priority $2.70/$0.135/$13.50. Output includes thinking tokens (default thinking_level high). On the free tier. Invite-only Contributor tier $0.75/$0.0375/$3.75. | Google (Gemini) | $0.005250 | $5.25 |
| Gemini 3.8 Flash (from Jan 1, 2027)Standard rate after the introductory period ends on Dec 31, 2026. Explicit cache storage $1.00/1M tokens per hour. Batch/Flex $0.75/$0.075/$3.75. | Google (Gemini) | $0.005250 | $5.25 |
| Mistral Medium 3.5 | Mistral | $0.005250 | $5.25 |
| GPT-4.1 | OpenAI | $0.006000 | $6.00 |
| Gemini 3.5 Flash (deprecated)Deprecated Oct 8, 2026; API requests are routed to Gemini 3.6 Flash. | Google (Gemini) | $0.006000 | $6.00 |
| Gemini 2.5 ProHigher rate ($2.50/$15) above 200k input tokens. | Google (Gemini) | $0.006250 | $6.25 |
| GPT-6.2 SolReleased Nov 17, 2026 for everyday coding and agents. Same rates as GPT-6.1 Sol. Cache writes $2.50 (30-minute) or $5 (12-hour). 1.05M context, 922K max input, 128K max output. Above 272K input tokens: $4 in / $0.20 cached / $15 out. Batch 50% off; Responses API background requests 30% off (2h) or 40% off (8h), beta. No Flex. Tool calling needs the Responses API; reasoning effort none is rejected. | OpenAI | $0.007000 | $7.00 |
| GPT-6.1 SolReleased Sep 29, 2026. Same $2/$10 as GPT-6 Sol but cached input is $0.10, half of GPT-6 Sol. Cache writes $2.50. 1.05M context, 128K max output. Above 272K input tokens: $4 in / $0.20 cached / $5 cache write / $15 out. Tool calling needs the Responses API. | OpenAI | $0.007000 | $7.00 |
| GPT-6 SolReleased Sep 22, 2026 for complex coding and agentic workflows. 1.05M context, 128K max output. Cache writes $2.50. Prompts above 272K input tokens are billed at 2x input and cache rates and 1.5x output for the whole request. | OpenAI | $0.007000 | $7.00 |
| Claude Sonnet 5.5Same base rate as Sonnet 5. Cache reads cut from $0.20 to $0.10 on Oct 7, 2026. Cache writes $2.50 (5 min) / $4 (1 hour). Batch API $1 in / $5 out. Full 1M context at standard rates. | Anthropic (Claude) | $0.007000 | $7.00 |
| Claude Sonnet 5Still $2/$10 on the official pricing table as of Sep 1, 2026, past the original Aug 31 intro cutoff. | Anthropic (Claude) | $0.007000 | $7.00 |
| Gemini 4 ArgonGA Oct 13, 2026. Introductory rate through Nov 30, 2026; $4/$0.20/$20 from Dec 1, 2026. Implicit caching only (no explicit cachedContents), no separate cache-write fee. Same rate across the 1,048,576-token window. Batch/Flex half; Priority $3.60/$18 ($7.20/$36 from Dec 1). Output includes thinking tokens. Not on free tier. Invite-only Contributor tier (prompts used for training): $1/$0.05/$5. | Google (Gemini) | $0.007000 | $7.00 |
| Gemini 4 CarbonGA Nov 10, 2026; Google's most capable Gemini 4 reasoning model. Introductory rate through Nov 30, 2026; $4/$0.20/$20 from Dec 1, 2026 (same schedule as Gemini 4 Argon). Implicit caching only. Output includes thinking tokens. 1,048,576 context, up to 1M output with long decode. Not on free tier. No Contributor tier, unlike Argon. | Google (Gemini) | $0.007000 | $7.00 |
| Kimi K3.1 ProReleased Oct 24, 2026; open weights promised by Nov 4. Flat rate across the 1,048,576-token context, no long-context tier. Cache writes $2 (5 min, default) / $4 (1 hour, opt in via prompt_cache_options.ttl). Always reasons; reasoning_effort low/high/max, default max; thinking bills as output. Needs a $1 minimum top-up. | Moonshot AI (Kimi) | $0.007000 | $7.00 |
| GPT-4o | OpenAI | $0.007500 | $7.50 |
| Cohere Command A | Cohere | $0.007500 | $7.50 |
| GPT-5.6 TerraBalances intelligence and cost (mini tier). GPT-6.1 Terra (Oct 26, 2026) costs less on every line: $1 in / $0.05 cached / $5 out. | OpenAI | $0.008000 | $8.00 |
| Gemini 3.1 ProHigher rate ($4/$18) above 200k input tokens. | Google (Gemini) | $0.008000 | $8.00 |
| GPT-5.4 | OpenAI | $0.0100 | $10.00 |
| Claude Sonnet 4.6 | Anthropic (Claude) | $0.0105 | $10.50 |
| Gemini 4 NeonGA Nov 18, 2026; sits between Hydrogen and Carbon. Flat rate across the 1,048,576-token unified window, no introductory price. Implicit caching only (95% off cached input, 4,096-token minimum). Batch/Flex $1.50/$0.075/$7.50; Priority $5.40/$0.27/$27. Output includes thinking tokens (default thinking_level high, supports xhigh). 65,536-token synchronous output cap, long decode to 1M. Paid tier only. | Google (Gemini) | $0.0105 | $10.50 |
| Kimi K3Previous generation, superseded by K3.1 Pro on Oct 24, 2026. Cache writes $3 (5 min) / $6 (1 hour). 1,048,576-token context. | Moonshot AI (Kimi) | $0.0105 | $10.50 |
| Grok 4 | xAI (Grok) | $0.0105 | $10.50 |
| GPT-5.6 SolTop GPT-5.6 tier, superseded by GPT-6 Sol on Sep 22, 2026 at half these rates. Promotional pricing until Nov 30, 2026 per the OpenAI pricing page (dropped 20%+ on Aug 21, 2026). | OpenAI | $0.0140 | $14.00 |
| Claude Opus 5.5Released Sep 22, 2026; first of the Claude 5.5 family. Anthropic still recommends it as the default model after Fable 5.2 launched. 1M context, 128K max output. Cache writes $5 (5 min) / $8 (1 hour). Fast mode $8/$40 for up to 2.5x speed. Anthropic's "40% cheaper than Opus 5" figure combines this 20% price cut with fewer tokens used per task, so per-token savings alone are 20%. | Anthropic (Claude) | $0.0140 | $14.00 |
| Gemini 4 Carbon (from Dec 1, 2026)Standard rate after the introductory period ends on Nov 30, 2026. Implicit caching only. Default thinking_level medium, caps at high. | Google (Gemini) | $0.0140 | $14.00 |
| Gemini 4 Argon (from Dec 1, 2026)Standard rate after the introductory period ends on Nov 30, 2026. Batch/Flex $2/$0.10/$10. | Google (Gemini) | $0.0140 | $14.00 |
| Kimi K3.1 Pro Highspeed2-3x the speed of K3.1 Pro per Moonshot. Cache writes $4 (5 min) / $8 (1 hour). 1,048,576-token context. | Moonshot AI (Kimi) | $0.0140 | $14.00 |
| Muse WonderReleased Oct 12, 2026 (preview). Same $4/$20/$0.20 as Claude Opus 5.5. No separate cache-write charge and no long-context premium across the 1,048,576-token window. Caching is automatic prefix caching (prompt_cache_key optional, 24h retention is a hint only). Web search grounding $2.50 per 1,000 queries. Standard mode only on the API; Muse Wonder Full is Muse Code subscription only. | Meta (Muse) | $0.0140 | $14.00 |
| Claude Opus 5Superseded by Opus 5.5 on Sep 22, 2026. 1M context at no premium. Cache writes $6.25. Fast Mode $10/$50. | Anthropic (Claude) | $0.0175 | $17.50 |
| Claude Opus 4.8 | Anthropic (Claude) | $0.0175 | $17.50 |
| GPT-5.5 | OpenAI | $0.0200 | $20.00 |
| GPT-6.2 AstraReleased Nov 17, 2026 for demanding reasoning and coding. 20% under GPT-6 Astra on input and output, cached input $0.40 (GPT-6 Astra: $1). Cache writes $10 (30-minute) or $20 (12-hour). 1.05M context, 922K max input, 128K max output. Above 272K input tokens: $16 in / $0.80 cached / $60 out. Batch 50% off; Responses API background requests 30% off (2h window) or 40% off (8h window), beta. No Flex. Ultrafast 3x Standard through Feb 28, 2027, then 6x. Tool calling needs the Responses API; reasoning effort none is rejected. | OpenAI | $0.0280 | $28.00 |
| Claude Fable 5.2Released Nov 10, 2026; Anthropic's most capable generally available model. Down from $10/$50 on Fable 5.1. Cache writes $10 (5 min) / $16 (1 hour); cache read is 0.025x input. Fast mode $16/$80 for up to 2.5x speed (no Batch). Batch $4/$20. 1M context at standard rates, 128K max output. inference_geo us adds 1.1x. | Anthropic (Claude) | $0.0280 | $28.00 |
| Claude Mythos 5.2Same underlying model and price as Fable 5.2 with lighter cyber/bio safeguards; access through Anthropic's Cyber and Life Sciences verification programs. | Anthropic (Claude) | $0.0280 | $28.00 |
| GPT-6 AstraReleased Sep 3, 2026; GPT-6.2 Astra (Nov 17, 2026) costs $8 / $0.40 cached / $40. Standard rate; Fast mode costs 2x for up to 2x speed. Cache writes $12.50. Long-context requests bill at $20 in / $2 cached / $75 out (2x input, 1.5x output). | OpenAI | $0.0350 | $35.00 |
| Claude Fable 5.1Sep 1, 2026. Same base price as Fable 5; cache reads cut from $1 to $0.25/MTok. Superseded by Fable 5.2 ($8/$40) on Nov 10, 2026. | Anthropic (Claude) | $0.0350 | $35.00 |
| Claude Mythos 5.1Same capabilities and price as Fable 5.1; invitation only (Project Glasswing). | Anthropic (Claude) | $0.0350 | $35.00 |
| Claude Fable 5 | Anthropic (Claude) | $0.0350 | $35.00 |
| GPT-5.6 CyberHighest-capability GPT-5.6 tier. | OpenAI | $0.0500 | $50.00 |
| Claude Opus 4.1Deprecated. | Anthropic (Claude) | $0.0525 | $52.50 |
| GPT-5.5 Pro | OpenAI | $0.1200 | $120.00 |
Official pricing pages
Your inputs stay on this device. Processing happens entirely in your browser.
The headline price is per million tokens, and that is what fools people
Almost every language model API bills by the token, not by the request. A token is a chunk of text — roughly four characters, or about three-quarters of an English word — and both the prompt you send and the completion the model returns are counted. Prices are quoted per million tokens, which makes the numbers look trivially small: $2.50 per million sounds like nothing until you notice a single retrieval-augmented chat turn can carry 20,000 tokens of context, and that you are serving it tens of thousands of times a day. This calculator exists to turn that per-million rate into the two figures that actually drive a budget — cost per request, and cost across your real monthly volume — and to line every model up in one sorted table so the cheap option for your specific token mix is obvious rather than buried in seven different pricing pages.
Output is the line item that bites
The single most important thing to understand is that input and output tokens are priced separately, and output almost always costs several times more because generating text is far more compute-intensive than reading it. GPT-5.4 is $2.50 per million in and $15 out; Claude Opus 4.8 is $5 in and $25 out; even DeepSeek V4 Flash keeps the 2× gap at $0.14 and $0.28. The practical consequence is that a model with a cheap input rate can still lose on total cost if your workload is generation-heavy. A summariser that reads 10,000 tokens and writes 200 is dominated by input; a code generator that reads 500 and writes 4,000 is dominated by output. Look at the column that matches your traffic, not the one in the headline.
Prompt caching is the biggest discount most teams miss
When you send the same large context on every call — a long system prompt, a fixed knowledge-base document, or a growing conversation history — providers like OpenAI and Anthropic will bill the repeated portion at roughly a tenth of the normal input rate on a cache hit. GPT-5.4 drops from $2.50 to $0.25 per million on cached input; Claude Opus 4.8 from $5 to $0.50. For an agent that resends a 15,000-token instruction block on every one of thousands of turns, that alone can cut the input bill by the better part of an order of magnitude. The text tab has a dedicated cached-tokens field so you can see the split between fresh and cached input reflected in the estimate rather than guessing at it.
Image, video, and embeddings are priced on completely different units
Not every modality is a token. Image APIs mostly charge a flat rate per generated image — FLUX.1 Schnell at about $0.003, Gemini 2.5 Flash Image at $0.039, Ideogram v3 at $0.09 — a 30× spread that matters enormously at volume. Video is billed per second of output, from Veo 3.1 Lite at $0.05 to Veo 3.1 Standard at $0.40, so a single 60-second clip ranges from $3 to $24 depending only on the model. A few image models, such as OpenAI's GPT Image 2, are priced by image tokens rather than per image; because this tool has no image-token input to price them honestly, they are deliberately left out of the per-image comparison rather than shown as a misleading zero. Embeddings are the cheapest line on any AI bill — OpenAI's text-embedding-3-small is $0.02 per million tokens — which is why embedding a whole corpus for search usually costs less than a single day of chat traffic.
How to actually cut the bill, and where these numbers stop
The cheapest model is rarely the right default and the flagship is rarely necessary. The highest-leverage move is to route by difficulty: send classification, extraction, and simple summarisation to a mini or nano tier, Gemini Flash-Lite, or DeepSeek, and reserve GPT-5.5, Claude Opus, or Gemini Pro for genuine reasoning and high-stakes output. Because the gap between tiers is often 10× to 50×, shifting routine traffic downward usually saves more than any other single change. Estimate before you build: put your realistic average token counts and monthly volume into the calculator, compare the top few candidates, and you will frequently find two models of similar quality that differ several-fold in cost. What this tool deliberately does not model is everything beyond the base per-token rate — batch tiers (commonly around 50% off), regional and data-residency endpoints, fine-tuning surcharges, and server-side tools like web search all change the final invoice, and every provider's live pricing page is linked in the tool so you can confirm the current figure before you commit budget. The prices here were gathered in November 23, 2026 and are a planning aid, not a contract.
How to Use
Pick a modality: text/chat, image, video, or embeddings.
Choose a model, then enter your token counts (or images/seconds) and number of requests.
See cost per request and total, plus a comparison table of every model sorted cheapest-first.
Cross-check the number on the provider’s official pricing page before you rely on it.
Features
Common Questions
About AI API Cost Calculator
Estimate and compare the cost of AI API calls across every popular provider and model. Enter input and output token counts to see the cost per request and monthly total for OpenAI GPT, Anthropic Claude, Google Gemini, DeepSeek, Mistral, xAI Grok, and Cohere. Includes prompt-cache pricing (cached input billed at a fraction of the normal rate), image generation cost per image, video generation cost per second, and embedding cost per token, with a comparison table sorted cheapest-first and optional USD/INR display. All calculations run in your browser.
Also known as: llm api cost, token cost calculator, openai pricing calculator, ai api pricing, gpt cost per token, claude pricing calculator, gemini api cost, deepseek pricing, prompt caching cost, embedding cost calculator, image generation api cost, video generation api cost, compare llm prices, ai api price comparison.
Processing Note
AI API Cost Calculator runs in your browser, so the input you enter is processed locally on this page and is not uploaded to a ToolMintX account.
Tool Limits
IT tools provide quick diagnostics and transformations. They cannot see every private network, deployment setting, proxy, firewall, or production edge case.
Explore More
AI VRAM Calculator
See which local LLMs fit on your GPU, from RTX 3060 and RTX 5090 to H100, H200 and B200, the max context each holds, and a full VRAM breakdown.
Client-sideAPI Key and .env Secret Generator
Generate secure .env secrets plus selectable Hugging Face, OpenAI, JWT, database, and webhook variables.
Client-sideSubnet Calculator
IPv4 subnet calculator: network and broadcast address, subnet and wildcard mask, usable host range, and host count from any IP and CIDR prefix.
Client-sideIPv4 to IPv6 Converter
Convert an IPv4 address into its IPv4-mapped IPv6 form, 6to4 prefix, and mixed notation, in canonical RFC 5952 hex.
Client-side