Skip to main content

Generate and store AI images with Sora GPT, Google Drive and Sheets

Workflow preview

Workflow preview
100%
Generate and store AI images with Sora GPT, Google Drive and Sheets preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Automation Flow: Image to Image Using GPT Sora This flow automates the process of generating images using a provided prompt and reference image via the Sora GPT Image API from [RapidAPI](https://ra...

Best for

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

Tools used

n8n-nodes-base.formtrigger, n8n-nodes-base.httprequest, n8n-nodes-base.googlesheets, n8n-nodes-base.googledrive, n8n-nodes-base.code, n8n-nodes-base.stickynote

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Generate and store AI images with Sora GPT, Google Drive and Sheets
Workflow name
Generate and store AI images with Sora GPT, Google Drive and Sheets

Automation Flow: Image to Image Using GPT Sora

This flow automates the process of generating images using a provided prompt and reference image via the Sora GPT Image API from RapidAPI. The generated images are stored in Google Drive, and details are logged in Google Sheets.

Nodes Overview

1. On Form Submission

  • Type: n8n-nodes-base.formTrigger
  • Description: This node triggers when a user submits the form containing the prompt and image URL. It ensures the form fields are filled in and ready for processing.
    • Form Fields:
      • Prompt: A text description of the desired image.
      • Image URL: The URL of the reference image to be used.
    • Webhook ID: Unique identifier for form submission.

2. HTTP Request to Sora GPT Image API

  • Type: n8n-nodes-base.httpRequest
  • Description: Sends the prompt and image URL to the Sora GPT Image API to generate a new image based on the provided inputs.
    • API Endpoint: Sora GPT Image API (via RapidAPI)
    • Method: POST
    • Body Parameters:
      • Prompt: User-provided text.
      • Image URL: The reference image URL.
      • Width & Height: Image size is set to 1024x1024.

3. Code (Base64 Conversion)

  • Type: n8n-nodes-base.code
  • Description: This node processes the base64-encoded image data returned from the API. It decodes and formats the image to be uploaded to Google Drive.
    • Output: Converts the base64 string into a binary JPEG file.

4. Upload Image to Google Drive

  • Type: n8n-nodes-base.googleDrive
  • Description: Uploads the generated image to Google Drive, storing it in a designated folder.
    • Authentication: Google Service Account.
    • File Name: The image file name is dynamically set from the previous node.

5. Log Details to Google Sheets

  • Type: n8n-nodes-base.googleSheets
  • Description: This node logs the Prompt, Generated Image, and Generation Date into a Google Sheets document for tracking and auditing purposes.
    • Columns Mapped:
      • Prompt: The user’s input text.
      • Image: The name of the generated image file.
      • Generated Date: Date and time of image generation.

Flow Summary

  1. User Submits Form: Triggered when the form with the prompt and image URL is submitted.
  2. Image Generation: The data is sent to the Sora GPT Image API from RapidAPI to generate the image.
  3. Image Processing: The generated image (base64 format) is decoded and saved as a file.
  4. Google Drive Upload: The image is uploaded to Google Drive for storage.
  5. Google Sheets Logging: All relevant details (Prompt, Image, Date) are saved in Google Sheets.

Benefits

  • Automated Image Creation: Quickly generate images using AI based on a simple prompt and reference image via RapidAPI.
  • Efficient Workflow: The entire process from form submission to image generation and storage is automated, saving time and reducing manual work.
  • Centralized Storage: Generated images are stored in Google Drive, ensuring easy access and organization.
  • Audit Trail: The details of each generated image are logged in Google Sheets, making it easy to track, review, and manage past creations.
  • Scalable and Reusable: Can be adapted to multiple use cases, such as creative design, marketing materials, or social media content generation.

Problems Solved

  • Manual Image Editing: Eliminates the need for manual image manipulation and creation, allowing for automatic generation based on user inputs.
  • Disorganized File Storage: With automatic uploads to Google Drive, the images are stored in a centralized and organized manner.
  • Lack of Record-Keeping: By logging image generation details in Google Sheets, there's always a record of past creations, improving tracking and management.
  • Time-Consuming Processes: The automation drastically reduces the time spent on manual tasks, allowing users to focus on other aspects of their work or creative processes.

This flow simplifies the process of creating AI-generated images based on user inputs, leveraging the power of the Sora GPT Image API via RapidAPI, making it a powerful tool for creative, design, and marketing purposes.

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 - On form submission

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

Block 2 - HTTP Request

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

Block 3 - Google Sheets

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

Block 4 - Google Drive

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

Block 5 - Code

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

Block 6 - Sticky Note

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

Block 7 - Sticky Note1

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

Block 8 - Sticky Note2

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

Block 9 - Sticky Note3

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

Block 10 - Sticky Note4

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

Block 11 - Sticky Note5

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

3. Summary Table

Workflow Generate and store AI images with Sora GPT, Google Drive and Sheets
Complexity intermediate
Nodes 11
Categories Content Creation, Multimodal AI
Author Sk developer
Published 13 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/5932/5932.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 and store AI images with Sora GPT, Google Drive and Sheets do?

Automation Flow: Image to Image Using GPT Sora This flow automates the process of generating images using a provided prompt and reference image via the Sora GPT Image API from [RapidAPI](https://ra...

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.