Claude vs OpenAI API
Two model provider options for LLM API. When each fits, what it costs, who moves from one to the other, and what makers who chose it say.
ClaudeModel providerllms.txtIn Lovable, Replit
OpenAI APIModel providerllms.txtIn Lovable, ReplitWhich fits you
- You want the strongest general models and the widest ecosystem of examples and integrations
Use it whenYour feature is an agent that calls tools, writes code or works through long documents.
Trade-offNo image generation or embedding models of its own, so those need a second provider.
- You want the strongest general models and the widest ecosystem of examples and integrations
Use it whenYou want one account that covers text, images, speech and embeddings, with the most examples to copy from.
Trade-offFrequent model and API changes to keep up with, and no option to run its hosted models elsewhere.
At a glance
| Used by | 251 makers' products · 285 open-source projects | 734 makers' products · 481 open-source projects |
|---|---|---|
| Cost at default usageinput tokens 50 million tokens, output tokens 10 million tokens | $10/mo Claude Haiku 5.5 | $10/mo GPT-6 Luna |
| Moved to it on GitHubpull requests since Oct 2024 | 127 from OpenAI API | 89 from Claude |
| Downloads | 31.6M/wk4.1× vs npm | 34.1M/wk+61% vs npm |
| Pricing | Pay per token. · paid from Pay per token | Pay per token. · paid from Pay per token |
| Free tier | No | No |
| Open source | No | No |
| Incidents, 90 daysfrom its status page | 50+ (21 major) | 25+ (4 major) |
Cost as you grow
They cost the same at every scale we price, up to 5B tokens.
The numbers, plan by plan
| Input tokens per month | Claude | OpenAI API |
|---|---|---|
| 1 | $0.20 Claude Haiku 5.5 | $0.20 GPT-6 Luna |
| 5 | $1.00 Claude Haiku 5.5 | $1.00 GPT-6 Luna |
| 10 | $2.00 Claude Haiku 5.5 | $2.00 GPT-6 Luna |
| 50 | $10 Claude Haiku 5.5 | $10 GPT-6 Luna |
| 100 | $20 Claude Haiku 5.5 | $20 GPT-6 Luna |
| 500 | $100 Claude Haiku 5.5 | $100 GPT-6 Luna |
| 1,000 | $200 Claude Haiku 5.5 | $200 GPT-6 Luna |
| 5,000 | $1,000 Claude Haiku 5.5 | $1,000 GPT-6 Luna |
From each vendor's pricing page: Claude, OpenAI API.
Who moves from one to the other
Public pull requests on GitHub since Oct 2024 whose title says "Claude to OpenAI API" or the reverse — real code changes, by developers in general rather than makers only.
- Migrate AI provider from OpenAI to Anthropic Claudesawthunaing/stn-job-hunting-dashboard-with-ai · 2026-10-01
- Preserve readable context when switching owned OpenAI to ClaudeJJLiebig/codex · 2026-10-01
- Add OpenAI Codex plugin marketplace to Claude Code project settingsbrandohermoso47-rgb/cliente-vault-web-app · 2026-10-01
- Switch Wardrobe from OpenAI to Claudenjarrar/wardrobe-najeeb · 2026-09-28
- Switch receipt extraction from OpenAI to Claudebelindahbl/receipt-telegram-bot · 2026-09-26
- Switch AI copy from OpenAI to Claude Haiku 4.5fareeha-s/shouldve-walked · 2026-09-26
- Phase 1: Switch AI provider from OpenAI to Anthropic Claudeanfaznil/tabletalk-ai · 2026-09-23
- fix(thinking): route OpenAI and level-based reasoning models to claude-adaptive on Claude endpointshkbulbul/polyrouter · 2026-09-23
- Switch FAQ replies from OpenAI to Anthropic Claudeimranaisolutions/Agentic-Ai · 2026-09-23
- Switch AI provider from OpenAI to Claude, and hand redirects to AJR Core (4.1.0)andrew-ajrwebdesign/ai-seo-assistant · 2026-09-22
- fix: round-trip Claude tool_use to OpenAI tool_callsks1686/peaproxy · 2026-09-27
- Switch receipt AI scan from Claude to OpenAIianselmi/cardmaster · 2026-09-26
- Migrate from Claude to OpenAI API for synthesis toolsarkhash0309/research-paper-intelligence-pipeline · 2026-09-25
- Switch Alora Chat from Claude to OpenAIvaniabhagania/Alora · 2026-09-24
- Migrate all Claude resume tailoring to OpenAIrfahamedansari/job-application-assistant · 2026-09-23
- feat(claude): map output_config.format to OpenAI response_formatrouter-for-me/CLIProxyAPI · 2026-09-23
- feat(claude-boxes): allow codex egress to the OpenAI auth and API hostsLanternfyre/home-lab · 2026-09-22
- [synthmind-bot] Security Researchers Use Anthropic Claude to Hack OpenAI — 2026-09-18administrakt0r/AIautonomousBlogMY · 2026-09-18
- Switch LLM provider from Anthropic Claude to OpenAI GPT-4o.sji-soumik/ai-assessment · 2026-09-11
- fix: clamp Claude Code egress to OpenAI and Gemini (RUN-1515)NeuralTrust/TrustGate · 2026-09-10
What makers say
Makers on using it for LLM API, from Product Hunt and Starter Story interviews, each linked to the source. Products with a page of their own and fuller notes first.
Taskade Genesis works beautifully with Claude. It brings strong reasoning and long-range thinking to any Genesis app, helping systems plan, adapt, and make sense of complex inputs.
We're excited about Claude-3.5 Sonnet and the upcoming 3.5 Opus. We'll introduce Opus to AICamp users upon release. We use Sonnet for its superior pair programming capabilities.
Huge shoutout to the Anthropic team — their Claude models are the backbone of some of our agents. Fast, reliable, and beautifully open‑source. Exactly what the AI world needs more of.
We use GPT-5.6 to power the Basedash AI data analyst. It's incredibly intelligent and, with the right harness, allows us to rank #1 on BI Bench for solving real-world BI scenarios.
Credit where it’s due: OpenAI’s dev tools made it incredibly easy to prototype and test multiple ideas fast. Still unmatched when you need raw speed, documentation, and flexibility.
Quven writes subtitles from the audio of a film on the machine of the user. The Whisper models, run locally through whisper.cpp, can do it and the audio never leaves that machine.
Loved and watch-outs
Themes that recur in makers' words and Hacker News comments, each linked to what it summarises.
- Outages are frequent, with uptime below three nines across the API and apps. HNHN 2HN 3HN 4
- API pricing is a large multiple of subscription pricing, making heavy agent use expensive. HNHN 2HN 3
- Postmortems confirmed periods of degraded output, including a lowered default reasoning effort in Claude Code. HN
- Its models are strong at code generation, reasoning and creative tasks, often chosen after testing alternatives. PHPH 2PH 3PH 4
- The API is reliable and well-priced as the foundation for production features. PHPH 2PH 3HN
- Good docs and a smooth developer experience make integration straightforward. PHPH 2PH 3PH 4