Templates / Generate marketing images in a webhook image studio with Google Gemini

Generate marketing images in a webhook image studio with Google Gemini

Ready for 3.0

by Andrés L ✓ · 27 views · created 2026-08-24 · Content Creation, Multimodal AI

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 18 nodes and runs when an HTTP GET request hits its webhook URL. Along the way it connects Google Gemini.

How it runs

Trigger: When an HTTP GET request hits its webhook URL.

  1. Settings (UI) (Edit Fields (Set)): sets 5 fields: ui_title, ui_subtitle, max_images…
  2. Settings (generator) (Edit Fields (Set)): sets 3 fields: gemini_model, max_images, max_file_mb
  3. Build studio page (Code): runs custom JavaScript code
  4. Validate & build prompt (Code): runs custom JavaScript code
  5. Respond with studio page (Respond to Webhook): sends the response back to the webhook caller
  6. Request valid? (If): checks a condition and branches into true / false
  7. How many images? (Switch): routes items into 3 branches
  8. Respond 400 (bad request) (Respond to Webhook): sends the response back to the webhook caller
  9. Gemini: text to image (Google Gemini): work with image
  10. Gemini: edit 1 image (Google Gemini): edit (image)

…plus 7 more steps. See the full node list below.

Services it uses

Google Gemini

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (8)

From the author

Quick overview This workflow serves a self-hosted HTML “Image Studio” via webhook and uses Google Gemini to generate or edit images from one or two reference uploads, returning the result as a downloadable data URL with prompt and metadata. How it works 1.…

Excerpt from Andrés L's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.