Skip to main content

AI Resources

Claude vs OpenAI API pricing

Claude and OpenAI API prices side by side: model tiers, current models, the cost of the same workload and what each API supports, read from the providers' own pricing pages.

Last verified: October 13, 2026

AnthropicOpus 5.5 and Fable 5.1 offer 1M context at standard token rates, with model-specific cache discounts.

OpenAIGPT-6 Astra, GPT-6.1 Sol and GPT-6 Luna cover reasoning, coding and high-volume work, with separate image and voice models.

Tier by tier

The closest model of each provider at four levels, shown as input / output price per million tokens.

TierClaudeOpenAI
FlagshipFable 5.1$10/$50GPT-6 Astra$10/$50
MidSonnet 5.5$2/$10GPT-6.1 Sol$2/$10
BudgetHaiku 4.5$1/$5GPT-6 Luna$0.10/$0.50
ReasoningOpus 5.5$4/$20GPT-6 Astra$10/$50

Cost of the same workload

Base token-cost estimate for 10 equal requests: 100K input + 10K output tokens each (1M + 100K total). Only models with documented limits covering each request are shown. DeepSeek uses peak rates; its cached row assumes all input hits an existing cache, excluding warm-up misses. Gemini 2.5 requires prior active use. Cache writes, storage, tools, media and service premiums are excluded.

ClaudeCost
Claude Sonnet 5.5$3.00
Claude Sonnet 5$3.00
Claude Opus 5.5$6.00
Claude Opus 4.6$7.50
Claude Opus 5$7.50
Claude Fable 5.1$15.00
Claude Fable 5$15.00
OpenAICost
GPT-6 Luna$0.15
GPT-5.6 Luna$0.32
GPT-5.4 Nano$0.33
GPT-5.4 Mini$1.20
GPT-6.1 Sol$3.00
GPT-6 Sol$3.00
GPT-5.6 Terra$3.20
GPT-5.6 Sol$6.00
GPT-6 Astra$15.00

Open the cost calculator

Anthropic models and prices

ModelAPI IDInputOutputBatch in/outCache hitContextMax out
Fable 5.1claude-fable-5-1$10.00$50.00$5.00 / $25.00$0.251M128K
Opus 5.5claude-opus-5-5$4.00$20.00$2.00 / $10.00$0.201M128K
Mythos 5.1claude-mythos-5-1$10.00$50.00$5.00 / $25.00$0.251M128K
Mythos 5claude-mythos-5$10.00$50.00$5.00 / $25.00$1.001M128K
Sonnet 5.5claude-sonnet-5-5$2.00$10.00$1.00 / $5.00$0.101M128K
Haiku 5.5claude-haiku-5-5$0.10 / $0.50$0.50 / $2.50$0.05 / $0.25; $0.25 / $1.25$0.01 / $0.051M128K

Fable 5.1 and Mythos 5.1 cache reads cost 2.5% of base input; Opus 5.5 and Sonnet 5.5 reads cost 5%; other listed models use 10%. Five-minute writes cost 1.25x input and one-hour writes 2x, without a separate storage fee. Batch discounts input and output by 50%. Fable 5.1, Opus 5.5 and Sonnet 5.5 provide 1M context at standard rates. Haiku 5.5 has 1M context but higher rates above 100K prompt tokens, including cached tokens. Its directory cells show up-to-100K then above-100K rates; each batch pair is input/output. Output limits shown are standard limits, excluding Batch betas. Opus 4.1 retired on August 5, 2026. Opus 5.5, Sonnet 5.5 and Haiku 5.5 additionally support 300K maximum output on the Message Batches API with the output-300k-2026-03-24 beta header. Sonnet 4.5 was deprecated on 2026-09-30 and is scheduled to retire on 2026-11-30; Anthropic recommends claude-sonnet-5-5.

OpenAI models and prices

ModelAPI IDInputCachedOutputContextMax out
GPT-6 Astragpt-6-astra$10.00$1.00$50.001.05M128K
GPT-6.1 Solgpt-6.1-sol$2.00$0.10$10.001.05M128K
GPT-6 Solgpt-6-sol$2.00$0.20$10.001.05M128K
GPT-6 Lunagpt-6-luna$0.10$0.01$0.501.05M128K
GPT-5.6 Solgpt-5.6-sol$4.00$0.40$20.001.05M128K
GPT-5.6 Terragpt-5.6-terra$2.00$0.20$12.001.05M128K
GPT-5.6 Lunagpt-5.6-luna$0.20$0.02$1.201.05M128K
GPT-5.5gpt-5.5$5.00$0.50$30.001.05M128K
GPT-5.5 Progpt-5.5-pro$30.00N/A$180.001.05M128K
GPT-5.4gpt-5.4$2.50$0.25$15.001.05M128K
GPT-5.4 Progpt-5.4-pro$30.00N/A$180.001.05M128K
GPT-5.4 Minigpt-5.4-mini$0.75$0.075$4.50400K128K

GPT-6 prices shown are Standard rates through 272K input tokens. Above that threshold, the full request uses 2x input/cache and 1.5x output rates. GPT-5.6 and later cache writes cost 1.25x uncached input instead of an additive fee; GPT-6.1 Sol reads cost 5% of input and the other listed GPT-6 models use 10%, with implicit or explicit caching from 1,024 tokens. Earlier-model minima vary; Pro rows do not list a cache discount. GPT-6 Batch/Flex cost 50% of Standard and Fast mode 2x. GPT-5.6 Sol pricing is promotional through at least November 21, 2026. Check individual older-model long-context rules. The 2x long-context multiplier also applies to cache writes. The fine-tuning platform is closed to new users. Astra Ultrafast short-context rates are $60 input, $6 cached input, $75 cache writes and $300 output per million tokens. GPT-5.4 Nano and GPT-5.3 Codex are deprecated, with shutdown scheduled for 2027-04-01.

What each API supports

CapabilityClaudeOpenAI
Vision (image in)YesYes
Video inputNot documentedNot documented
Audio inputNot documentedRealtime 2.1
PDF inputPDF text and page imagesPDF text and page images
Image generationNot documentedGPT Image 2.5
Video generationNot documentedVideos API shut down 2026-09-24
Text to speechNot documentedRealtime 2.1 Mini
EmbeddingsNot documentedtext-embedding-3-small
Web search$10/1K$10/1K
Tool / function callingYesYes
Structured JSONSchema enforcedSchema enforced
Reasoning modeAdaptive thinkingEffort levels
Code fill-in-the-middleNot documentedNot documented
Prompt caching90–97.5% off cache readsGPT-6: 90–95% off reads; 1.25x writes
Batch APIYes, 50% offYes, 50% off
Long-context surchargeHaiku 5.5: higher rates above 100K prompt tokensGPT-6 above 272K: 2x input/cache/write, 1.5x output
Free tierTrial creditsNot documented
Max context1M1.05M
Max output128K standard; 300K on selected Batch betas128K
OpenAI SDK compatibleTesting layer; no prompt caching or strict schemasNative
Data sovereigntyUS residency (1.1x)Regional (1.1x)

Sources

Every figure on this page was read from the provider's own pricing documentation on the verification date shown above.

  • Anthropichttps://platform.claude.com/docs/en/about-claude/pricing
  • OpenAIhttps://developers.openai.com/api/docs/pricing