Install Gemini 3.7 Flash in the N8N AI Assistant

Hello, I want to install Gemini 3.7 Flash, but the AI assistant gives me an error once I add it. I write it a message and it responds directly with that error.

Previously I had Luna 5.6 and it worked perfectly, without any problems. Now I switched to Gemini 3.7 Flash and the chat gives me an error constantly.

I have no issue as I use this base url
https://generativelanguage.googleapis.com/v1beta/openai/v1

Hi @Andres3
Gemini over OpenRouter requires its reasoning details to be echoed back on every turn that carries a tool call, and the assistant does not send them, so OpenRouter answers with “Provider returned error” the moment the first tool fires. The assistant calls a tool on nearly every message, which is why it fails on whatever you type first. GPT-5.6 Luna carries no such requirement, so the same setup ran fine.
google also works as a provider prefix and hits the Gemini API natively, which avoids the whole thing. Swap these two in RepoCloud, using a key from AI Studio:

N8N_INSTANCE_AI_MODEL=google/gemini-3.7-flash
N8N_INSTANCE_AI_MODEL_API_KEY=your-ai-studio-key

Save and let the service restart. The docs page below only lists anthropic, openai and openrouter, but more providers than that are accepted.

On choosing between direct APIs and resellers for this:

This can only work for basic chatting, once there is tool call involved the following error will be encountered