workflows.fit
Back to n8n workflows
n8n templateFreeBy panyanyany

Batch ID photo converter & enhancer with Google Drive & Nano Banana API

Overview This n8n workflow automatically converts and enhances multiple photos into professional ID-style portraits using Gemini AI (Nano Banana). It processes images in batch from Google Drive, applies professional I...

DevelopmentCore NodesData & StorageHttp RequestWaitIfSet
Loading interactive preview...

Template notes

Overview This n8n workflow automatically converts and enhances multiple photos into professional ID-style portraits using Gemini AI (Nano Banana). It processes images in batch from Google Drive, applies professional ID photo standards (proper framing, neutral background, professional attire), and outputs the enhanced photos back to Google Drive.

Input: Google Drive folder with photos Output: Professional ID-style portraits in Google Drive output folder

The workflow uses a simple form interface where users provide Google Drive folder URLs and an optional custom prompt. It automatically fetches all images from the input folder, processes each through the Defapi API with Google's nano-banana model, monitors generation status, and uploads finished photos to the output folder. Perfect for HR departments, recruitment agencies, or anyone needing professional ID photos in bulk.

Prerequisites - A Defapi account and API key (Bearer token configured in n8n credentials): Sign up at [Defapi.org](https://defapi.org) - An active n8n instance with Google Drive integration - Google Drive account with two public folders: - Input folder: Contains photos to be processed (must be set to public/anyone with the link) - Output folder: Where enhanced photos will be saved (must be set to public/anyone with the link) - Photos with clear faces (headshots or upper body shots work best)

Setup Instructions

1. Prepare Google Drive Folders - Create two Google Drive folders: - One for input photos (e.g., https://drive.google.com/drive/folders/xxxxxxx) - One for output photos (e.g., https://drive.google.com/drive/folders/yyyyyy) - Important: Make both folders public (set sharing to "Anyone with the link can view") - Right-click folder → Share → Change "Restricted" to "Anyone with the link" - Upload photos to the input folder (supported formats: .jpg, .jpeg, .png, .webp)

2. Configure n8n Credentials - Defapi API: Add HTTP Bearer Auth credential with your Defapi API token (credential name: "Defapi account") - Google Drive: Connect your Google Drive OAuth2 account (credential name: "Google Drive account"). See https://docs.n8n.io/integrations/builtin/credentials/google/oauth-generic/

3. Run the Workflow - Execute the workflow in n8n - Access the form submission URL - Fill in the form: - Google Drive - Input Folder URL: Paste your input folder URL - Google Drive - Output Folder URL: Paste your output folder URL - Prompt (optional): Customize the AI generation prompt or leave blank to use the default