I’m currently trying to build an HTTP Request node in n8n to send a prompt to the Gemini image generation model.
The problem is that no matter what I do, the node always returns json:false. Because of this, it seems like the Gemini API server can’t properly interpret my request.
Set the Body Content Type to RAW, and pasted in the JSON body.
Turned Send Headers toggle on and manually added Content-Type: application/json.
Nothing works — the output always shows json:false.
I’ve discussed this with ChatGPT in detail and tried many different setups, but the conclusion even there was that this might be an internal issue with how n8n handles the request formatting.
Could anyone help me out here?
Thanks in advance!
What is the error message (if any)?
The resource you are requesting could not be found
models/gemini-2.0-flash-preview-image-generation is not found for API version v1beta, or is not supported for generateContent. Call ListModels to see the list of available models and their supported methods.
Thank you!
Unfortunately, even when I generate a new API key — or create one using a completely different Google account — it still doesn’t work on my end.
I’m not sure why, but it seems to be a very specific or rare bug.
I think I’ll have to try a different method for generating images.
having the same problem too. i thought it was no big deal, but meanwhile it looks like this is the reason my requests don’t work, since i’ve double and tripe checked everything else. please help
I have the exact same bug on my end and therefore cannot send HTTP requests either. n8n please fix this error with the http node that always sends json: false no matter how you configure it.
Same issue here. Self-hosting n8n and I’m trying to make a http request and whatever I try the request always has “json: false” which stops it from working.