Use this powerful n8n workflow to generate vintage Polaroid-style photos using Gemini AI. Leverage n8n templates for instant setup, converting digital images to retro art via an efficient n8n node polling loop.
Download this n8n workflow template and start using it instantly.
This specialized n8n workflow solves the challenge of generating unique, artistic vintage photographs instantly from user-provided input. By leveraging the Defapi API connected to Google's powerful Gemini AI, this automation takes two standard digital images, a creative prompt, and an API key submitted via a custom form. The core value of this n8n template lies in its robust handling of asynchronous API calls. Since image generation can take time, the n8n workflow implements a polling loop using the Wait n8n node and the IF n8n node to continuously check the status until the vintage photo is successfully created. This complete n8n solution ensures a seamless user experience, delivering the final, Polaroid-style image URL upon completion.
This n8n workflow begins with the Form n8n trigger, collecting required user input and acting as the primary n8n trigger.
taskid.taskid.To deploy this comprehensive n8n template, follow these steps:
Upload 2 Images (Form Trigger n8n trigger): This is the entry point and the primary n8n trigger. It collects user data, including two file uploads (Image 01, Image 02), an API Key, and the creative Prompt.
Convert to JSON (Code n8n node): A crucial step in this n8n workflow. It uses custom JavaScript to read the binary file data from the trigger and convert both files into Base64 Data URLs, which are then passed to the API request body. It also extracts the prompt and API key.
Send Image Generation Request to Defapi.org API (HTTP Request n8n node): Sends the Base64 images and prompt via a POST request to initiate the Gemini AI generation task. It uses Bearer Token authentication dynamically sourced from the user input.
Wait for Image Processing Completion (Wait n8n node): Pauses the n8n workflow execution for 10 seconds before initiating the status check, preventing excessive polling.
Obtain the generated status (HTTP Request n8n node): A GET request that uses the task_id returned in the initial submission to query the current status of the AI image generation job.
Check if Image Generation is Complete (IF n8n node): Manages the core logic flow. It evaluates if the API response status is 'success'. If true, it proceeds to output. If false, it loops back to the Wait n8n node to continue polling the status, defining the control structure of this n8n workflow.
Use this powerful n8n workflow to automate Stripe tax reporting. Fetch invoices, calculate multi-jurisdiction tax summaries, update Google Sheets, and send Slack alerts daily using the schedule n8n trigger.

Automate SEO copywriting for Shopify and Google Shopping using this advanced n8n workflow. Utilizes OpenAI Vision to generate optimized product titles and descriptions directly to Google Sheets.

Use this powerful n8n workflow to generate new SEO keywords, obtain accurate monthly search volumes via the Google Ads API, and automatically export the data to Google Sheets.

Use this powerful n8n workflow to query Airtable data instantly from Obsidian Notes using an AI Agent. Leverage the n8n node ecosystem for rapid knowledge retrieval via an n8n trigger.

Use this powerful n8n workflow to reliably fetch images from difficult sources. It features a standard HTTP Request combined with a BrightData Web Unlocker failover for blocked resources. Get started with n8n templates today.









































