Anthropic API logo
OpenAI API logo

Anthropic API vs OpenAI API

A side by side look at Anthropic API and OpenAI API: pricing, features and what each one is best for.

All comparisons

What it costs

Pricing
Paid
Pricing details
Usage-based API pricing per million tokens: Sonnet 5 $2 input / $10 output, Opus 5 $5 / $25, Fable 5.1 $10 / $50, Haiku 4.5 $1 / $5. Batch processing is 50% off. No subscription.
Free option
No free option

What it is

What it does
Anthropic API gives developers direct access to Claude for text, vision and tool use. Usage based, from $3 in and $15 out per million tokens.

The details

GitHub stars
3,835stars
License
MIT License
Last commit
19 Aug 2026

What it costs

Pricing
Paid
Pricing details
Usage-based pricing. GPT-4 Turbo: $10/$30 per million tokens
Free option
No free option

What it is

What it does
OpenAI API gives developers access to GPT models, embeddings, images and speech behind one key. GPT-4 Turbo at $10 in and $30 out per million.

The details

GitHub stars
2,479stars
License
MIT License
Last commit
19 Aug 2026
Anthropic API logo
OpenAI API logo

Read the full reviews

What each one is actually like to use, tested by hand rather than summarised from the vendor’s own page.

What we wrote about these