AI API prices compared — official vs discounted

Every price below is listed twice: what the vendor charges directly, and what the same model costs through the discounted route. Verified 2026-11-02.

ModelOfficial (in / out)Gateway (in / out)Saving
Claude Opus 5
Anthropic
$5 / $25 $2.5 / $12.5 -50%
Claude Sonnet 5
Anthropic
$2 / $10 $1 / $5 -50%
Claude Fable 5
Anthropic
$10 / $50 $5 / $25 -50%
Claude Haiku 4.5
Anthropic
$1 / $5 $0.5 / $2.5 -50%
GPT-5.6 Sol
OpenAI
$4 / $20 $2.5 / $15 -27%
GPT-5.6 Terra
OpenAI
$2 / $12 $1 / $6 -50%
GPT-5.6 Luna
OpenAI
$0.2 / $1.2 $0.1 / $0.6 -50%
GPT-6 Astra
OpenAI
$10 / $50 $5 / $25 -50%
Gemini 3.7 Flash
Google
not verified $0.375 / $1.875 n/a
DeepSeek V4 Pro
DeepSeek
not verified $0.66 / $1.98 n/a
DeepSeek V4 Flash
DeepSeek
not verified $0.22 / $0.66 n/a
GLM-5.3
Zhipu
not verified $0.7 / $2.2 n/a
MiniMax M3
MiniMax
not verified $0.15 / $0.6 n/a
Kimi K3
Moonshot
not verified $1.5 / $7.5 n/a
Qwen3.8 Max
Alibaba
not verified $1 / $3 n/a
Grok 4.1
xAI
not verified $1 / $5 n/a
GPT-6 Luna
OpenAI
not verified $0.05 / $0.25 n/a
GPT-6 Sol
OpenAI
not verified $1 / $5 n/a
Claude Opus 5.5
Anthropic
not verified $2 / $10 n/a
Grok 4.7
xAI
not verified $1 / $3 n/a
GPT-5
OpenAI
not verified $0.625 / $5 n/a
GPT-5 mini
OpenAI
not verified $0.125 / $1 n/a
GPT-5 nano
OpenAI
not verified $0.025 / $0.2 n/a
o3
OpenAI
not verified $1 / $4 n/a
Claude Sonnet 4.6
Anthropic
$3 / $15 $1.5 / $7.5 -50%
Claude Opus 4.8
Anthropic
$5 / $25 $2.5 / $12.5 -50%
Gemini 2.5 Pro
Google
not verified $0.625 / $5 n/a
Gemini 2.5 Flash
Google
not verified $0.15 / $1.251 n/a
DeepSeek R1
DeepSeek
not verified $0.2899 / $1.1596 n/a
Llama 4 Maverick
Meta
not verified $0.07 / $0.35 n/a
Claude Haiku 5.5
Anthropic
not verified $0.05 / $0.25 n/a
Claude Sonnet 5.5
Anthropic
not verified $1 / $5 n/a
GPT-6.1 Sol
OpenAI
not verified $1 / $5 n/a
GPT-6.1 Terra
OpenAI
not verified $0.5 / $2.5 n/a
Kimi K3.1 Pro
Moonshot
not verified $1 / $5 n/a
MiniMax M3.1 Flash
MiniMax
not verified $0.075 / $0.3 n/a
DeepSeek V4.1 Flash
DeepSeek
not verified $0.15 / $0.6 n/a
Gemini 4 Argon
Google
not verified $1 / $5 n/a

Per 1M tokens, USD, standard tier. Synced 2026-11-02. Savings are shown only where we could verify the official list price against vendor documentation — see each model page for the source. Where a cell reads not verified we make no comparison claim.

Check live rates on the platform →Free to sign up · $1 minimum top-up · No prepayment
Read this before you compare: the discount applies to US frontier models. DeepSeek, GLM, Kimi, Qwen and MiniMax are billed at their official list price, the point of listing them is access, not saving.
Per-million rates only mean something against a workload. Price your own volume in the cost calculator, then read how the bill is built On agent-shaped traffic, input tokens carry about 95% of it.

How to read the table

Complete rate index — 226 models, 13 vendors

