Skip to main content

Generate product mockups with Nano Banana (Gemini 2.5 Flash Image)

Workflow preview

Workflow preview
100%
Generate product mockups with Nano Banana (Gemini 2.5 Flash Image) preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This n8n template uses AI to generate product mockups by composing a product image onto a model or template image. This workflow provides a powerful solution for creating dynamic marketing assets a...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.formtrigger, n8n-nodes-base.extractfromfile, n8n-nodes-base.set, n8n-nodes-base.httprequest, n8n-nodes-base.converttofile, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by The Growth Bolt .

Original n8n.io source

1.1 Workflow description

Title
Generate product mockups with Nano Banana (Gemini 2.5 Flash Image)
Workflow name
Generate product mockups with Nano Banana (Gemini 2.5 Flash Image)

This n8n template uses AI to generate product mockups by composing a product image onto a model or template image.

This workflow provides a powerful solution for creating dynamic marketing assets and e-commerce visuals. Use cases are many: Instantly create virtual try-on images for apparel, place your product into different scenes for advertisements, or generate custom marketing material without needing a physical photoshoot.

Good to know

  • This workflow uses the OpenRouter API to access Google's Gemini model. You will need an OpenRouter account.
  • The model used is google/gemini-2.5-flash-image-preview:free. While this specific model may be free, costs can vary depending on the model you choose and your usage on OpenRouter. Always check their latest pricing.
  • The workflow is triggered by a form. To use it, you must activate the workflow and use its Production URL.

How it works

  • A user submits a product image, a template/model image, and a text prompt via the n8n form trigger.
  • The images are then converted to Base64 strings so they can be used in an API request.
  • A multimodal payload is sent to the OpenRouter API. Gemini's image generation model is used, which takes all 3 inputs (the two images and the prompt) to understand how to compose the final image.
  • Gemini generates a new image based on the instructions and returns it as a Base64 string.
  • The workflow extracts this output string and uses a "Convert to file" node to convert the data back into a binary image file, ready for use.

How to use

  • First, set up your OpenRouter API credential in n8n.
  • Activate the workflow.
  • Open the Production URL for the form trigger.
  • Upload your product image, your template image, and write a descriptive prompt.
  • Submit the form to execute the workflow and generate your image.

Requirements

  • An active n8n instance.
  • An OpenRouter account and API key.

Customising this workflow

  • You can easily change the AI model by editing the JSON body in the HTTP Request node. OpenRouter provides access to a wide variety of models from different providers.
  • Add a final step to automatically save the generated image. You can connect nodes for services like Google Drive, AWS S3, or Dropbox after the "Convert to File" node.
  • Replace the Form Trigger with a Webhook Trigger to run this workflow programmatically from another application or service.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - On form submission

Type / Role
n8n-nodes-base.formTrigger - formTrigger
Config choices
Version 2.3

Block 2 - User Asset Base64

Type / Role
n8n-nodes-base.extractFromFile - extractFromFile
Config choices
Version 1

Block 3 - Template Base64

Type / Role
n8n-nodes-base.extractFromFile - extractFromFile
Config choices
Version 1

Block 4 - Assemble Final Data

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 5 - HTTP Request

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 6 - Edit Fields

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 7 - Convert to File

Type / Role
n8n-nodes-base.convertToFile - convertToFile
Config choices
Version 1.1

Block 8 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Generate product mockups with Nano Banana (Gemini 2.5 Flash Image)
Complexity intermediate
Nodes 12
Categories Content Creation, Multimodal AI
Author The Growth Bolt
Published 02 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8194/8194.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Generate product mockups with Nano Banana (Gemini 2.5 Flash Image) do?

This n8n template uses AI to generate product mockups by composing a product image onto a model or template image. This workflow provides a powerful solution for creating dynamic marketing assets a...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.