Skip to content

AI Model Pricing: LLM API Prices Compared per 1M Tokens

← All free AI tools

LLM API pricing comparison · 2026

AI Model Pricing: 87 LLM APIs Compared per 1M Tokens

AI model pricing right now runs from $0.02 per 1M input tokens (Llama 3.1 8B on DeepInfra) up to $30 input and $180 output for GPT-5.5 Pro. Most production work sits between $0.10 and $5 per 1M input tokens. If you want one sensible default, GPT-6.2 Sol, Claude Sonnet 5.5 and Gemini 4 Carbon all cost $2 input and $10 output per 1M tokens today, but Gemini 4 Carbon moves to $4 and $20 on Dec 1, 2026. I put every model I could verify into one table below, with cached input, context window, max output, capabilities, release date, status and a link to the official price page on every row.

Prices checked 28 Nov 2026 on official provider pages · USD per 1M tokens · standard tier, text

  • 87models in the table
  • 12providers and hosts
  • 77current or preview models
  • 100%rows linked to an official price page

Cheapest overall

Llama 3.1 8B on DeepInfra

$0.02 input, $0.04 output per 1M tokens. Text only, 128K context.

Best value default

GPT-6.2 Sol or Claude Sonnet 5.5

$2 input, $10 output, 1M context, vision and tool calling on both.

Cheapest small model, 1M context

GPT-6 Luna or Claude Haiku 5.5

$0.10 input, $0.50 output. Gemini 2.5 Flash-Lite is $0.10 / $0.40.

AI Model Pricing at a Glance

I built this page because every pricing page I found had the same gaps. Some list 40 models and skip the cached price. Others show a context window but not the max output, or keep Claude 3 Opus and Gemini 1.5 in the table months after you can no longer build on them. So I went to the official price page of every provider, one by one, and wrote down what they publish today.

Here is what stood out on 28 Nov 2026:

  • The top tier costs $8 input and $40 output per 1M tokens. That is GPT-6.2 Astra and Claude Fable 5.2. GPT-5.5 Pro is the outlier at $30 / $180.
  • The middle of the market has settled on $2 input and $10 output. GPT-6.2 Sol, GPT-6.1 Sol, Claude Sonnet 5.5, Claude Sonnet 5 and Gemini 4 Carbon (until Nov 30) all sit there. Grok 4.7 is $2 / $6.
  • Small models are close to free. GPT-6 Luna and Claude Haiku 5.5 are $0.10 / $0.50 with a 1M token context window.
  • Cache hits are where the savings hide. GPT-6.2 Sol charges $0.10 per 1M cached tokens against $2 for fresh input, a 95% cut.
  • Several prices are about to change. I flag them on each row and in the price changes section below.

LLM API Pricing Comparison Table

Prices are US dollars per 1 million tokens on each provider’s standard pay-as-you-go tier, checked on 28 Nov 2026. Sort any column, filter by provider or capability, or search a model ID. A blank cell means the provider does not publish that number on an official page, so I left it empty instead of guessing. The price link on each row takes you to the source.

Must support:

Showing 87 models

