Claude vs Gemini 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
Gemini APIModel providerIn 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 feed in whole documents, video or audio, or want to start without paying.
Trade-offFree-tier prompts may be used to improve Google's products, so paid tier is the one for user data.
At a glance
| Used by | 251 makers' products · 285 open-source projects | 99 makers' products · 227 open-source projects |
|---|---|---|
| Cost at default usageinput tokens 50 million tokens, output tokens 10 million tokens | $10/mo Claude Haiku 5.5 | $28/mo Gemini 3.1 Flash-Lite |
| Moved to it on GitHubpull requests since Oct 2024 | 108+ from Gemini API | 105+ from Claude |
| Downloads | 31.6M/wk4.1× vs npm | 19.2M/wk6.5× vs npm |
| Pricing | Pay per token. · paid from Pay per token | Free tier with rate limits; pay per token. · paid from Pay per token |
| Free tier | No | Yes |
| Open source | No | No |
| Incidents, 90 daysfrom its status page | 50+ (21 major) | no public status feed |
Cost as you grow
At 1M tokens Claude costs less ($0.20 vs $0.55); and still does at 5B tokens ($1,000 vs $2,750).
The numbers, plan by plan
| Input tokens per month | Claude | Gemini API |
|---|---|---|
| 1 | $0.20 Claude Haiku 5.5 | $0.55 Gemini 3.1 Flash-Lite |
| 5 | $1.00 Claude Haiku 5.5 | $2.75 Gemini 3.1 Flash-Lite |
| 10 | $2.00 Claude Haiku 5.5 | $5.50 Gemini 3.1 Flash-Lite |
| 50 | $10 Claude Haiku 5.5 | $28 Gemini 3.1 Flash-Lite |
| 100 | $20 Claude Haiku 5.5 | $55 Gemini 3.1 Flash-Lite |
| 500 | $100 Claude Haiku 5.5 | $275 Gemini 3.1 Flash-Lite |
| 1,000 | $200 Claude Haiku 5.5 | $550 Gemini 3.1 Flash-Lite |
| 5,000 | $1,000 Claude Haiku 5.5 | $2,750 Gemini 3.1 Flash-Lite |
From each vendor's pricing page: Claude, Gemini API.
Who moves from one to the other
Public pull requests on GitHub since Oct 2024 whose title says "Claude to Gemini API" or the reverse — real code changes, by developers in general rather than makers only.
- fix(refine): session-end refine uses gemini first, falls back to claude on availability failuresJohnGavin/llm · 2026-10-01
- Add Gemini as an alternative AI research provider to ClaudeNikros07/Eye-of-Horus · 2026-10-01
- Bring Codex CLI, Gemini CLI and Grok Build up to Claude Code's featuresoddessentials/agent-guild · 2026-09-30
- docs: migrate governance reviews from Gemini to ClaudeKaancodm/GeniusNew · 2026-09-27
- Add Gemini as a free alternative to ClaudeHarshith017/maxxtempo · 2026-09-26
- Add Gemini MCP server exposing ask_gemini tool to Claudekeshav321-kg/fintech · 2026-09-25
- Switch summary generation from Gemini back to Claudevarunsagar20/module2-DB · 2026-09-23
- Switch `update-github-info` from unpriced Gemini pin to priced Copilot Claude modelnaveedausaf/skills-agentic-workflows-that-read-the-room · 2026-09-17
- Switch AI content generation from Gemini to the Anthropic Claude APIkniepertsebastian-spec/learning · 2026-09-17
- chore(ci): triage every new issue with Gemini, and hand approved ones to Claude with claude:gohectorcanaimero/orch · 2026-09-14
- Switch the chatbot from Claude to Gemini (free tier)anelisa-lab/AI-Budgeting · 2026-09-29
- Migrate AI agent from Claude to Google GeminiVaishnavi6267/social-media-engagement-agent · 2026-09-28
- Switch model provider from Claude to Google Geminidhruhisheth/rightsline · 2026-09-26
- Switch AI backend from Anthropic Claude to Google Geminimasasukexx-tech/en-marketing-lp · 2026-09-22
- feat(agentcc): route Claude Agent SDK requests to Vertex Geminifuture-agi/future-agi · 2026-09-21
- Switch the LLM goal compiler from Claude to Geminiabimundayat26/twin-bank · 2026-09-20
- Switch the AI engine from Anthropic Claude to Google Gemini (free tier)itzvxie/demo-site · 2026-09-20
- Member 1: Switch AI agent from Claude to Gemini (free tier)Dibyajyoti882/MetricMind · 2026-09-20
- Migrate voice assistant from Claude to Google Gemini APIfeyyazonkal33/iddaa-analiz-app · 2026-09-17
- Switch AI rule parsing from Claude to Geminiananyaprabhakarm/AI-Backtesting-Agent · 2026-09-14
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.
Powers all agent conversations on Konfide. Fast, cost-effective, handles unlimited concurrent chats. Every user message goes through Gemini. Chose it for speed and quality at scale.
Gemini gives us another strong option for routing complex tasks. Fast response times and competitive pricing mean we can offer our customers more flexibility in how their automations run.
Saturn uses Gemini for structured data extraction from Japanese government filings (EDINET, gBizINFO). Best cost-performance ratio for Japanese language processing at scale.
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