All comparisons


| Visit Anthropic API | Visit OpenAI API | |
|---|---|---|
| What it costs | ||
| Pricing | Paid | 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. | Usage-based pricing. GPT-4 Turbo: $10/$30 per million tokens |
| Price range | Usage based, no flat monthly plan | Usage based, no flat monthly plan |
| Free option | No 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. | 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 | 3,835stars | 2,479stars |
| License | MIT License | MIT License |
| Last commit | 19 Aug 2026 | 19 Aug 2026 |
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.
- Price range
- Usage based, no flat monthly plan
- 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
- Price range
- Usage based, no flat monthly plan
- 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
Read the full reviews
What each one is actually like to use, tested by hand rather than summarised from the vendor’s own page.





















