Skip to main content

Generate & upload images with Image-to-Image GPT, Google Sheets & Drive

Workflow preview

Workflow preview
100%
Generate & upload images with Image-to-Image GPT, Google Sheets & Drive preview
Open on n8n.io

Important notice

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

1. Workflow Overview

️ Image to Image AI Generator from Google Sheets with Google Drive Upload Use Case Automatically generate AI images from prompts listed in a Google Sheet, upload the images to Google Drive, and...

Best for

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

Tools used

n8n-nodes-base.googlesheets, n8n-nodes-base.splitinbatches, n8n-nodes-base.wait, n8n-nodes-base.manualtrigger, n8n-nodes-base.if, n8n-nodes-base.googledrive, n8n-nodes-base.httprequest, n8n-nodes-base.code

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Generate & upload images with Image-to-Image GPT, Google Sheets & Drive
Workflow name
Generate & upload images with Image-to-Image GPT, Google Sheets & Drive

🖼️ Image-to-Image AI Generator from Google Sheets with Google Drive Upload


✅ Use Case

Automatically generate AI images from prompts listed in a Google Sheet, upload the images to Google Drive, and log the result back into the sheet.

Uses the image-to-image-gpt API for fast, customizable generation.


💡 Problem It Solves

Manual image generation workflows are inefficient and error-prone. Creative and content teams often have to:

  • Manually paste prompts into image generation tools
  • Save images locally
  • Upload to Google Drive
  • Paste the link back into tracking spreadsheets

This automation removes all that friction—turning one spreadsheet into a complete image creation pipeline.


🌟 Benefits

  • 🔁 Fully automated image generation
  • 📤 Direct uploads to Google Drive
  • 🧾 Image links and timestamps logged in Google Sheets
  • ⚠️ Built-in error logging for API failures
  • 🧩 Modular and easily extensible
  • 📊 Keeps a historical log of successes and errors

🧩 Workflow Overview

Node Description
1. Manual Trigger Starts the workflow when executed manually
2. Google Sheets2 Reads all rows from the input Google Sheet
3. Loop Over Items Processes one row (prompt) at a time
4. If2 Filters only rows where Prompt is not empty and drive path is empty
5. HTTP Request1 Calls the image-to-image-gpt API with the prompt
6. If1 (Error Handling) If an error exists in the API response, route to logging
7. Google Sheets4 (Error Log) Appends error details to a log sheet for review
8. Code1 Decodes the base64 image returned by the API
9. Google Drive1 Uploads the image to a selected Google Drive folder
10. Google Sheets1 (Write Back) Updates the original row with the image drive path and timestamp
11. Wait Delays the next prompt to prevent hitting API rate limits

🛠 Tech Stack

  • n8n (no-code automation)
  • Google Sheets (data input/output)
  • Google Drive (image storage)
  • image-to-image-gpt API via RapidAPI
  • JavaScript (in Code node) for base64 processing

📝 Sheet Format

Your Google Sheet should include the following columns:

Column Purpose
Prompt The AI prompt to send to the API
Image url (Optional) Initial image URL
drive path Updated with Drive link by flow
Generated Date Auto-filled by the workflow
Base64 Stores raw or error data

🚀 How to Use

  1. Import this workflow into your n8n instance
  2. Set up Google Sheets and Google Drive service credentials
  3. Add your RapidAPI key in the HTTP Request node headers
  4. Use the image-to-image-gpt endpoint in the HTTP request
  5. Configure the Google Sheet and Drive folder in the respective nodes
  6. Execute manually or add a Cron node for scheduling

📌 Example Applications

  • 🛍 eCommerce: Auto-generate product mockups
  • 🧵 Fashion/Design: Visualize styles or fabrics from prompts
  • ✍️ Blogging/Content: Auto-generate header images from titles
  • 📣 Marketing: Generate ad banners from text

🧪 Tips

  • You can add a Cron node if you want this to run on a schedule
  • Use a separate tab/sheet for logging failed prompts
  • Extend the flow by adding:
    • Email notifications
    • Slack alerts
    • File name templating

Create your free n8n account and set up the workflow in just a few minutes using the link below:

👉 Start Automating with n8n

Save time, stay consistent, and grow your LinkedIn presence effortlessly!

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 - Google Sheets2

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 2 - Loop Over Items

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 3 - Wait

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

Block 4 - When clicking ‘Execute workflow’

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

Block 5 - If2

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

Block 6 - If1

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

Block 7 - Google Sheets4

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 8 - Google Sheets1

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 9 - Google Drive1

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 10 - HTTP Request1

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

Block 11 - Code1

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

Block 12 - Sticky Note

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

Block 14 - Sticky Note2

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

Block 15 - Sticky Note3

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

Block 16 - Sticky Note4

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

Block 17 - Sticky Note5

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

Block 18 - Sticky Note6

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

Block 19 - Sticky Note7

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

Block 20 - Sticky Note8

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

Block 21 - Sticky Note9

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

Block 22 - Sticky Note10

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

Block 23 - Sticky Note11

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

3. Summary Table

Workflow Generate & upload images with Image-to-Image GPT, Google Sheets & Drive
Complexity advanced
Nodes 23
Categories Content Creation, Multimodal AI
Author Evoort Solutions
Published 21 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6215/6215.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 Generate & upload images with Image-to-Image GPT, Google Sheets & Drive do?

️ Image to Image AI Generator from Google Sheets with Google Drive Upload Use Case Automatically generate AI images from prompts listed in a Google Sheet, upload the images to Google Drive, and...

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.