Independent, documentation-based guides to AI tools and smart home tech. How we research

Home › AI Coding & APIs › OpenAI vs Anthropic API Pricing Compared

OpenAI vs Anthropic API Pricing Compared

Checked November 12, 2026 against developers.openai.com/api/docs/pricing and platform.claude.com/docs pricing (USD). This is a documentation-based comparison, not a hands-on test.

Quick verdict

Mid-tier models cost the same: Claude Sonnet 5.5 and gpt-6.1-sol are both $2 input / $10 output per million tokens, with $0.10 cached input.

Cheapest models match too: Claude Haiku 5.5 (prompts up to 100,000 tokens) and gpt-6-luna are both $0.10 / $0.50.

Top models differ: Claude Fable 5.2 at $8 / $40 is below gpt-6-astra at $10 / $50. The real gap shows up in long prompts, caching and add-ons.

Flat pastel illustration of two server stacks on a balance scale with small token coins flowing between them and a code bracket icon

Illustration: AI Tool Audit, created with Google Gemini

On this page
  1. How both APIs charge
  2. Headline prices per million tokens
  3. Long prompts
  4. Caching
  5. Batch, speed and region
  6. A tokenizer note
  7. Which API should you choose?
  8. FAQ

How both APIs charge

Both companies bill per million tokens (MTok), with separate prices for input and output. Output costs five times input on the models below. Both offer cheaper cached input, a batch mode at about half price, a web search tool, and an extra charge for keeping processing in one region. The headline rates are close; the details decide your bill.

Headline prices per million tokens

Price tierOpenAI modelInput / cached / outputAnthropic modelInput / cache hit / output
Topgpt-6-astra$10 / $1.00 / $50Claude Fable 5.2$8 / $0.20 / $40
Upper midNone at this pricen/aClaude Opus 5.5$4 / $0.20 / $20
Midgpt-6.1-sol$2 / $0.10 / $10Claude Sonnet 5.5$2 / $0.10 / $10
Lower midgpt-6.1-terra$1 / $0.05 / $5None at this pricen/a
Smallgpt-6-luna$0.10 / $0.01 / $0.50Claude Haiku 5.5 (prompts up to 100K)$0.10 / $0.01 / $0.50

OpenAI prices shown are its Standard tier for prompts up to 272,000 input tokens. Both companies list older models at other prices; see our OpenAI API pricing explainer and Anthropic API pricing explainer for the full tables.

Long prompts

This is the biggest structural difference. Anthropic says Claude 4.6 and later models, except Haiku 5.5, include the full 1-million-token context window at standard pricing. A very long prompt costs the same per token as a short one.

OpenAI charges more once a prompt passes 272,000 input tokens. For example, gpt-6.1-sol rises to $4 input and $15 output, and gpt-6-astra to $20 and $75. Claude Haiku 5.5 has its own threshold: prompts over 100,000 tokens pay $0.50 input and $2.50 output. If you feed whole codebases or long contracts into a model, Anthropic's flat pricing on Sonnet, Opus and Fable can save a lot.

Caching

Both charge less for reused prompt prefixes, and both list a price to write to the cache.

  • Anthropic: a 5-minute cache write costs 1.25x base input and a 1-hour write 2x. Cache hits are 0.1x base input on most models, 0.05x on Opus 5.5 and Sonnet 5.5, and 0.025x on Fable 5.2.
  • OpenAI: cached input is listed per model (for example $0.10 on gpt-6.1-sol). The GPT-6 tables also show 30-minute and 12-hour write prices; gpt-6-astra lists $12.50 and $25.

On the matched mid-tier pair, a cache hit costs $0.10 on both. On top models, Fable 5.2's $0.20 cache hit is well below gpt-6-astra's $1.00, which matters for agents that resend the same long system prompt.

Batch, speed and region

OptionOpenAIAnthropic
BatchAbout half of Standard (gpt-6.1-sol: $1 / $5)50% off input and output
Cheaper slow tierFlex, at Batch ratesNot listed
Faster tierFast (formerly Priority), about 2x Standard; Ultrafast above thatFast mode on select models, up to 2.5x output speed at premium prices; not available with Batch
Region pinning10% uplift for regional endpoints on models released on or after March 5, 20261.1x for US-only inference on Claude 4.6 and later
Web search tool$10 per 1,000 calls plus content tokens$10 per 1,000 searches plus content tokens

A tokenizer note

Price per token is only half the math. Anthropic says Claude 4.7 and later models use a newer tokenizer that produces about 30% more tokens for the same text. So the same document can cost more tokens on Claude Sonnet 5.5 than on an older Claude model, even at the same rate. Test your own prompts on both APIs and compare the usage each one reports before you commit.

Which API should you choose?

  • High-volume simple tasks: gpt-6-luna and Claude Haiku 5.5 cost the same on short prompts. Pick on quality for your task; Haiku gets pricier above 100,000 tokens.
  • General apps and coding agents: gpt-6.1-sol and Claude Sonnet 5.5 are priced the same. Long-context work leans to Sonnet because there is no surcharge.
  • Budget between small and mid: gpt-6.1-terra at $1 / $5 has no Anthropic match.
  • Top-end reasoning: Claude Fable 5.2 is cheaper per token and per cache hit than gpt-6-astra; Claude Opus 5.5 at $4 / $20 is a middle step OpenAI doesn't offer at that price.
  • Heavy personal use: Claude Max and Ultra subscriptions include monthly API credits; see Claude vs ChatGPT plans.

Also useful: best AI coding tools, Gemini API pricing and the AI tool price table.

FAQ

Is the Claude API cheaper than OpenAI?

It depends on the model. Mid-tier and small models cost the same per token on short prompts. Claude Fable 5.2 ($8 / $40) is cheaper than gpt-6-astra ($10 / $50), and Claude has no long-context surcharge on most models.

Do both APIs offer a batch discount?

Yes. Anthropic's Batch API is 50% off input and output. OpenAI's Batch tier is about half of Standard, and its Flex tier lists the same rates.

How much does web search cost on each API?

Both charge $10 per 1,000 searches or calls, plus the tokens for search content billed at the model's rates.

Does keeping data in the US cost more?

Yes, on both. Anthropic applies 1.1x for US-only inference on Claude 4.6 and later. OpenAI adds 10% for regional processing on models released on or after March 5, 2026.

How much does the Anthropic API cost?

Anthropic bills per million tokens: Claude Haiku 5.5 is $0.10 input / $0.50 output (prompts up to 100K tokens), Sonnet 5.5 is $2 / $10, Opus 5.5 is $4 / $20 and Fable 5.2 is $8 / $40. Batch mode takes 50% off. Full tables: Anthropic API pricing explained.

Sources

All our AI API pricing guides

Every guide in this topic, A to Z (26).