Gemini API 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.
Gemini APIModel providerIn 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 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.
- 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 | 99 makers' products · 227 open-source projects | 734 makers' products · 481 open-source projects |
|---|---|---|
| Cost at default usageinput tokens 50 million tokens, output tokens 10 million tokens | $28/mo Gemini 3.1 Flash-Lite | $10/mo GPT-6 Luna |
| Moved to it on GitHubpull requests since Oct 2024 | 179+ from OpenAI API | 90+ from Gemini API |
| Downloads | 19.2M/wk6.5× vs npm | 34.1M/wk+61% vs npm |
| Pricing | Free tier with rate limits; pay per token. · paid from Pay per token | Pay per token. · paid from Pay per token |
| Free tier | Yes | No |
| Open source | No | No |
| Incidents, 90 daysfrom its status page | no public status feed | 25+ (4 major) |
Cost as you grow
At 1M tokens OpenAI API 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 | Gemini API | OpenAI API |
|---|---|---|
| 1 | $0.55 Gemini 3.1 Flash-Lite | $0.20 GPT-6 Luna |
| 5 | $2.75 Gemini 3.1 Flash-Lite | $1.00 GPT-6 Luna |
| 10 | $5.50 Gemini 3.1 Flash-Lite | $2.00 GPT-6 Luna |
| 50 | $28 Gemini 3.1 Flash-Lite | $10 GPT-6 Luna |
| 100 | $55 Gemini 3.1 Flash-Lite | $20 GPT-6 Luna |
| 500 | $275 Gemini 3.1 Flash-Lite | $100 GPT-6 Luna |
| 1,000 | $550 Gemini 3.1 Flash-Lite | $200 GPT-6 Luna |
| 5,000 | $2,750 Gemini 3.1 Flash-Lite | $1,000 GPT-6 Luna |
From each vendor's pricing page: Gemini API, OpenAI API.
Who moves from one to the other
Public pull requests on GitHub since Oct 2024 whose title says "Gemini API to OpenAI API" or the reverse — real code changes, by developers in general rather than makers only.
- feat(dh): switch listup web search from OpenAI to Geminigrowthhackerssnu/admin · 2026-10-01
- Switch production thumbnails from OpenAI to Geminikevin4relocate/TripCaution · 2026-09-30
- feat: move OpenAI and Google defaults to GPT-6 and Gemini 3tag1consulting/ai-pr-review · 2026-09-29
- Migrate from OpenAI to Google Gemini for embeddings and LLManiilhr/agentic-ai-rag-chatbot · 2026-09-29
- fix: preserve image parts in OpenAI to Gemini responsesmoeacgx/NewAPI-Mao · 2026-09-27
- Updating from OpenAI to Gemini in llm.py following the potential toke…harpand87/banking-support-agent · 2026-09-27
- Switch the assistant LLM from OpenAI to Geministariik/Mia · 2026-09-26
- port(upstream): #4274 - disambiguate colliding tool call ids in openai to geminibloodf/durindoor · 2026-09-25
- feat(gemini): convert OpenAI Embeddings to Gemini embeddingstbphp/gpt-load · 2026-09-25
- Switch AI provider from OpenAI to Google GeminiOricrew/service-scheduler · 2026-09-24
- gemini fallback to openai fixesmaximhq/bifrost · 2026-10-02
- Switch LLM backend from Gemini to OpenAI gpt-4o-miniPiSquareLabs/PathShala · 2026-09-30
- perf(gemini): Migrate Gemini to OpenAI formattisfeng/Easydict · 2026-09-29
- fixes foreign-function-call-id issue for fallback from gemini to openaimaximhq/bifrost · 2026-09-29
- Switch the model calls from Gemini to OpenAI gpt-5.4-miniMishaMatcharashvili/trip-io · 2026-09-25
- refactor: migrate AI insights service from Gemini API to OpenAI APITkYaLa34/AI-Investment-Research-Platform- · 2026-09-23
- Switch AI provider from Gemini to OpenAI, add dialogue lessons, fix e…aaryashah1010/Fluentify · 2026-09-22
- migrated from gemini to openai llmmohitgarg196/CodeVitals-AI · 2026-09-21
- Fix Gemini adapter to support OpenAI SDK client formatarvindg4u/APIKeyRotator · 2026-09-20
- Fix Gemini chat model + image fallback to OpenAIfabelanorma3010/How--to-wite--a-fiction-book · 2026-09-05
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.
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.
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.
- 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