Skip to main content

Generating vintage Polaroid style photos with Gemini AI

Workflow preview

Workflow preview
100%
Generating vintage Polaroid style photos with Gemini AI preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This workflow uses the Defapi API with Google's Gemini AI to transform digital photos into authentic Polaroid style vintage photographs. Upload your photos, provide a creative prompt, and get AI ge...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.httprequest, n8n-nodes-base.wait, n8n-nodes-base.if, n8n-nodes-base.set, n8n-nodes-base.code, n8n-nodes-base.formtrigger

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by panyanyany.

Original n8n.io source

1.1 Workflow description

Title
Generating vintage Polaroid style photos with Gemini AI
Workflow name
Generating vintage Polaroid style photos with Gemini AI

Overview

This workflow uses the Defapi API with Google's Gemini AI to transform digital photos into authentic Polaroid-style vintage photographs. Upload your photos, provide a creative prompt, and get AI-generated vintage effects with that distinctive instant camera charm.

Input: Digital photos + creative prompt + API key
Output: Polaroid-style vintage photographs

The system provides a simple form interface where users submit their images, prompt, and API key. It automatically processes requests through Defapi API, monitors generation status, and delivers the final vintage photo output. Ideal for photographers, content creators, and social media enthusiasts looking to add vintage charm to their digital photos.

Prerequisites

  • A Defapi account and API key: Sign up at Defapi.org
  • An active n8n instance (cloud or self-hosted) with HTTP Request and form submission capabilities
  • Digital photos for transformation (well-lit photos work best)
  • Basic knowledge of AI prompts for vintage photo generation

Example prompt: Take a picture with a Polaroid camera. The photo should exhibit rich saturation and vintage color cast, with soft tones, low contrast, and vignetting. The texture features distinct film grain. Do not change the faces. Replace the background behind the two people with a white curtain. Make them close to each other with clear faces and normal skin color.

Setup Instructions

  1. Obtain API Key: Register at Defapi.org and generate your API key. Store it securely.
  2. Configure the Form: Set up the "Upload 2 Images" form trigger with: Image 01 & Image 02 (file uploads), API Key (text field), and Prompt (text field).
  3. Test the Workflow:
    • Click "Execute Workflow" in n8n
    • Access the form URL, upload two photos, enter your prompt, and provide your API key
    • The workflow processes images, sends the request to Defapi API, waits 10 seconds, then polls until generation is complete
  4. Handle Outputs: The final node displays the generated image URL for download or sharing.

Workflow Structure

The workflow consists of the following nodes:

  1. Upload 2 Images (Form Trigger) - Collects user input: two image files, API key, and prompt
  2. Convert to JSON (Code Node) - Converts uploaded images to base64 and formats data
  3. Send Image Generation Request to Defapi.org API (HTTP Request) - Submits generation request
  4. Wait for Image Processing Completion (Wait Node) - Waits 10 seconds before checking status
  5. Obtain the generated status (HTTP Request) - Polls API for completion status
  6. Check if Image Generation is Complete (IF Node) - Checks if status equals 'success'
  7. Format and Display Image Results (Set Node) - Formats final image URL output

Technical Details

  • API Endpoint: https://api.defapi.org/api/image/gen (POST request)
  • Model Used: google/gemini (Gemini AI)
  • Status Check Endpoint: https://api.defapi.org/api/task/query (GET request)
  • Wait Time: 10 seconds between status checks
  • Image Processing: Uploaded images are converted to base64 format for API submission
  • Authentication: Bearer token authentication using the provided API key
  • Specialized For: Polaroid-style vintage photography and instant camera effects

Customization Tips

  • Enhance Prompts: Include specifics like vintage color cast, film grain texture, vignetting, lighting conditions, and atmosphere to improve AI photo quality. Specify desired saturation levels and contrast adjustments.
  • Photo Quality: Use well-lit, clearly exposed photos for best results. The AI can simulate flash effects and vintage lighting, but quality input produces better output. Note that generated photos may sometimes be unclear or have incorrect skin tones - try multiple generations to achieve optimal results.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Obtain the generated status

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 3 - Send Image Generation Request to Defapi.org API

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 4 - Wait for Image Processing Completion

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 5 - Check if Image Generation is Complete

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 6 - Format and Display Image Results

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 7 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Convert to JSON

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 10 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Upload 2 Images

Type / Role
n8n-nodes-base.formTrigger - formTrigger
Config choices
Version 2.3

Block 12 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Generating vintage Polaroid style photos with Gemini AI
Complexity intermediate
Nodes 13
Categories Content Creation, Multimodal AI
Author panyanyany
Published 24 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8887/8887.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Generating vintage Polaroid style photos with Gemini AI do?

This workflow uses the Defapi API with Google's Gemini AI to transform digital photos into authentic Polaroid style vintage photographs. Upload your photos, provide a creative prompt, and get AI ge...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.