n8n

How to Generate Google Imagen Brand Assets?

Create branded images fast by mixing a reference style image with a new prompt. Teams can test brand looks, build campaign visuals, and share results quickly by link or email. Great for marketing and design work where speed and consistency matter.

A public form collects the source image URL and the new prompt. The flow checks the input and downloads the image. It then asks Google Gemini to describe the visual style in detail. That style text is merged with the user prompt and sent to Google Imagen to generate new images. The results are split, turned into files, and uploaded to Cloudinary. A simple HTML page is built to display the images. If an email is provided, the page is sent through Gmail. A file download is also prepared at the end.

You will need access to the Google AI APIs, a Cloudinary upload preset, and a Gmail account. When live, requests turn into assets in minutes, so teams can handle more ideas with less waiting. Use it for logo variations, campaign mockups, and brand experiments where a visual style must stay consistent while content changes.

What are the key features?

  • Public form intake with a validation and retry loop to ensure a valid source image URL
  • Source image download and base64 extraction to prepare content for AI analysis
  • Style description using Google Gemini to convert the reference image into clear visual guidance
  • Prompt fusion that combines style text and the target prompt before generation
  • Image creation with Google Imagen 3.0 returning multiple predictions
  • Automatic split of predictions, file conversion, and upload to Cloudinary
  • HTML page builder that presents all generated images in a single view
  • Conditional email delivery through Gmail when the user provides an address
  • Final form page offers a downloadable HTML file for easy sharing or archiving

What are the benefits?

  • Reduce asset creation time from hours to minutes by automating style analysis and image generation
  • Streamline creative requests by 70 percent with a simple form and automatic validation
  • Deliver consistent results at scale by combining a style description with your prompt every time
  • Eliminate manual file sharing by auto hosting images on Cloudinary and emailing a single HTML page
  • Handle more requests without extra headcount by processing multiple image outputs per run

How do you set it up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with Google Gemini, Google Imagen, Cloudinary and Gmail. See the Tools Required section above for links to create accounts with these services.
  3. Open the Form Trigger node and confirm the form fields for SourceImage, TargetPrompt, and Email are present. Keep the path as provided or change it to match your naming rules.
  4. Set up Google AI access: Double click the Gemini 2.0 node, then on the Credential to connect with dropdown, click Create new credential and follow the on screen instructions to integrate that service. Repeat for the Imagen 3.0 node using the same API key.
  5. Configure Cloudinary: In your Cloudinary dashboard, create an unsigned upload preset or note your secure upload settings. In the Upload to Cloudinary node, replace the cloud name in the URL with your own and set the upload_preset query to your preset. If a credential is required, double click the node and create a new credential, then follow on screen steps.
  6. Authorize Gmail: Double click the Send Results to Email node, choose Create new credential, and finish the Gmail OAuth2 flow in n8n Cloud.
  7. Check the Variables node to ensure SourceImage maps to sourceStyleUrl and TargetPrompt maps to targetPrompt. Save changes.
  8. Run a live test: Activate the workflow, open the public form URL, submit a reachable image URL and a clear target prompt, and include an email if you want the results sent.
  9. Verify outputs: In the execution view, confirm Gemini returns a style description, Imagen generates predictions, and Cloudinary URLs appear. The HTML page should render and email should arrive.
  10. Troubleshoot common issues: If Gemini fails, ensure the image URL is public. If Cloudinary upload fails, confirm the cloud name and upload preset. If email is missing, check the Has Email condition and Gmail credential status.
  11. Adjust performance: If you need more or fewer images, edit the Imagen request body. Update the HTML node to change layout, branding, or add links back to your site.

Tools Required

$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

Cloudinary

Sign up

Free plan: $0 / mo, includes API access (Upload widget, API, search) with 25 monthly credits

Gmail

Sign up

No cost: Personal Gmail (Gmail API has no usage-based pricing; quotas apply)

Google Gemini

Sign up

Free tier: $0 via Gemini API; e.g., Gemini 2.5 Flash-Lite free limits 1,000 requests/day (15 RPM, 250k TPM). Paid from $0.10/1M input tokens and $0.40/1M output tokens.

Google Imagen

Sign up

Pay-as-you-go: $0.02 per image (Imagen 4 Fast or Imagen 3 Fast) via Vertex AI API

Similar Templates

Join Futurise to access 1,200+ automation templates

Get instant access to ready-made automation workflows for n8n, Make.com, AI agents, and more. Download, customise, and deploy in minutes.