Copy Image Style with n8n and Google Imagen 3.0 AI

Automate copying the visual style of any image using n8n workflow integrated with Google Gemini 2.0 and Imagen 3.0. This workflow lets you submit an image URL and a target prompt, then generates styled images and optionally emails results, saving hours in creative design tasks.
httpRequest
formTrigger
gmail
+7
Workflow Identifier: 2140
NODES in Use: formTrigger, if, set, httpRequest, extractFromFile, splitOut, convertToFile, html, gmail, stickyNote

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

1. What This Automation Does

This workflow takes an image URL and a text description to copy the picture’s style.

It uses Google AI to describe the style and then makes new images based on that style plus your text.

The result is styled pictures hosted on Cloudinary, plus a web page showing them.

Optionally, you can get the results sent by email.

The goal is to save time by automatically copying styles instead of doing it manually.


2. Tools and Services Used

  • Google Gemini 2.0 API: Analyzes and describes image style.
  • Google Imagen 3.0 API: Creates new images based on style plus prompt.
  • Cloudinary: Hosts and serves generated images.
  • Gmail with OAuth: Sends emails of results.
  • n8n Automation Platform: Runs the whole workflow setup.

3. Inputs, Processing, and Output

Inputs

  • Source image URL to copy the style.
  • Text prompt describing the new image to generate.
  • Optional number of images to make (1 to 4).
  • Optional email to receive results.

Processing Steps

  1. Validate the image URL is correctly formatted.
  2. Download the image from the URL.
  3. Convert that image to base64 for AI input.
  4. Send to Google Gemini 2.0 to get the style description.
  5. Combine style description with user prompt.
  6. Send to Google Imagen 3.0 to generate styled images.
  7. Split and convert each image from base64 to binary files.
  8. Upload each image to Cloudinary.
  9. Create an HTML gallery page showing images and style info.
  10. Optionally email the gallery to the provided address.

Output

  • Images styled like the source image hosted on Cloudinary.
  • HTML gallery page presenting those images with references.
  • Email with the gallery page if an email was given.

4. Beginner Step-by-Step: How to Use This Workflow in n8n Production

Importing the Workflow

  1. Download the workflow file using the Download button on this page.
  2. Open n8n editor and select “Import from File” to load the workflow.

Configuration After Import

  1. Add all required credentials or API Keys for Google Gemini, Google Imagen, Cloudinary, and Gmail.
  2. Update any IDs, emails, folders, or URLs if the workflow needs specific destinations or senders.
  3. Check that the prompt and expressions are present in the Variables and HTTP Request nodes so the text used matches your needs.

Testing and Activation

  1. Run one test submission with valid inputs to verify the workflow works without errors.
  2. Check Cloudinary for uploaded images and Gmail for emails if used.
  3. Turn the workflow ON in n8n to activate it for regular use.

Make sure the webhook URL is publicly accessible to receive form submissions or API calls.

If using self hosting n8n, see self-host n8n for help.


5. Common Issues and How to Fix Them

  • Image URL invalid or inaccessible:
    Check the URL for typos and make sure the image is public. Use the Form Validation node to catch errors early.
  • Google APIs fail due to bad credentials:
    Update API Key or OAuth tokens in n8n credentials and retry.
  • Cloudinary uploads fail:
    Verify the upload preset is set for unsigned uploads. Confirm the API keys are correct.
  • Emails not sending:
    Check Gmail OAuth setup and that the sending email address is authorized.

6. Customization Ideas

  • Switch Cloudinary upload to a different CDN by adjusting the Upload to Cloudinary node URL and params.
  • Allow more images by increasing max samples in the Variables node and adjusting Imagen API call.
  • Use a Webhook node instead of the Form Trigger for auto runs based on external events.
  • Replace Gmail node with other email services like SendGrid via HTTP Request nodes.
  • Update Gemini prompt with more style details or artist references for tailored style descriptions.

7. Summary of Workflow Benefits and Outcome

✓ Quickly copy and recreate image styles from any source URL.

✓ Automatically generate one to four new images with the Google Imagen AI matching the original style.

✓ Host generated images on Cloudinary with CDN delivery.

✓ Create an HTML page gallery showing all results and style references.

✓ Optionally email the results to the user for easy sharing.

→ Saves hours of manual style work for designers or marketers.

→ Provides simple, ready-to-use automation inside n8n with clear setup steps.


Frequently Asked Questions

Open n8n credentials section and create new Google Gemini credential with API Key or OAuth details. Link this credential in Gemini 2.0 HTTP Request node.
The SourceImage must be a publicly accessible URL of an image for style analysis. Private or inaccessible URLs will fail validation.
Yes. Update the numberSamples variable max limit in the Variables node and adjust the Imagen 3.0 API call to allow more images, but confirm API quota limits.
Replace the Gmail node with an HTTP Request node configured to use the email provider’s API, such as SendGrid, including authentication and message format.

Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free