Compose/Stitch separate images together using n8n & Gemini AI image editing
Ready for 3.0What this workflow does
This workflow has 11 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Google Drive. It also calls res.cloudinary.com and generativelanguage.googleapis.com over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Dalmation (HTTP Request): calls res.cloudinary.com
- Sofa (HTTP Request): calls res.cloudinary.com
- Character (HTTP Request): calls res.cloudinary.com
- Merge: merges the data from its input branches
- Extract from File: extracts data from a file (binary to propery)
- Aggregate: combines items into one
- Gemini Image Compose (HTTP Request): calls generativelanguage.googleapis.com (POST)
- Get Image Contents (Edit Fields (Set)): sets 2 fields: image, mimeType
- Convert to File: converts data to a file (to binary)
- Upload to Drive (Google Drive): uses Google Drive
Services it uses
HTTP calls to: res.cloudinary.com, generativelanguage.googleapis.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (8)
- Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - Google Drive
n8n-nodes-base.googleDrive - Convert to File
n8n-nodes-base.convertToFile - Extract from File
n8n-nodes-base.extractFromFile - Merge
n8n-nodes-base.merge - Aggregate
n8n-nodes-base.aggregate - HTTP Request
n8n-nodes-base.httpRequest
From the author
This n8n template demonstrates how to use AI to compose or "stitch" separate images together to generate a new image which retains the source assets and consistent style. Use cases are many: Try producing storyboard scenes with consistent characters,…