AI model API prices and limits for coding

31 current API models from Anthropic, OpenAI, Google, xAI, DeepSeek, with the prices and limits each provider lists on its own pricing page. Read November 5, 2026.

Want a coding agent without managing API keys? CodeGPT runs an AI coding agent (Claude Sonnet 5.5) in your browser: describe a change, watch it write and run the code, download the project. 5 free agent requests a month once you confirm your email; Pro is $20 a month for 100 — $0.20 a request.
Try CodeGPT free

Prices per million tokens

Sorted by the cost of a typical coding-agent request: 100K input tokens (your code and the conversation) and 8K output tokens, at standard prices without caching or batch discounts. Agents that cache context pay less for repeated input.

ModelProviderInputOutputContextMax outputTypical request
Gemini 2.5 Flash-LiteGoogle$0.1$0.4——$0.013
gpt-6-lunaOpenAI$0.1$0.5——$0.014
Claude Haiku 5.5Anthropic$0.1$0.5——$0.014
Gemini 3.1 Flash-LiteGoogle$0.25$1.5——$0.037
deepseek-flashDeepSeek$0.3$1.21M384K$0.040
Gemini 3.5 Flash-LiteGoogle$0.3$2.5——$0.050
Gemini 3.6 FlashGoogle$0.75$3.75——$0.105
Gemini 3.8 FlashGoogle$0.75$3.75——$0.105
Claude Haiku 4.5Anthropic$1$5——$0.140
gpt-6.1-terraOpenAI$1$5——$0.140
deepseek-v4-proDeepSeek$1.32$3.961M384K$0.164
grok-4.7xAI$2$6500K—$0.248
Claude Sonnet 5.5Anthropic$2$101M—$0.280
Gemini 4 ArgonGoogle$2$10——$0.280
Claude Sonnet 5Anthropic$2$101M—$0.280
gpt-6.1-solOpenAI$2$10——$0.280
gpt-5.3-codexOpenAI$1.75$14——$0.287
Gemini 3.1 Pro PreviewGoogle$2$12——$0.296
Claude Sonnet 4.5Anthropic$3$15——$0.420
Claude Sonnet 4.6Anthropic$3$151M—$0.420
Claude Opus 5.5Anthropic$4$201M—$0.560
Claude Opus 4.5Anthropic$5$25——$0.700
Claude Opus 4.6Anthropic$5$251M—$0.700
Claude Opus 4.7Anthropic$5$251M—$0.700
Claude Opus 4.8Anthropic$5$251M—$0.700
Claude Opus 5Anthropic$5$251M—$0.700
gpt-6-astraOpenAI$10$50——$1.40
Claude Fable 5.1Anthropic$10$50——$1.40
Claude Mythos 5Anthropic$10$50——$1.40
Claude Fable 5Anthropic$10$50——$1.40
Claude Mythos 5.1Anthropic$10$50——$1.40

“—”: the pricing page doesn't state it. 9 models the providers mark as legacy or deprecated are left out, and 10 specialized ones (life sciences, security, legal, robotics, chat aliases, prices given only as examples).

Notes from the pricing pages

How this was made

We read each provider's official pricing page on November 5, 2026. An AI model listed the models and numbers on each page; we kept a number only when the page shows it in the words quoted for it, and a model only when both prices passed that check. Prices change often — check the provider's page before you rely on a number. Sources: Anthropic, OpenAI, Google, xAI, DeepSeek, Mistral.