AI model pricing per 1M tokens, checked 28 Nov 2026. Cached = price for cache hits or cached input. Blended sort uses 3 input tokens for every 1 output token.
CapabilitiesStatusOfficial price
OpenAIGPT-6.2 Astragpt-6.2-astraOver 272K input tokens: 2x input, 1.5x output.$8.00$0.40$40.001M128KVisionAudio not supportedToolsReasoningNov 17, 2026GAOpenAI pricing ↗
OpenAIGPT-6.2 Solgpt-6.2-solOver 272K input tokens: 2x input, 1.5x output.$2.00$0.10$10.001M128KVisionAudio not supportedToolsReasoningNov 17, 2026GAOpenAI pricing ↗
OpenAIGPT-6.1 Terragpt-6.1-terraOver 272K input tokens: 2x input, 1.5x output.$1.00$0.05$5.001M128KVisionAudio not supportedToolsReasoningOct 26, 2026GAOpenAI pricing ↗
OpenAIGPT-6.1 Solgpt-6.1-solOver 272K input tokens: 2x input, 1.5x output.$2.00$0.10$10.001M128KVisionAudio not supportedToolsReasoningSep 29, 2026GAOpenAI pricing ↗
OpenAIGPT-6 Astragpt-6-astraOver 272K input tokens: 2x input, 1.5x output.$10.00$1.00$50.001M128KVisionAudio not supportedToolsReasoningSep 3, 2026GAOpenAI pricing ↗
OpenAIGPT-6 Solgpt-6-solOver 272K input tokens: 2x input, 1.5x output.$2.00$0.20$10.001M128KVisionAudio not supportedToolsReasoningSep 22, 2026GAOpenAI pricing ↗
OpenAIGPT-6 Lunagpt-6-lunaOver 272K input tokens: 2x input, 1.5x output.$0.10$0.01$0.501M128KVisionAudio not supportedToolsReasoningSep 22, 2026GAOpenAI pricing ↗
OpenAIGPT-5.6 Solgpt-5.6-solOpenAI says this promotional price runs until Nov 30, 2026. Over 272K input tokens: 2x input, 1.5x output.$4.00$0.40$20.001M128KVisionAudio not supportedToolsReasoningJul 9, 2026GAOpenAI pricing ↗
OpenAIGPT-5.6 Terragpt-5.6-terraOver 272K input tokens: 2x input, 1.5x output.$2.00$0.20$12.001M128KVisionAudio not supportedToolsReasoningJul 9, 2026GAOpenAI pricing ↗
OpenAIGPT-5.6 Lunagpt-5.6-lunaOver 272K input tokens: 2x input, 1.5x output.$0.20$0.02$1.201M128KVisionAudio not supportedToolsReasoningJul 9, 2026GAOpenAI pricing ↗
OpenAIGPT-5.5gpt-5.5Long-context rate from 272K input tokens: $10 / $45.$5.00$0.50$30.001M128KVisionAudio not supportedToolsReasoningApr 24, 2026GAOpenAI pricing ↗
OpenAIGPT-5.5 Progpt-5.5-proNo cached-input rate listed. Long context: $60 / $270.$30.00-$180.001M128KVisionAudio not supportedToolsReasoningApr 24, 2026GAOpenAI pricing ↗
OpenAIGPT-5.4gpt-5.4Long-context rate from 272K input tokens: $5 / $22.50.$2.50$0.25$15.001M128KVisionAudio not supportedToolsReasoningMar 5, 2026GAOpenAI pricing ↗
OpenAIGPT-5.4 minigpt-5.4-mini$0.75$0.075$4.50400K128KVisionAudio not supportedToolsReasoningMar 17, 2026GAOpenAI pricing ↗
OpenAIGPT-5.4 nanogpt-5.4-nanoMarked deprecated in the OpenAI model catalog.$0.20$0.02$1.25400K128KVisionAudio not supportedToolsReasoningMar 17, 2026DeprecatedOpenAI pricing ↗
OpenAIGPT-5.2gpt-5.2$1.75$0.175$14.00400K128KVisionAudio not supportedToolsReasoningDec 11, 2025GAOpenAI pricing ↗
OpenAIGPT-5gpt-5Marked deprecated in the OpenAI model catalog.$1.25$0.125$10.00400K128KVisionAudio not supportedToolsReasoningAug 7, 2025DeprecatedOpenAI pricing ↗
OpenAIGPT-5 minigpt-5-miniMarked deprecated in the OpenAI model catalog.$0.25$0.025$2.00400K128KVisionAudio not supportedToolsReasoningAug 7, 2025DeprecatedOpenAI pricing ↗
OpenAIGPT-5 nanogpt-5-nanoMarked deprecated in the OpenAI model catalog.$0.05$0.005$0.40400K128KVisionAudio not supportedToolsReasoningAug 7, 2025DeprecatedOpenAI pricing ↗
OpenAIGPT-4.1gpt-4.1Non-reasoning model. Marked deprecated in the OpenAI model catalog.$2.00$0.50$8.001M32.8KVisionAudio not supportedToolsReasoning not supported-DeprecatedOpenAI pricing ↗
OpenAIGPT-4o minigpt-4o-miniMarked deprecated in the OpenAI model catalog.$0.15$0.075$0.60128K16.4KVisionAudio not supportedToolsReasoning not supported-DeprecatedOpenAI pricing ↗
OpenAIchat-latestchat-latestPoints to the latest Instant model used in ChatGPT; OpenAI recommends the GPT-6.2 family for production.$5.00$0.50$30.00400K128KVisionAudio not supportedTools-Rolling aliasOpenAI pricing ↗
OpenAIvia Together AIgpt-oss-120bgpt-oss-120bTogether AI serverless price for OpenAI open-weight model.$0.15-$0.60131.1K-Vision not supportedAudio not supportedToolsReasoning-GATogether AI pricing ↗
AnthropicClaude Fable 5.2claude-fable-5-2Full 1M context at the standard rate.$8.00$0.20$40.001M128KVisionAudio not supportedToolsReasoningNov 9, 2026GAAnthropic pricing ↗
AnthropicClaude Mythos 5.2claude-mythos-5-2Offered to Project Glasswing participants only.$8.00$0.20$40.001M128KVisionAudio not supportedToolsReasoningNov 9, 2026RestrictedAnthropic pricing ↗
AnthropicClaude Opus 5.5claude-opus-5-5Anthropic says to start here for most workloads.$4.00$0.20$20.001M128KVisionAudio not supportedToolsReasoningSep 22, 2026GAAnthropic pricing ↗
AnthropicClaude Sonnet 5.5claude-sonnet-5-5$2.00$0.10$10.001M128KVisionAudio not supportedToolsReasoningSep 28, 2026GAAnthropic pricing ↗
AnthropicClaude Haiku 5.5claude-haiku-5-5Prompts over 100K tokens cost $0.50 input / $2.50 output.$0.10$0.01$0.501M128KVisionAudio not supportedToolsReasoningOct 7, 2026GAAnthropic pricing ↗
AnthropicClaude Fable 5.1claude-fable-5-1$10.00$0.25$50.001M128KVisionAudio not supportedToolsReasoningSep 1, 2026GAAnthropic pricing ↗
AnthropicClaude Fable 5claude-fable-5$10.00$1.00$50.001M128KVisionAudio not supportedToolsReasoningJun 9, 2026GAAnthropic pricing ↗
AnthropicClaude Opus 5claude-opus-5$5.00$0.50$25.001M128KVisionAudio not supportedToolsReasoningJul 24, 2026GAAnthropic pricing ↗
AnthropicClaude Sonnet 5claude-sonnet-5Intro price of $2 / $10 became the standard price on Aug 10, 2026. New tokenizer makes about 30% more tokens for the same text.$2.00$0.20$10.001M128KVisionAudio not supportedToolsReasoningJun 30, 2026GAAnthropic pricing ↗
AnthropicClaude Opus 4.8claude-opus-4-8$5.00$0.50$25.001M128KVisionAudio not supportedToolsReasoningMay 28, 2026GAAnthropic pricing ↗
AnthropicClaude Opus 4.7claude-opus-4-7$5.00$0.50$25.001M128KVisionAudio not supportedToolsReasoningApr 16, 2026GAAnthropic pricing ↗
AnthropicClaude Opus 4.6claude-opus-4-6$5.00$0.50$25.001M128KVisionAudio not supportedToolsReasoningFeb 5, 2026GAAnthropic pricing ↗
AnthropicClaude Sonnet 4.6claude-sonnet-4-6$3.00$0.30$15.001M128KVisionAudio not supportedToolsReasoningFeb 17, 2026GAAnthropic pricing ↗
AnthropicClaude Opus 4.5claude-opus-4-5-20251101Retirement date: Jan 22, 2027.$5.00$0.50$25.00200K64KVisionAudio not supportedToolsReasoningNov 24, 2025DeprecatedAnthropic pricing ↗
AnthropicClaude Sonnet 4.5claude-sonnet-4-5-20250929Retirement date: Nov 30, 2026.$3.00$0.30$15.00200K64KVisionAudio not supportedToolsReasoningSep 29, 2025DeprecatedAnthropic pricing ↗
AnthropicClaude Haiku 4.5claude-haiku-4-5-20251001$1.00$0.10$5.00200K64KVisionAudio not supportedToolsReasoningOct 15, 2025GAAnthropic pricing ↗
GoogleGemini 4 Carbongemini-4-carbonIntro price through Nov 30, 2026. From Dec 1: $4 / $20, cached $0.20.$2.00$0.10$10.001M65.5KVisionAudioToolsReasoningNov 10, 2026GAGoogle pricing ↗
GoogleGemini 4 Argongemini-4-argonIntro price through Nov 30, 2026. From Dec 1: $4 / $20, cached $0.20.$2.00$0.10$10.001M65.5KVisionAudioToolsReasoningOct 13, 2026GAGoogle pricing ↗
GoogleGemini 4 Neongemini-4-neonImplicit caching only. Max output up to 1M with long decode.$3.00$0.15$15.001M65.5KVisionAudioToolsReasoningNov 18, 2026GAGoogle pricing ↗
GoogleGemini 4 Hydrogengemini-4-hydrogenHas a free tier on the Gemini API. Implicit caching only. Long-decode output up to 1M tokens.$1.50$0.075$7.501M65.5KVisionAudioToolsReasoningNov 12, 2026GAGoogle pricing ↗
GoogleGemini 3.8 Flashgemini-3.8-flashPrice through Dec 31, 2026. From Jan 1, 2027: $1.50 / $7.50.$0.75$0.075$3.751M65.5KVisionAudioToolsReasoningSep 2, 2026GAGoogle pricing ↗
GoogleGemini 3.6 Flashgemini-3.6-flashPrice through Dec 31, 2026. From Jan 1, 2027: $1.50 / $7.50.$0.75$0.075$3.751M65.5KVisionAudioToolsReasoningJul 21, 2026GAGoogle pricing ↗
GoogleGemini 3.5 Flash-Litegemini-3.5-flash-liteSame input price for text, image, video and audio.$0.30$0.03$2.501M65.5KVisionAudioToolsReasoningJul 21, 2026GAGoogle pricing ↗
GoogleGemini 3.1 Flash-Litegemini-3.1-flash-liteAudio input is $0.50.$0.25$0.025$1.501M65.5KVisionAudioToolsReasoningMay 7, 2026GAGoogle pricing ↗
GoogleGemini 3.1 Pro Previewgemini-3.1-pro-previewPrompts over 200K tokens: $4 / $18.$2.00$0.20$12.001M65.5KVisionAudioToolsReasoningFeb 19, 2026PreviewGoogle pricing ↗
GoogleGemini 3 Flash Previewgemini-3-flash-previewGoogle calls it a legacy Flash model. Audio input is $1.$0.50$0.05$3.001M65.5KVisionAudioToolsReasoningDec 17, 2025PreviewGoogle pricing ↗
GoogleGemini 2.5 Progemini-2.5-proFrom Dec 1, 2026 requests route to Gemini 3.8 Flash and bill at its rates. Prompts over 200K: $2.50 / $15.$1.25$0.125$10.001M65.5KVisionAudioToolsReasoningJun 17, 2025DeprecatedGoogle pricing ↗
GoogleGemini 2.5 Flashgemini-2.5-flashFrom Dec 1, 2026 requests route to Gemini 3.5 Flash-Lite and bill at its rates.$0.30$0.03$2.501M65.5KVisionAudioToolsReasoning-DeprecatedGoogle pricing ↗
GoogleGemini 2.5 Flash-Litegemini-2.5-flash-liteAudio input is $0.30.$0.10$0.01$0.401M65.5KVisionAudioToolsReasoningJul 22, 2025GAGoogle pricing ↗
xAIGrok 4.7grok-4.7Prompts at or over 200K tokens: $4 / $12 for the whole request.$2.00$0.50$6.00500K-VisionAudio not supportedToolsReasoningSep 2026GAxAI pricing ↗
xAIGrok 4.6grok-4.6Prompts at or over 200K tokens: $4 / $12.$2.00$0.50$6.00500K-VisionAudio not supportedToolsReasoningAug 2026GAxAI pricing ↗
xAIGrok 4.5grok-4.5Prompts at or over 200K tokens: $4 / $12.$2.00$0.30$6.00500K-VisionAudio not supportedToolsReasoningJul 2026GAxAI pricing ↗
xAIGrok 4.3grok-4.3Prompts at or over 200K tokens: $2.50 / $5.$1.25$0.20$2.501M-VisionAudio not supportedToolsReasoning-GAxAI pricing ↗
xAIGrok 4.20 Reasoninggrok-4.20-0309-reasoningPrompts at or over 200K tokens: $2.50 / $5.$1.25$0.20$2.501M-VisionAudio not supportedToolsReasoningMar 2026GAxAI pricing ↗
xAIGrok 4.20 Non-Reasoninggrok-4.20-0309-non-reasoningPrompts at or over 200K tokens: $2.50 / $5.$1.25$0.20$2.501M-VisionAudio not supportedToolsReasoning not supportedMar 2026GAxAI pricing ↗
xAIGrok 4.20 Multi-agentgrok-4.20-multi-agent-0309Prompts at or over 200K tokens: $2.50 / $5.$1.25$0.20$2.501M-VisionAudio not supportedToolsReasoningMar 2026GAxAI pricing ↗
MistralMistral Large 4mistral-large-4-0Multimodal with hybrid reasoning. Regional (EU) inference adds 10%.$0.70$0.07$2.101M-VisionAudio not supportedToolsReasoningOct 2026GAMistral pricing ↗
MistralMistral Small 4mistral-small-4-0-26-03Multimodal small model.$0.15-$0.60256K-VisionAudio not supportedToolsReasoningMar 2026GAMistral pricing ↗
MistralMinistral 3 (14B)ministral-3-14b-25-12$0.20-$0.20256K-Audio not supportedToolsDec 2025GAMistral pricing ↗
MistralMinistral 3 (8B)ministral-3-8b-25-12$0.15-$0.15256K-Audio not supportedToolsDec 2025GAMistral pricing ↗
MistralMinistral 3 (3B)ministral-3-3b-25-12$0.10-$0.10256K-Audio not supportedToolsDec 2025GAMistral pricing ↗
MistralCodestralcodestral-25-08Mistral coding model.$0.30-$0.90128K-Vision not supportedAudio not supportedToolsReasoning not supportedAug 2025GAMistral pricing ↗
DeepSeekDeepSeek V4.1 Flashdeepseek-flashPeak rate. Off-peak: $0.15 / $0.60, cache hit $0.003.$0.30$0.006$1.201M384KVisionAudio not supportedToolsReasoningSep 10, 2026GADeepSeek pricing ↗
DeepSeekDeepSeek V4 Prodeepseek-v4-proPeak rate. Off-peak: $0.66 / $1.98, cache hit $0.022.$1.32$0.044$3.961M384KVision not supportedAudio not supportedToolsReasoningAug 13, 2026GADeepSeek pricing ↗
Meta Llamavia DeepInfraLlama 4 Scout 17B-16ELlama-4-Scout-17B-16EDeepInfra serverless price. Meta open weights, so the price depends on the host.$0.10-$0.30320K-VisionAudio not supportedReasoning not supported-GADeepInfra pricing ↗
Meta Llamavia DeepInfraLlama 3.3 70B Instruct TurboLlama-3.3-70B-Instruct-TurboDeepInfra serverless price.$0.10-$0.32128K-Vision not supportedAudio not supportedReasoning not supported-GADeepInfra pricing ↗
Meta Llamavia DeepInfraLlama 3.1 8B Instruct TurboMeta-Llama-3.1-8B-Instruct-TurboDeepInfra serverless price. The cheapest text row on this page.$0.02-$0.04128K-Vision not supportedAudio not supportedReasoning not supported-GADeepInfra pricing ↗
AmazonNova 2 Liteamazon.nova-2-lite-v1:0Bedrock on-demand, global cross-Region rate. In-Region is about 10% higher.$0.30$0.075$2.501M64KVisionToolsReasoningDec 2, 2025GAAmazon pricing ↗
AmazonNova 2 Proamazon.nova-2-pro-previewBedrock on-demand, global cross-Region rate. In-Region is about 10% higher.$1.25-$10.00--VisionToolsReasoning-PreviewAmazon pricing ↗
AmazonNova Premieramazon.nova-premier-v1:0Bedrock on-demand, US East (N. Virginia).$2.50$0.625$12.50--VisionAudio not supportedTools-GAAmazon pricing ↗
AmazonNova Proamazon.nova-pro-v1:0Bedrock on-demand, US East (N. Virginia).$0.80$0.20$3.20300K10KVisionAudio not supportedToolsReasoning not supported-GAAmazon pricing ↗
AmazonNova Liteamazon.nova-lite-v1:0Bedrock on-demand, US East (N. Virginia).$0.06$0.015$0.24300K10KVisionAudio not supportedToolsReasoning not supported-GAAmazon pricing ↗
AmazonNova Microamazon.nova-micro-v1:0Text-only. Bedrock on-demand, US East (N. Virginia).$0.035$0.00875$0.14--Vision not supportedAudio not supportedToolsReasoning not supported-GAAmazon pricing ↗
Alibaba QwenQwen4 Maxqwen4-maxModel Studio, International (Singapore). Price covers prompts up to 1M tokens.$1.50-$4.50--Audio not supportedReasoning-GAAlibaba Qwen pricing ↗
Alibaba QwenQwen3.8 Maxqwen3.8-maxModel Studio, International (Singapore).$2.00-$6.00--Audio not supportedReasoning-GAAlibaba Qwen pricing ↗
Alibaba QwenQwen3.7 Plusqwen3.7-plusUp to 256K tokens; 256K to 1M: $1.20 / $4.80. Limited-time 20% off shown. Model Studio, International (Singapore).$0.40-$1.60--Audio not supportedReasoning-GAAlibaba Qwen pricing ↗
Alibaba QwenQwen3.8 Flashqwen3.8-flashModel Studio, International (Singapore).$0.15-$0.47--Audio not supportedReasoning-GAAlibaba Qwen pricing ↗
CohereCommand A+command-a-plus-05-2026Cohere lists the API key and model download as $0 / free under Apache 2.0. Check the pricing page for production terms.---128K64KVisionAudio not supportedToolsReasoningMay 2026GACohere pricing ↗
CohereCommand Acommand-a-03-2025Token price not shown on the current Cohere pricing page.---256K8KVision not supportedAudio not supportedToolsMar 2025GACohere pricing ↗
CohereCommand Rcommand-r-08-2024$0.15-$0.60128K4KVision not supportedAudio not supportedAug 2024GACohere pricing ↗
CohereCommand R7Bcommand-r7b-12-2024Cohere describes it as a small, fast model for RAG, tool use and agents.$0.0375-$0.15128K4KVision not supportedAudio not supportedToolsDec 2024GACohere pricing ↗
Moonshot AIvia Together AIKimi K3Kimi K3Together AI serverless price.$3.00$0.30$15.00--Audio not supported-GATogether AI pricing ↗
Z.aivia MistralGLM 5.3zai-glm-5-3Third-party model hosted by Mistral.$1.40$0.14$4.40--Audio not supported-GAMistral pricing ↗
Z.aivia MistralGLM 5.3 Flashzai-glm-5-3-flashThird-party multimodal MoE (320B total, 18B active) hosted by Mistral.$0.15$0.03$0.50--VisionAudio not supportedTools-GAMistral pricing ↗

