Gemini API vs OpenAI API
Of the 987 makers' products we know the LLM API of, 736 chose OpenAI API (75%) and 99 Gemini API (10%); 48 use both. Among the 281 launched in 2026, Gemini API is in 11% and OpenAI API in 70%, against 8% and 82% of those launched in 2024 or earlier. At our calculator's default usage, Gemini API comes to $28 a month and OpenAI API $10, at list prices. On GitHub, 90 public pull requests moved projects from Gemini API to OpenAI API, and 178 the other way.
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, Replit, RorkWhich 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 · 278 open-source projects | 736 makers' products · 596 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 | 178+ from OpenAI API | 90+ from Gemini API |
| Downloads | 22.2M/wk4.9× vs npm | 37.4M/wk+60% 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 | 5+ |
Which makers on your framework pick
Makers' products built with each framework that chose either one, for LLM API.
| Framework | |||
|---|---|---|---|
| 40 | 222 | All 301 Next.js products' picks → | |
| 6 | 23 | All 38 React products' picks → | |
| 6 | 17 | All 27 Astro products' picks → |
New launches vs older products
A tool that came first has products from every year since, so its total runs ahead. Here is what products launched each year chose, as a share of those that made the LLM API decision (by the year they launched on Product Hunt).
| Launched | Products | ||
|---|---|---|---|
| 2022 or earlier | 8% 5 | 88% 58 | 66 |
| 2023 | 8% 3 | 78% 29 | 37 |
| 2024 | 8% 18 | 80% 178 | 222 |
| 2025 | 14% 39 | 70% 190 | 273 |
| 2026 | 11% 30 | 70% 197 | 281 |
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.
Saturn uses Gemini for structured data extraction from Japanese government filings (EDINET, gBizINFO). Best cost-performance ratio for Japanese language processing at scale.
Gemini pairs naturally with Taskade Genesis. It excels at perception and structure, giving Genesis apps sharper understanding of documents, images, and real-world context.
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.
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.
We use variety of OpenAI models (o1, 4o, 4o-mini) and leverage their multi-modal and fine-tuning capabilities to enable multi-step categorization and other domain specific workflows.
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
Who uses each
What makers pair each with
Neither quite right?
See the whole LLM API decision →Questions
Gemini API or OpenAI API: which do makers choose?
Of the 987 makers' products we know the LLM API of, 736 chose OpenAI API (75%) and 99 Gemini API (10%); 48 use both. Among the 281 launched in 2026, Gemini API is in 11% and OpenAI API in 70%, against 8% and 82% of those launched in 2024 or earlier. At our calculator's default usage, Gemini API comes to $28 a month and OpenAI API $10, at list prices. On GitHub, 90 public pull requests moved projects from Gemini API to OpenAI API, and 178 the other way. Choose Gemini API if you want the strongest general models and the widest ecosystem of examples and integrations; choose OpenAI API if you want the strongest general models and the widest ecosystem of examples and integrations.
Can you use Gemini API and OpenAI API together?
48 makers' products we track use both, often one replacing the other or each for a different part of the product: Agentplace.io, Automaticall, Ciro, Doraverse, Eddie AI and others.
When should I pick Gemini API over OpenAI API?
Pick Gemini API if: You want the strongest general models and the widest ecosystem of examples and integrations.
When should I pick OpenAI API over Gemini API?
Pick OpenAI API if: You want the strongest general models and the widest ecosystem of examples and integrations.
Which is cheaper, Gemini API or OpenAI API?
At input tokens 50 million tokens, output tokens 10 million tokens: Gemini API $28/mo (Gemini 3.1 Flash-Lite), OpenAI API $10/mo (GPT-6 Luna), at list prices.
How do Gemini API and OpenAI API compare in 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). Cheapest usable plan at each scale, at list prices.
Are people switching from Gemini API to OpenAI API?
Public GitHub pull requests since 2024-10-02: 90+ from Gemini API to OpenAI API, 178+ from OpenAI API to Gemini API.