Every entry below is a rate we bill, in USD per 1M tokens. Rates marked verified are cross-checked against the vendor's own published list price; everything else is listed at face value and no comparison is implied. Use the filter to narrow by name or vendor — the cost calculator accepts all of them. Comparing two of them? Rank by your own token mix, not by the input column — output rates decide most bills. This table is the raw input to the 2026 price index, where the same rows are re-ranked three ways and published as CSV and JSON. Models appear here the day they become billable — the new additions log lists them in the order they arrived, with what each one costs.

ModelVendorInput / 1MOutput / 1MList price
Qwen FlashAlibaba$0.025$0.20not verified
Qwen TurboAlibaba$0.025$0.10not verified
Qwen Turbo 1101Alibaba$0.025$0.10not verified
Qwen3 VL FlashAlibaba$0.025$0.20not verified
Qwen3.5 FlashAlibaba$0.05$0.20not verified
Qwen3 Next 80B A3b InstructAlibaba$0.075$0.60not verified
Qwen3.8 FlashAlibaba$0.075$0.235not verified
Qwen3.8 Omni FlashAlibaba$0.075$0.235not verified
Qwen3 32BAlibaba$0.08$0.32not verified
Qwen3 VL 32B InstructAlibaba$0.08$0.32not verified
Qwen3 8BAlibaba$0.09$0.36not verified
Qwen3 VL 8B InstructAlibaba$0.09$0.35not verified
Qwen3 30B A3bAlibaba$0.10$0.40not verified
Qwen3 30B A3b Instruct 2507Alibaba$0.10$0.40not verified
Qwen3 30B A3b ThinkAlibaba$0.10$1.2not verified
Qwen3 30B A3b Thinking 2507Alibaba$0.10$1.2not verified
Qwen3 VL 30B A3b InstructAlibaba$0.10$0.40not verified
Qwen3 VL PlusAlibaba$0.10$0.80not verified
Qwen3 235B A22b Instruct 2507Alibaba$0.115$0.46not verified
Qwen3 235B A22b Thinking 2507Alibaba$0.115$1.15not verified
Qwen3.8 Omni Flash RealtimeAlibaba$0.115$0.35not verified
Qwen3.5 35B A3bAlibaba$0.125$1.00not verified
Qwen3 0.6bAlibaba$0.15$0.60not verified
Qwen3 1.7bAlibaba$0.15$0.60not verified
Qwen3 4BAlibaba$0.15$0.60not verified
Qwen3.5 27BAlibaba$0.15$1.2not verified
Qwen3 14BAlibaba$0.175$0.70not verified
Qwen3.6 35B A3bAlibaba$0.1875$1.125not verified
Qwen PlusAlibaba$0.20$0.60not verified
Qwen3 VL 235B A22b InstructAlibaba$0.20$0.80not verified
Qwen3.5 122B A10bAlibaba$0.20$1.6not verified
Qwen3.5 PlusAlibaba$0.20$1.2not verified
Qwen3.7 PlusAlibaba$0.20$0.80not verified
Qwen3.6 PlusAlibaba$0.25$1.5not verified
Qwen3.8 27BAlibaba$0.25$1.5not verified
Qwen3.5 397B A17bAlibaba$0.30$1.8not verified
Qwen3.6 27BAlibaba$0.30$1.8not verified
Qwen Mt TurboAlibaba$0.35$0.9765not verified
Qwen3 235B A22bAlibaba$0.35$1.4not verified
Qwen Plus BusikaoAlibaba$0.40$1.00not verified
Qwen VL MaxAlibaba$0.40$1.6not verified
Qwen3 Next 80B A3bAlibaba$0.50$2.00not verified
Qwen3 MaxAlibaba$0.60$3.00not verified
Qwen VL PlusAlibaba$0.75$2.25not verified
Qwen MaxAlibaba$0.80$3.2not verified
Qwen Omni TurboAlibaba$0.80$2.2504not verified
Qwen Mt PlusAlibaba$0.90$2.7not verified
Qwen 72BAlibaba$1.00$1.00not verified
Qwen3 VL 235B A22bAlibaba$1.00$4.00not verified
Qwen3.8 MaxAlibaba$1.00$3.00not verified
Qwen3.5 Omni FlashAlibaba$1.1$6.65not verified
Qwen3.7 MaxAlibaba$1.25$3.75not verified
Qwen3 235B A22b ThinkAlibaba$1.5$6.00not verified
GPT 5 NanoOpenAI$0.025$0.20not verified
GPT-6 LunaOpenAI$0.05$0.25not verified
GPT 5.4 NanoOpenAI$0.10$0.625not verified
GPT Oss 20BOpenAI$0.10$0.40not verified
GPT-5.6 LunaOpenAI$0.10$0.60verified
GPT 5 MiniOpenAI$0.125$1.00not verified
GPT 5.1 Codex MiniOpenAI$0.125$0.20not verified
GPT Realtime 2.1 MiniOpenAI$0.30$1.2not verified
GPT 5.4 MiniOpenAI$0.375$2.25not verified
GPT-6.1 TerraOpenAI$0.50$2.5not verified
GPT Oss 120BOpenAI$0.55$2.2not verified
O3 MiniOpenAI$0.55$2.2not verified
O4 MiniOpenAI$0.55$2.2not verified
GPT 5 CodexOpenAI$0.625$5.00not verified
GPT 5 LowOpenAI$0.625$1.25not verified
GPT 5 MinimalOpenAI$0.625$1.25not verified
GPT 5 Search ApiOpenAI$0.625$5.00not verified
GPT 5.1OpenAI$0.625$5.00not verified
GPT 5.1 ChatOpenAI$0.625$5.00not verified
GPT 5.1 CodexOpenAI$0.625$5.00not verified
GPT-5OpenAI$0.625$5.00not verified
GPT 5.2OpenAI$0.875$7.00not verified
GPT 5.2 ChatOpenAI$0.875$7.00not verified
GPT 5.2 CodexOpenAI$0.875$7.00not verified
GPT 5.3 ChatOpenAI$0.875$7.00not verified
GPT 5.3 CodexOpenAI$0.875$7.00not verified
GPT 5.3 Codex SparkOpenAI$0.875$7.00not verified
GPT-5.6 TerraOpenAI$1.00$6.00verified
GPT-6 SolOpenAI$1.00$5.00not verified
GPT-6.1 SolOpenAI$1.00$5.00not verified
o3OpenAI$1.00$4.00not verified
GPT 5.4OpenAI$1.25$7.5not verified
GPT 5.4 Openai CompactOpenAI$1.25$7.5not verified
GPT Realtime 2.1OpenAI$2.00$12.00not verified
GPT 5.5OpenAI$2.5$15.00not verified
GPT 5.5 Openai CompactOpenAI$2.5$15.00not verified
GPT-5.6 SolOpenAI$2.5$15.00verified
GPT 6OpenAI$5.00$25.00not verified
GPT-6 AstraOpenAI$5.00$25.00verified
GPT 5 ProOpenAI$7.5$60.00not verified
O3 ProOpenAI$10.00$40.00not verified
GPT 5.2 ProOpenAI$10.5$84.00not verified
GPT 5.4 ProOpenAI$15.00$90.00not verified
GPT 5.5 ProOpenAI$15.00$90.00not verified
Gemma 3 1B ItGoogle$0.01$0.03not verified
Gemma2 9B ItGoogle$0.01$0.01not verified
Gemma 3 4B ItGoogle$0.0175$0.0525not verified
Gemini 1.5 Flash 8BGoogle$0.0187$0.075not verified
Gemma 3 12B ItGoogle$0.035$0.105not verified
Gemini 1.5 FlashGoogle$0.0375$0.15not verified
Gemini 1.5 Flash 002Google$0.0375$0.15not verified
Gemini 2.0 Flash LiteGoogle$0.0375$0.15not verified
Gemini 2.0 Flash Lite 001Google$0.0375$0.15not verified
Gemini 2.0 FlashGoogle$0.05$0.20not verified
Gemini 2.5 Flash LiteGoogle$0.05$0.20not verified
Gemma 3 27B ItGoogle$0.06$0.18not verified
Gemini 2.0 Flash 001Google$0.075$0.30not verified
Gemini 3.1 Flash LiteGoogle$0.125$0.75not verified
Gemini 2.5 FlashGoogle$0.15$1.251not verified
Gemini 3.5 Flash LiteGoogle$0.15$1.25not verified
Gemini 3.6 FlashGoogle$0.375$1.875not verified
Gemini 3.7 FlashGoogle$0.375$1.875not verified
Gemini 3.8 FlashGoogle$0.375$1.875not verified
Gemini 1.5 ProGoogle$0.625$2.5not verified
Gemini 1.5 Pro 001Google$0.625$2.5not verified
Gemini 1.5 Pro 002Google$0.625$2.5not verified
Gemini 2.5 ProGoogle$0.625$5.00not verified
Gemma2 27B ItGoogle$0.63$0.63not verified
Gemini 3.5 FlashGoogle$0.75$4.5not verified
Gemini 4 ArgonGoogle$1.00$5.00not verified
Gemini 4 BariumGoogle$1.00$5.00not verified
Gemma 7B ItGoogle$1.00$1.00not verified
Grok 4 1 Fast Non ReasoningxAI$0.10$0.25not verified
Grok 4 1 Fast ReasoningxAI$0.10$0.25not verified
Grok 4 FastxAI$0.10$0.25not verified
Grok 4 Fast Non ReasoningxAI$0.10$0.25not verified
Grok 4 Fast ReasoningxAI$0.10$0.25not verified
Grok 3 MinixAI$0.15$0.2505not verified
Grok 4.1 FastxAI$0.20$1.5not verified
Grok 4.2 FastxAI$0.20$1.5not verified
Grok Code Fast 1xAI$0.20$1.5not verified
Grok Build 0.1xAI$0.50$1.00not verified
Grok 4 20 Non ReasoningxAI$0.625$1.25not verified
Grok 4 20 ReasoningxAI$0.625$1.25not verified
Grok 4.3xAI$0.625$1.25not verified
Grok 3 DeepersearchxAI$1.00$3.00not verified
Grok 3 ReasonerxAI$1.00$5.00not verified
Grok 3 ReasoningxAI$1.00$5.00not verified
Grok 3 SearchxAI$1.00$5.00not verified
Grok 4.1xAI$1.00$5.00not verified
Grok 4.5xAI$1.00$3.00not verified
Grok 4.6xAI$1.00$3.00not verified
Grok 4.7xAI$1.00$3.00not verified
Grok 2xAI$1.5$7.5not verified
Grok 2 1212xAI$1.5$1.5not verified
Grok 3xAI$1.5$7.5not verified
Grok 4xAI$1.5$7.5not verified
Grok 4.2xAI$1.5$7.5not verified
Grok 2 Vision 1212xAI$2.5$12.5not verified
Claude Haiku 5.5Anthropic$0.05$0.25not verified
Claude Haiku 4.5Anthropic$0.50$2.5verified
Claude Sonnet 5Anthropic$1.00$5.00verified
Claude Sonnet 5.5Anthropic$1.00$5.00not verified
Claude Sonnet 4.6Anthropic$1.5$7.5verified
Claude Opus 5.5Anthropic$2.00$10.00not verified
Claude Opus 4 6Anthropic$2.5$12.5verified
Claude Opus 4 7Anthropic$2.5$12.5verified
Claude Opus 4.8Anthropic$2.5$12.5verified
Claude Opus 5Anthropic$2.5$12.5verified
Global Anthropic Claude Opus 4 6 V1Anthropic$2.5$12.5not verified
Claude Fable 5Anthropic$5.00$25.00verified
Claude Fable 5 1Anthropic$5.00$25.00verified
Claude 4 OpusAnthropic$7.5$37.5not verified
Doubao 1 5 Lite 32KByteDance$0.15$0.30not verified
Doubao 1 5 Pro 32KByteDance$0.40$1.00not verified
Doubao Seed 1 6 251015 SearchByteDance$0.40$4.00not verified
Doubao Seed EvolvingByteDance$0.45$2.25not verified
Seed Oss 36B InstructByteDance$0.60$6.00not verified
Doubao Lite 32KByteDance$1.00$1.00not verified
Doubao Lite 4KByteDance$1.00$1.00not verified
Doubao 1 5 Vision Pro 32KByteDance$1.5$4.5not verified
Doubao Lite 128KByteDance$2.00$2.00not verified
Doubao Pro 32KByteDance$2.00$2.00not verified
Doubao Pro 4KByteDance$2.00$2.00not verified
Doubao 1.5 Pro 256KByteDance$2.5$4.5not verified
Doubao Pro 128KByteDance$12.00$12.00not verified
DeepSeek OCRDeepSeek$0.108$0.108not verified
DeepSeek Ocr1DeepSeek$0.108$0.108not verified
DeepSeek V4 FlashDeepSeek$0.15$0.60not verified
DeepSeek V4.1 FlashDeepSeek$0.15$0.60not verified
DeepSeek V4.1 Flash 1017DeepSeek$0.15$0.60not verified
DeepSeek R1 Distill Qwen 7BDeepSeek$0.25$0.50not verified
DeepSeek R1DeepSeek$0.2899$1.1596not verified
DeepSeek R1 Distill Llama 70BDeepSeek$0.50$1.5not verified
DeepSeek V4 ProDeepSeek$0.66$1.98not verified
DeepSeek ChatDeepSeek$1.00$1.5not verified
DeepSeek R1 Distill Qwen 32BDeepSeek$1.00$3.00not verified
DeepSeek R1 HDeepSeek$2.00$8.00not verified
DeepSeek ReasonerDeepSeek$2.00$8.00not verified
Kimi K2Moonshot$0.30$1.2not verified
Kimi K2.5Moonshot$0.30$1.575not verified
Kimi K2.6Moonshot$0.475$1.9731not verified
Kimi K3.1 ProMoonshot$1.00$5.00not verified
Moonshot V1 8KMoonshot$1.2$1.2not verified
Kimi K3Moonshot$1.5$7.5not verified
Kimi K2 InstructMoonshot$2.00$8.00not verified
Moonshot V1 32KMoonshot$2.4$2.4not verified
Kimi K2.7 Code HighspeedMoonshot$6.5$27.00not verified
Moonshot V1 128KMoonshot$12.00$12.00not verified
Phi 4Other$0.06$0.24not verified
Mimo V2.5Other$0.07$0.14not verified
Mimo V2.6 FlashOther$0.07$0.14not verified
Mimo V2.5 ProOther$0.2175$0.435not verified
Mimo V2.6 ProOther$0.2175$0.435not verified
Mimo V2 FlashOther$0.35$1.05not verified
Longcat Flash ChatOther$0.50$2.5not verified
MAI DS R1Other$0.657$2.628not verified
Mimo V2 ProOther$1.5$3.00not verified
MiniMax M3.1 FlashMiniMax$0.075$0.30not verified
MiniMax M2.5MiniMax$0.15$0.60not verified
MiniMax M2.7MiniMax$0.15$0.60not verified
MiniMax M3MiniMax$0.15$0.60not verified
MiniMax M2MiniMax$1.05$4.2not verified
MiniMax M2.1MiniMax$1.05$4.2not verified
MiniMax M2.7 HighspeedMiniMax$2.1$8.4not verified
GLM 5.3 FlashZhipu$0.075$0.25not verified
GLM 5Zhipu$0.50$1.6not verified
GLM 5.1Zhipu$0.70$2.2not verified
GLM 5.2Zhipu$0.70$2.2not verified
GLM-5.3Zhipu$0.70$2.2not verified
GLM 5 TurboZhipu$2.5$11.00not verified
Llama 4 MaverickMeta$0.07$0.35not verified
Dolphin3.0 R1 Mistral 24BMistral$0.7286$1.4572not verified