Capability tags come from each provider’s model docs: Vision means image input, Audio means audio input in the same model, Tools means function or tool calling, Reasoning means a thinking mode. A crossed-out tag is documented as not supported. No tag means the provider does not say. Hosted open-weight models show the host’s price, and another host can charge more or less.

How Token Pricing Works

Every LLM API in the table bills by the token. A token is a chunk of text, roughly three quarters of an English word on most tokenizers, so 1,000 words is about 1,300 to 1,400 tokens. Images, audio and PDFs get turned into tokens too, and each provider counts them its own way.

You pay three different rates:

  • Input tokens are everything you send: the system prompt, the user message, chat history, retrieved documents and tool results.
  • Output tokens are what the model writes back. On reasoning models, the hidden thinking tokens are billed as output too, which is why a short answer can still cost a lot.
  • Cached input is input the provider has seen recently and stored. It costs a small slice of the normal input rate.

One thing that catches people out: tokenizers differ. Anthropic says Claude Sonnet 5 uses a new tokenizer that produces about 30% more tokens for the same text than older Claude models. So a lower price per token does not always mean a lower bill. Run the same prompt through two models and compare the usage numbers they return before you trust a comparison like this one.

OpenAI API pricing page showing GPT-6.2 Astra and GPT-6.2 Sol prices per 1M tokens
The OpenAI API pricing page, where GPT-6.2 Sol is listed at $2 input, $0.10 cached and $10 output per 1M tokens. Screenshot taken 28 Nov 2026.

