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

⚑ 1,697 views · 🎬 Content Creation & Video

Description

πŸ–ΌοΈ 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:

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


🌟 Benefits


🧩 Workflow Overview

NodeDescription
1. Manual TriggerStarts the workflow when executed manually
2. Google Sheets2Reads all rows from the input Google Sheet
3. Loop Over ItemsProcesses one row (prompt) at a time
4. If2Filters only rows where Prompt is not empty and drive path is empty
5. HTTP Request1Calls 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. Code1Decodes the base64 image returned by the API
9. Google Drive1Uploads 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. WaitDelays the next prompt to prevent hitting API rate limits

πŸ›  Tech Stack


πŸ“ Sheet Format

Your Google Sheet should include the following columns:

ColumnPurpose
PromptThe AI prompt to send to the API
Image url(Optional) Initial image URL
drive pathUpdated with Drive link by flow
Generated DateAuto-filled by the workflow
Base64Stores 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


πŸ§ͺ Tips


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!

πŸ”— Nodes Used

Google Sheets, HTTP Request, Google Drive

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup