News for hackers. Stuff that matters.
Re:Show HN: Gemini OpenAI API Proxy. Serverless by WiSaGaN on Wednesday February 28, 2024 @01:02AM (#39534587)
openrouter provides access to gemini, and it has openai compatible API too. [1]

[1]: https://openrouter.ai/docs

Re:Show HN: Gemini OpenAI API Proxy. Serverless by anonzzzies on Wednesday February 28, 2024 @02:12AM (#39534968)
What’s with the sad region limitations on this thing? We are a company in a region that is allowed , but I live/work in a region that’s not allowed and the thing keeps being annoying. Does Google ever learn?
Re:Show HN: Gemini OpenAI API Proxy. Serverless by lobito14 on Wednesday February 28, 2024 @03:26AM (#39535442)
Compliance with local laws, probably regarding privacy.
Re:Show HN: Gemini OpenAI API Proxy. Serverless by android521 on Wednesday February 28, 2024 @04:42AM (#39535879)
but i can use openai in my country but not google ai. It is quite annoying that Google restricts access based on countries.
Re:Show HN: Gemini OpenAI API Proxy. Serverless by johnd0e_ on Wednesday February 28, 2024 @04:59AM (#39535998)
That is sad. But fixable, with this openai-gemini project. Try it!
Re:Show HN: Gemini OpenAI API Proxy. Serverless by johnd0e_ on Wednesday February 28, 2024 @04:56AM (#39535977)
This proxy can solve your problem. Just deploy it to Vercel or Netlify.
Re:Show HN: Gemini OpenAI API Proxy. Serverless by printvoid on Wednesday February 28, 2024 @08:38AM (#39537726)
What is the advantage because the model is anyways gpt-turbo 3.5 and not 4 which costs money.
Re:Show HN: Gemini OpenAI API Proxy. Serverless by silly_ninja on Wednesday February 28, 2024 @11:36AM (#39540330)
I had a similar question in mind.
Re:Show HN: Gemini OpenAI API Proxy. Serverless by johnd0e_ on Thursday February 29, 2024 @01:20AM (#39546841)
Model is in fact "gemini-pro" (and "gemini-pro-vision"). And in case of OpenAI "gpt-3.5-turbo" also costs money, if you want to use it via API.
Re:Show HN: Gemini OpenAI API Proxy. Serverless by rbatista19 on Thursday February 29, 2024 @06:48AM (#39548178)
Even if you use a VPN to get the Gemini API key, doesn't the Google server check your IP server location?
Re:Show HN: Gemini OpenAI API Proxy. Serverless by johnd0e_ on Thursday February 29, 2024 @09:37AM (#39549824)
Sure it does. But Vercel and Netlify servers are located in US, so..
Re:Show HN: Gemini OpenAI API Proxy. Serverless by rbatista19 on Thursday February 29, 2024 @01:37PM (#39553182)
Gotcha, thanks!