Prices also change with context length on some models. OpenAI bills the whole request at the long-context rate once a prompt passes 272K tokens on its newer flagship models, and xAI doubles its rates at 200K tokens. If you send big documents, check the note on the row before you pick a model.

Cheapest AI Models by Use Case

The cheapest model is rarely the right answer on its own. A $0.02 model that needs three retries costs more than a $0.10 model that gets it right the first time. Still, these are the lowest prices I found for each kind of job, using only models that are generally available or in preview:

Use caseCheapest pickInput / output per 1MWhy it fits
Plain text at huge volumeLlama 3.1 8B Instruct Turbo (DeepInfra)$0.02 / $0.04Lowest price in the table, 128K context
First-party API, text onlyAmazon Nova Micro$0.035 / $0.14Cached input at $0.00875
Image input on a budgetAmazon Nova Lite$0.06 / $0.24Vision and tools, 300K context
1M token contextGemini 2.5 Flash-Lite$0.10 / $0.40Takes text, image, video and audio
Small model from a frontier labGPT-6 Luna or Claude Haiku 5.5$0.10 / $0.50Vision, tools and a thinking mode, 1M context
Cheap reasoning with long outputDeepSeek V4.1 Flash$0.30 / $1.20 (half off-peak)384K max output, cache hits at $0.006
Open-weight flagshipMistral Large 4$0.70 / $2.101M context, multimodal, cached at $0.07
Frontier model under $10 outputGrok 4.7$2 / $6500K context, built-in reasoning
Lowest published prices by job, from the table above. Checked 28 Nov 2026.

