Edit ad image variations with Nano Banana and n8n | Alpha | PandaiTech

Edit ad image variations with Nano Banana and n8n

Automation techniques for bulk-editing elements in ad images (such as swapping food objects) using Gemini image models (Nano Banana/Flash 2.5) and n8n.

Learning Timeline
Key Insights

Advantages of the Nano Banana (2.5 Flash) Model

This model is exceptionally fast and excels at maintaining consistency in elements like ad text and voucher codes while only swapping the main subject of the image. This saves graphic designers a significant amount of time on batch editing tasks.

Workflow Scalability Tip

You aren't limited to just advertisements. This setup can be used for any type of bulk image variation; simply upload one image and provide a list of different prompt instructions for each row in Airtable.
Prompts

Dynamic Image Variation Prompt

Target: Gemini 2.5 Flash / Nano Banana
I am providing an original advertisement image. Keep all branding, text, voucher codes, and layout exactly the same. Only swap the main food item [Original_Item] with [New_Item]. Ensure the lighting and style of the new item match the rest of the image.
Step by Step

Ad Image Variation Automation Workflow

  1. Set up an Airtable Base with a column for the original image (Attachment) and a text column for object replacement instructions.
  2. Upload the original ad image (e.g., a photo of Tacos) into the Airtable Attachment field.
  3. Configure the n8n 'Airtable Trigger' or 'Button' node to start the workflow whenever a record is updated.
  4. Add an 'HTTP Request' node or an Airtable connection node to download the image file into the n8n workflow.
  5. Connect to the Gemini node (Select model: Nano Banana / Gemini 2.5 Flash).
  6. In the Gemini node configuration, map the downloaded image data to the visual input section.
  7. Enter a dynamic prompt into the Gemini node that combines the original image with the object replacement instructions (e.g., change Tacos to Chicken Wings).
  8. Run the workflow to generate the new image variations.
  9. Use the 'Google Drive' node to upload the resulting image variations to cloud storage.
  10. Update the original spreadsheet or Airtable record with the newly generated image links.

More from Generate & Edit Professional AI Images

View All