Google Gemini API not working in Wappler

Hi everyone,

I've been trying to connect Google's Gemini API as a custom AI provider in Wappler, using the new OpenAI-compatible endpoint that Google provides.

Here’s the setup I tested:

  • Chat Provider: Custom
  • Base URL: https://generativelanguage.googleapis.com/v1beta/openai/v1
  • API Key: (directly generated from Google AI Studio – not the old AIza..., but a proper Gemini API key)

The same configuration works perfectly when testing with Postman and curl, using the /chat/completions endpoint and the correct JSON body.

However, in Wappler, the AI assistant doesn’t respond at all. It seems like Wappler doesn’t yet support this OpenAI-compatible Gemini endpoint, even though it follows the same structure.

Feature suggestion:

It would be great if Wappler added a dedicated “Google Gemini” option under the Chat Provider dropdown.

Thanks!

Checking the docs for Gemini the base url should be https://generativelanguage.googleapis.com/v1beta/openai/ without the v1 at the end. We support any endpoint that is OpenAI compatible.

1 Like

Thanks Patrick,

You were right, I just tested it again and it works, but only after restarting Wappler and making sure the Base URL is:

https://generativelanguage.googleapis.com/v1beta/openai

(without the trailing slash), I think that final slash was breaking the request.

Appreciate the quick reply! :muscle:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.