Best AI Model for Coding, Chat, RAG and Vision

These are my picks, and they mix price with what each provider says the model is built for. Benchmarks change every month, so treat this as a shortlist to test, not a verdict.

Coding

OpenAI calls GPT-6.2 Sol its go-to model for everyday work, from coding to agents, and it costs $2 / $10. Anthropic positions Claude Opus 5.5 ($4 / $20) for long-running agentic coding, and says to start with it for most workloads. On the cheaper side, Google says Gemini 4 Hydrogen ($1.50 / $7.50) is built for everyday coding and agentic workflows. When a coding agent runs for hours, the 50% batch discount does not help, but caching does, so compare the cached column too.

Chat and support bots

A support bot sends the same long system prompt on every turn, which makes it a perfect fit for caching. Claude Haiku 5.5 and GPT-6 Luna both cost $0.10 / $0.50 and charge $0.01 per 1M cached tokens. Anthropic describes Haiku 5.5 as built for high-volume, latency-sensitive tasks such as classification, extraction and routing. Keep an eye on the 100K token line on Haiku 5.5, where the price goes up five times.

RAG and long documents

Retrieval-augmented generation is input-heavy. You might send 20,000 tokens of retrieved text to get a 300-token answer, so the input price matters more than the output price. Gemini 2.5 Flash-Lite ($0.10 input) and DeepSeek V4.1 Flash ($0.30 input, $0.006 cached) are strong on cost. If quality matters more, Anthropic keeps the standard rate across the full 1M context on Claude 4.6 and later (Haiku 5.5 aside), while OpenAI and xAI charge more past 272K and 200K tokens.

