Use this advanced n8n workflow to seamlessly stitch together separate input images into a single, cohesive image using the Gemini AI model. Learn how to handle base64 conversion within n8n templates for powerful AI generation.
Download this n8n workflow template and start using it instantly.
Digital Artists and Designers: Who need to quickly prototype storyboards or compose new scenes from existing asset libraries.
Marketing Teams: Automating the creation of consistent visual assets using product images.
Automation Engineers: Seeking advanced examples of using the n8n node ecosystem for handling complex binary data conversions (base64).
AI Enthusiasts: Interested in utilizing powerful multimodal AI models like Gemini within an n8n workflow.
Leveraging the multimodal capabilities of the Gemini API, this automation solves the challenge of combining disparate visual assets into a unified, consistent image based on a descriptive prompt. Traditional image editing requires tedious manual work, but this n8n workflow accelerates the process significantly. It demonstrates a sophisticated use case of an n8n template, showcasing how to manage binary data required for AI image-to-image manipulation, ensuring that the final output image is generated quickly and retains the specific style of the source materials. The final output of the n8n workflow is automatically saved to Google Drive, ensuring efficient storage and sharing of the generated content.
This automation is initiated by a manual n8n trigger, but it can easily be replaced by a webhook or schedule.
When clicking ‘Execute workflow’ (Manual Trigger): This n8n trigger manually starts the automation for testing and immediate use.
Character, Dalmation, Sofa (HTTP Request): These three n8n node instances fetch the source images (as binary data) from external URLs, providing the visual inputs for the composition process.
Extract from File (Core Logic): Converts the incoming binary image data into base64 properties (as required by the Gemini API). This is a critical data conversion n8n node in the flow.
Aggregate1 (Aggregate): Combines the multiple input items (the three base64 images) into a single item structure, enabling a single, consolidated request to the AI service.
Gemini Image Compose (HTTP Request): The heart of the n8n workflow. It sends a structured JSON payload containing the composition prompt and the three base64 images to the gemini-2.0-flash-preview-image-generation model for stitching.
Get Image Contents (Set): Parses the JSON response from Gemini, extracting the newly created image's base64 data and mime type for subsequent steps.
Convert to File (Core Logic): Reverses the earlier conversion, taking the AI-generated base64 string and converting it back into usable binary file data, preparing it for cloud storage.
Upload to Drive (Google Drive): The final n8n node, responsible for saving the generated, composite image to the configured Google Drive account.
Use this powerful n8n workflow template to automatically generate Gmail reply drafts using the OpenAI Assistant. Enhance communication speed with this advanced n8n node integration.

Use this robust n8n workflow to automatically capture compliance reports submitted via Google Forms, extract uploaded file metadata from Google Drive, and securely log the structured data into a MySQL database.

Use this powerful n8n workflow to create a robust eBay Feed API toolset accessible by AI agents using the n8n MCP server trigger. Manage inventory, orders, and schedules programmatically.

Deploy a robust monitoring MCP Server using this n8n workflow. Includes tools for API health checks, webhook validation, rate limit monitoring, and detailed client reporting.

Automate contact enrichment in HubSpot using this advanced n8n workflow. Combines Apollo data with LinkedIn activity, summarized and cleaned by GPT-4o, ensuring high-quality CRM entries.

Use this advanced n8n workflow to build a complete AI customer support team. A Support Director agent uses OpenAI O3 to triage requests and delegate to specialist n8n nodes powered by GPT-4.1-mini, optimizing cost and efficiency.


Freelance consultant based in the UK specialising in AI-powered automations. I work with select clients tackling their most challenging projects. For business enquiries, send me an email at [email protected] LinkedIn: https://www.linkedin.com/in/jimleuk/ X/Twitter: https://x.com/jimle_uk







































