Hi, does anyone know how to fix this issue when using the Gemini 2.5 Flash model in n8n? The error is:
Bad request - please check your parameters
[GoogleGenerativeAI Error]: Error fetching from https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:streamGenerateContent?alt=sse: [400 Bad Request] * GenerateContentRequest.contents[0].parts: contents.parts must not be empty.
Hi @Prueba_Dos , welcome to the forum.
Have you tried calling the gemini-2.5-flash model API outside of n8n, maybe using something like curl
or Postman? That could help rule out whether the issue is with the Gemini API itself or something specific to how it is set up in n8n.
Hi, thanks for your reply. Could you please tell me how to check this and I’ll let you know? I can try it with the Windows Terminal.
You can refer to our cookbook for a quick start.