Vision

Most new models take images now. OpenAI says GPT-6.1 Terra ($1 / $5) is built for visual reasoning, like matching product photos to catalog entries or reading technical drawings. For video and audio as well as images, the Gemini models in the table take all of them in one API. For bulk image tagging on a tight budget, Amazon Nova Lite at $0.06 / $0.24 is the cheapest vision model I found.

Batch and Caching Discounts

If I could tell a team only one thing about AI API costs, it would be this: the list price is the most you will pay, not what you have to pay. Two discounts do most of the work.

Batch is for anything that can wait. You upload a file of requests and get the results back later, often within 24 hours, at a lower rate. Prompt caching is for anything that repeats, like a system prompt, a product catalog or a long contract you ask many questions about.

ProviderBatch discountCached input vs fresh inputOther ways to save
OpenAI50% off$0.10 vs $2 on GPT-6.2 Sol (95% off)Cache writes cost 1.25x (30 minutes) or 2.5x (12 hours). Background requests on GPT-6.2 Astra, GPT-6.2 Sol, GPT-6.1 Terra and GPT-6 Luna are 30% off (2-hour window) or 40% off (8-hour window)
Anthropic50% off$0.20 vs $4 on Claude Opus 5.5 (95% off)Cache writes cost 1.25x (5 minutes) or 2x (1 hour) the input price
Google Gemini50% off$0.10 vs $2 on Gemini 4 CarbonGemini 4 models use implicit caching only. Free tier on some models
xAI20% off$0.50 vs $2 on Grok 4.7 (75% off)Keep prompts under 200K tokens to avoid the 2x rate
DeepSeekOff-peak is 50% off$0.006 vs $0.30 on V4.1 Flash (98% off)Off-peak hours cover weekends and most of the weekday
Amazon Bedrock50% off (Nova 2 Lite)$0.075 vs $0.30 on Nova 2 LiteGlobal cross-Region inference is about 10% cheaper than in-Region
MistralSee price page$0.07 vs $0.70 on Mistral Large 4EU regional inference adds 10%
Alibaba Qwen50% offDiscount listed for context cacheSome models show limited-time discounts
Discounts as listed on each provider’s official pricing page on 28 Nov 2026.
Anthropic Claude API pricing page with base input, cache write, cache hit and output prices
Anthropic lists five prices per Claude model: base input, 5-minute and 1-hour cache writes, cache hits and output. Screenshot taken 28 Nov 2026.

