N8N autonmation help for gemini image generation

Hi @Trilogy_Elektronik , welcome to our community, I’m Jay, nice to help!

You already got a great high-level outline from @achamm, I’ll just add a few very practical notes that should make Gemini easier to plug in.

If you’re using Gemini, I’d recommend sticking to one of these models:

  • gemini-3.1-flash-lite for fast and cheap bulk generation

  • gemini-3.5-flash if you want the best quality and can afford a bit more cost

In n8n, instead of an HTTP Request node, use the built-in Google Gemini node:

  • Set the operation to Image → Edit Image so you can send both the product photo and the model photo, plus your prompt.

  • Create a Google Gemini (PaLM) API credential using an API key from Google AI Studio, then select that credential in the node.

  • Choose the model (gemini-3.1-flash-lite or gemini-3.5-flash) in the node settings, map your two input images, and you’re good to go.

The Gemini node will give you the result as a binary image, which you can pass directly into a Google Drive node to save it into the right product folder.