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
Automate style copy with n8n and Google AI

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

Learn how to Build this Workflow with AI:

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.


Automate style copy with n8n and Google AI

Visit through Desktop to Interact with the Workflow.

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.
Author
Written By
Vikash Kumar
Building AI agents, n8n workflows and end-to-end automation for 30+ Brands across India, the US, Europe, Dubai & Australia. 7+ years of Experience saving founders real hours every week - no code required.

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.