This IBM Technology video is a clear, short explainer on how prompt caching works and why it cuts both cost and latency:

IBM Technology: What is Prompt Caching? Optimize LLM Latency with AI Transformers

DeepSeek has its own twist. It charges peak and off-peak rates, and off-peak is half price. Peak hours are 01:00 to 04:00 and 06:00 to 10:00 UTC on weekdays, which is 6:30 to 9:30 AM and 11:30 AM to 3:30 PM in India. Everything else, including weekends, is off-peak.

DeepSeek API pricing page showing peak and off-peak prices for deepseek-flash and deepseek-v4-pro
DeepSeek shows peak and off-peak prices side by side for V4.1 Flash and V4 Pro. Screenshot taken 28 Nov 2026.

AI API Price Changes Coming Up

A table like this goes stale fast, so here are the changes providers have already announced. I note each one on the model row too, and the table switches to the new price on the effective date.

  • Nov 30, 2026: GPT-5.6 Sol promotional pricing ends, per OpenAI. Claude Sonnet 4.5 reaches its retirement date.
  • Dec 1, 2026: Gemini 4 Carbon and Gemini 4 Argon move from $2 / $10 to $4 / $20 per 1M tokens, with cached input going from $0.10 to $0.20. Requests to Gemini 2.5 Pro start routing to Gemini 3.8 Flash, and Gemini 2.5 Flash routes to Gemini 3.5 Flash-Lite, billed at the new model’s rates.
  • Jan 1, 2027: Gemini 3.8 Flash and Gemini 3.6 Flash go from $0.75 / $3.75 to $1.50 / $7.50.
  • Jan 22, 2027: Claude Opus 4.5 retires.
Google Gemini API pricing page for Gemini 4 Carbon with introductory and standard prices
Google’s Gemini API pricing page shows the Gemini 4 Carbon intro price and the higher rate from Dec 1, 2026. Screenshot taken 28 Nov 2026.

For background on the newest launches, Google’s own post on Gemini 4 Carbon becoming available covers what the model is for, and 9to5Google has a good write-up of OpenAI releasing GPT-6.2 Astra and Sol a week after Claude Fable 5.2.

How to Estimate Your AI API Cost

The math is simple once you know your token counts:

monthly cost = requests x ((input tokens x input price) + (output tokens x output price)) / 1,000,000

Take a support assistant with 100,000 requests a month, 2,000 input tokens and 500 output tokens per request. That is 200M input tokens and 50M output tokens a month. Here is what that costs on a few models from the table:

ModelInput / output per 1MMonthly costWith 1,500 tokens cached per request
GPT-6.2 Sol$2 / $10$900$615
Claude Sonnet 5.5$2 / $10$900$615
Gemini 4 Carbon (from Dec 1)$4 / $20$1,800$1,230
Grok 4.7$2 / $6$700$475
Mistral Large 4$0.70 / $2.10$245$150.50
DeepSeek V4.1 Flash (peak)$0.30 / $1.20$120$75.90
GPT-6 Luna$0.10 / $0.50$45$31.50
Worked example: 100,000 requests a month, 2,000 input and 500 output tokens each. The cached column assumes 1,500 of the 2,000 input tokens are cache hits and ignores cache write fees.

Two habits make the estimate far more accurate. First, measure real token counts from the API response for a day instead of guessing. Second, remember that reasoning models bill their thinking as output, so turn the reasoning effort down on simple tasks.

Want the math done for you? The free AI API Cost Calculator lets you enter your request volume and token counts, then compares the monthly, annual and per-1K-call bill across a long list of models in one table.

OpenAI’s own Build Hour on prompt caching walks through how to structure prompts so more of them hit the cache:

OpenAI: Build Hour: Prompt Caching

How I Check These Prices

Every price in the table comes from the provider’s official pricing page or model docs, and each row links to its source. I do not copy numbers from other comparison sites. While building this page I found one comparison site showing Mistral Large 4 at nearly double the $0.70 input price on Mistral’s own page, which is exactly the kind of error I want to keep out.

  • Prices are in US dollars per 1M tokens on the standard, pay-as-you-go tier, for text. Image, audio and video input can cost more.
  • Where a provider prices by region, I use the global or default rate and say so on the row. Amazon Nova prices are Bedrock on-demand in US East.
  • Open-weight models like Llama, gpt-oss and Kimi K3 show the price of one named host. Other hosts charge different rates.
  • If a provider does not publish a number, the cell stays blank. Cohere’s Command A, for example, has no token price on its current pricing page.
  • Deprecated models stay in the table, marked as such, because people are still paying for them. The default view hides them.

