Migrate from OpenAI API to Gemini API

178+ public pull requests on GitHub since Oct 2024, in 167 repos, say they move a project from OpenAI API to Gemini API. 90+ go the other way. Real code changes by developers in general, not only makers — read from the titles, so a PR is counted when its title says "OpenAI API to Gemini API".

When they moved

Pull requests a month. Most are recent: 178 in the last 13 months against 0 before. The busiest month was Mar 2026 (30). GitHub returned only the newest 500 matches, so earlier months are undercounted.

Oct 2024Oct 2026 (so far)

What they move

The part of the app a pull request's title names — "migrate auth from OpenAI API to Gemini API". Many titles name none, so the shares don't add up to 100%.

  • Models and prompts24% 43 of 178
  • API and functions24% 43 of 178
  • Deployment3% 5 of 178
  • Storage2% 4 of 178
  • Realtime2% 3 of 178
  • Docs2% 3 of 178

The newest 20 pull requests

All matching pull requests on GitHub, both ways ↗

OpenAI API and Gemini API, side by side

Among makers' products we track for LLM API: OpenAI API 728, Gemini API 99.

At input tokens 50 million tokens, output tokens 10 million tokens, OpenAI API costs $10/mo (GPT-6 Luna) and Gemini API $28/mo (Gemini 3.1 Flash-Lite), at list prices.

$0$100$500$1,000$2,0001510501005001k5k
Gemini APIOpenAI APIx: input tokens per month (million tokens), other usage scaled with it · cheapest usable plan at each point, list prices · try your own numbers

Where else OpenAI API projects go

Where else Gemini API's newcomers come from

Questions

How many projects have moved from OpenAI API to Gemini API?

178+ public pull requests on GitHub since Oct 2024, in 167 repos, have a title saying they move from OpenAI API to Gemini API.

Do projects move back from Gemini API to OpenAI API?

Yes: 90+ pull requests over the same time go from Gemini API to OpenAI API, against 178+ from OpenAI API to Gemini API.

What do people move first from OpenAI API to Gemini API?

Of the pull request titles, 24% name models and prompts, 24% name API and functions.

Is Gemini API cheaper than OpenAI API?

At input tokens 50 million tokens, output tokens 10 million tokens: OpenAI API $10/mo (GPT-6 Luna), Gemini API $28/mo (Gemini 3.1 Flash-Lite), at list prices.

GitHub search, Oct 2026 (as of 2026-10-02).