Build an image restoration service with n8n & Gemini AI image editing
Ready for 3.0What this workflow does
This workflow has 9 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Google Drive. It also calls generativelanguage.googleapis.com over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Sample Images (Edit Fields (Set)): sets 1 field: url
- Split Out: splits a list into separate items
- Download Image (HTTP Request): calls an HTTP API
- Extract from File: extracts data from a file (binary to propery)
- Gemini Image Restoration (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: 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 (7)
- Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - Split Out
n8n-nodes-base.splitOut - HTTP Request
n8n-nodes-base.httpRequest - Extract from File
n8n-nodes-base.extractFromFile - Google Drive
n8n-nodes-base.googleDrive - Convert to File
n8n-nodes-base.convertToFile
From the author
This n8n template demonstrates how to build a simple but effective vintage image restoration service using an AI model with image editing capabilities. With Gemini now capable of multimodal output, it's a great time to explore this capability for image or…