Input and output are priced separately on every model here, and output costs several times more than input. Synced 2026-11-02. A rate labelled “gateway rate” is what one API key bills you, we did not confirm a matching published list price, so we claim nothing about it being discounted.

Pick a model

Claude Opus 5

Anthropic's strongest model for long-horizon agentic coding and enterprise work.

Claude Sonnet 5

The daily driver (near-flagship coding quality at a fifth of Opus's output rate).

Claude Fable 5

Frontier Claude for demanding reasoning and long agent runs.

Claude Haiku 4.5

Ultra-fast classification, extraction and tight loops.

GPT-5.6 Sol

OpenAI's heaviest 5.6 tier, deepest reasoning, widest tool use.

GPT-5.6 Terra

The middle tier most teams settle on.

GPT-5.6 Luna

Lowest-cost tier in the GPT-5.6 family (drafts, routing, high-frequency calls).

GPT-6 Astra

OpenAI's newest frontier tier.

Gemini 3.7 Flash

Google's fast multimodal model with a 1M context window.

DeepSeek V4 Pro

DeepSeek's flagship, strong reasoning at open-weight economics.

DeepSeek V4 Flash

Peak/off-peak pricing (schedule batch work off-peak to cut cost sharply).

GLM-5.3

Zhipu's current flagship.

MiniMax M3

MiniMax's latest, very low price for the capability.

Kimi K3

Moonshot's latest flagship (long-context agentic work).

Qwen3.8 Max

Alibaba's largest Qwen tier.

Grok 4.1

xAI's flagship model.

GPT-6 Luna

The entry tier of OpenAI's GPT-6 family.

GPT-6 Sol

The middle tier of the GPT-6 family.

Claude Opus 5.5

Anthropic's newest Opus revision.

Grok 4.7

xAI's newest Grok release.

GPT-5

OpenAI's GPT-5 tier.

GPT-5 mini

The smaller GPT-5 tier.

GPT-5 nano

The smallest GPT-5 tier.

o3

OpenAI's o3 reasoning model.

Claude Sonnet 4.6

Anthropic's Sonnet 4.6 tier.

Claude Opus 4.8

Anthropic's Opus 4.8 tier.

Gemini 2.5 Pro

Google's Gemini 2.5 Pro tier.

Gemini 2.5 Flash

Google's Gemini 2.5 Flash tier.

DeepSeek R1

DeepSeek's reasoning model.

Llama 4 Maverick

Meta's Llama 4 Maverick.

Claude Haiku 5.5

Anthropic's smallest 5.5 tier, classification, extraction and tight loops.

Claude Sonnet 5.5

Anthropic's mid 5.5 tier (the one most teams settle on for coding).

GPT-6.1 Sol

OpenAI's GPT-6.1 main tier.

GPT-6.1 Terra

The lighter GPT-6.1 tier, priced below Sol.

Kimi K3.1 Pro

Moonshot's K3.1 Pro revision.

MiniMax M3.1 Flash

MiniMax's M3.1 flash tier, very low rate for high-frequency calls.

DeepSeek V4.1 Flash

DeepSeek's V4.1 flash build, dated 10-17.

Gemini 4 Argon

Google's first Gemini 4 tier to reach the gateway.

Head-to-head comparisons

Deciding between two specific models? These pages price both against each other — including the cases where the ranking changes once you use gateway rates instead of vendor list prices.

Claude vs GPT

Sonnet 5 against GPT-5.6 Terra on blended cost and monthly spend.

Opus 5 vs GPT-5.6 Sol

The pair where the list-price ranking flips at gateway rates.

Claude vs Gemini

The cheap tier, where volume amplifies every fraction of a cent.

GPT vs Gemini

The sub-$1 tier compared on real rates and monthly totals.

Opus 5 vs Sonnet 5

What the 2.5× multiplier costs, and the routing pattern that avoids it.

DeepSeek vs Claude

The widest price gap people actually compare, costed honestly.

Lowest-cost LLM APIs

Lowest blended rates in the index, plus each vendor's floor price.

Ways to pay for Claude

Direct, prepaid bundle or pay-as-you-go (with the prepay maths).

vs OpenRouter

Breadth versus per-token cost, and when to run both.

All nine comparisons, with both rate sets side by side →

Routing these rates into your tools

Every rate in the table above is reachable from one OpenAI-compatible endpoint, so whichever column you land on applies wherever you already work. These are the tools we have profiled end to end:

ToolWhat to set
LangChainone base_url kwarg — then check whether token usage still comes back
LlamaIndexOpenAILike for gateway IDs, and a second object for the embedding model
AutoGendeclare function_calling or tool use fails silently
OpenAI Agents SDKtracing exports to OpenAI by default; the default transport is Responses
Codex CLI0.122+ rejects wire_api = "chat" at config load
Gemini CLIa model without tool calls replies in prose and never touches the repo
CrewAIcustom_openai=True, and cost is agents × turns
DSPythe bill is in compile(), not in inference
Cursoroverride the base URL and bill your own key
LiteLLM model namesthe slash is a routing instruction — openai/, or nothing is sent
streaming callsstream_options, or every token count comes back null
an empty model pickerread /v1/models and type the id by hand
long sessionstwo caps, not one — the window and the maximum output
every tool we have profiledthe full matrix of what to set and where

Every one of these takes the same two values, a base URL and a key, and none of them require changing your code beyond where the client is constructed. The differences that matter are in each tool's defaults, which is what each guide covers.

Get access at these prices