Spot a price that has changed? The official link on each row is the fastest way to check, and I update the table when providers change their rates.

FAQs

What is the cheapest AI model API right now?

On the official pages I checked on 28 Nov 2026, the lowest token price is Llama 3.1 8B Instruct Turbo on DeepInfra at $0.02 per 1M input tokens and $0.04 per 1M output tokens. Among first-party APIs, Amazon Nova Micro ($0.035 / $0.14) and Cohere Command R7B ($0.0375 / $0.15) are the cheapest. If you need a 1M token context window, Gemini 2.5 Flash-Lite at $0.10 / $0.40 is the lowest.

How is AI API pricing calculated?

Providers bill per token, and almost all of them quote the price per 1 million tokens. You pay one rate for input tokens (your prompt, files and chat history), a usually higher rate for output tokens (the reply, including thinking tokens on reasoning models), and a lower rate for input tokens served from a cache. Your cost is input tokens times the input rate, plus output tokens times the output rate, plus cached tokens times the cached rate.

Why are output tokens more expensive than input tokens?

The model has to generate output one token at a time, which takes far more compute than reading the prompt. That is why output usually costs 3x to 6x the input price. For example, GPT-6.2 Sol is $2 input and $10 output, and Claude Sonnet 5.5 is the same $2 and $10.

What does cached input mean in LLM API pricing?

Cached input is the price for prompt tokens the provider has already processed and stored, such as a long system prompt or a document you send on every call. Cache hits cost a fraction of the normal input rate: $0.10 instead of $2 on GPT-6.2 Sol, $0.20 instead of $4 on Claude Opus 5.5, and $0.006 instead of $0.30 on DeepSeek V4.1 Flash at peak rates. Both OpenAI and Anthropic charge a little extra to write to the cache: 1.25x the input price for a short-lived cache on both, and 2x (Anthropic, 1 hour) or 2.5x (OpenAI, 12 hours) for a longer one.

How much does the Batch API save?

OpenAI, Anthropic and Google all take 50% off for batch requests that can wait for a result. Amazon Bedrock batch for Nova 2 Lite is also half price, Alibaba Model Studio lists 50% off batch calls, and xAI takes 20% off. Batch is the easiest discount to get for evals, backfills, tagging and any job that does not need an instant answer.

Which AI model is best for coding on a budget?

For most coding work I would start with GPT-6.2 Sol or Claude Sonnet 5.5, both at $2 input and $10 output per 1M tokens. If price matters more, Gemini 4 Hydrogen ($1.50 / $7.50) is positioned by Google for everyday coding and agentic work, and DeepSeek V4.1 Flash costs $0.30 / $1.20 at peak and half that off-peak. Test two or three of them on your own repo before you commit.

Do long prompts cost more?

With several providers, yes. OpenAI charges double input and 1.5x output on its GPT-5.4 and newer flagship models when a prompt goes over 272K tokens. Google charges more above 200K tokens on Gemini 3.1 Pro Preview and Gemini 2.5 Pro. xAI doubles the price for prompts of 200K tokens or more, and Claude Haiku 5.5 moves from $0.10 / $0.50 to $0.50 / $2.50 above 100K tokens. Anthropic charges its standard rate across the full 1M context on Claude 4.6 and later models, except Claude Haiku 5.5.

Are AI model prices going up or down?

Both, depending on the model. New small models keep getting cheaper: GPT-6 Luna and Claude Haiku 5.5 both cost $0.10 input and $0.50 output. But some launch prices are temporary. Gemini 4 Carbon and Gemini 4 Argon go from $2 / $10 to $4 / $20 on Dec 1, 2026, and Gemini 3.8 Flash and Gemini 3.6 Flash move from $0.75 / $3.75 to $1.50 / $7.50 on Jan 1, 2027.

How do I estimate my monthly AI API cost?

Multiply your monthly requests by the average input and output tokens per request, then by the price per 1M tokens. 100,000 requests a month at 2,000 input and 500 output tokens is 200M input and 50M output tokens, which comes to $900 on GPT-6.2 Sol and $45 on GPT-6 Luna. The free AI API Cost Calculator on Kreative Media does this math across many models at once.

How often is this AI model pricing table updated?

I check the official pricing pages and update the table whenever a provider changes a price, launches a model or retires one. The date at the top of the page shows the last full check. Scheduled changes that a provider has already announced, like the Gemini 4 Carbon price rise on Dec 1, 2026, are noted on the row.

Jitendra Vaswani

About the author

Jitendra Vaswani

Jitendra Vaswani is the founder of Kreative Media and the author of Inside A Hustler’s Brain. He keeps this AI model pricing table so a team can compare token rates in one place, then confirm the vendor rate and test the model on real work before the number goes into a budget. For a bill estimate, use the AI API Cost Calculator.