Generate and Store AI Images with Sora GPT, Google Drive, and Sheets
# **Automation Flow: Image to Image Using GP Sora** This flow automates the process of generating images using a provided prompt and reference image via the **Sora GP Image API** from [RapidAPI](https://rapidapi.com/skdeveloper/api/sora-gpt-image). 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 GP Image API** - **Type**: `n8n-nodes-base.httpRequest` - **Description**: Sends the prompt and image URL to the **Sora GP Image API** to generate a new image based on the provided inputs. - **API Endpoint**: [Sora GP Image API](https://sora-gpt-image.p.rapidapi.com/ai-img/img-to-img.php) (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 GP Image API** from [RapidAPI](https://rapidapi.com/skdeveloper/api/sora-gpt-image) 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 GP Image API** via [RapidAPI](https://rapidapi.com/skdeveloper/api/sora-gpt-image), making it a powerful tool for creative, design, and marketing purposes.
Automation Flow: Image to Image Using GP Sora
This flow automates the process of generating images using a provided prompt and reference image via the Sora GP 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.
- Form Fields:
2. HTTP Request to Sora GP Image API
- Type:
n8n-nodes-base.httpRequest - Description: Sends the prompt and image URL to the Sora GP Image API to generate a new image based on the provided inputs.
- API Endpoint: Sora GP 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.
- Columns Mapped:
Flow Summary
- User Submits Form: Triggered when the form with the prompt and image URL is submitted.
- Image Generation: The data is sent to the Sora GP Image API from RapidAPI to generate the image.
- Image Processing: The generated image (base64 format) is decoded and saved as a file.
- Google Drive Upload: The image is uploaded to Google Drive for storage.
- 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 GP Image API via RapidAPI, making it a powerful tool for creative, design, and marketing purposes.
New buyers can create an account from the cart to unlock a controlled $10 first-purchase credit on eligible orders of $25+.
Related bundle
Content Repurposing Engine
8 hand-picked workflows for $29.00.
That is $3.63 each, vs $9.99 for this one alone.
View bundleSecure checkout powered by Stripe
Support
How to import this workflow into n8n
- 1Purchase or download the workflow to get the n8n workflow JSON file.
- 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
- 3Open each node marked with a credential warning and connect your own accounts and API keys.
- 4Run the workflow once manually to verify the data flow, then toggle it to Active.
Related AI workflows
- Launch Your First AI-Powered Chatbot with Actionable Tools$9.99
- Build a WhatsApp Assistant with Memory, Google Suite, Multi-AI, Research, and Imaging$24.99
- Automate AI Video Creation and YouTube Upload with Google Sheets$14.99
- Automate Blog Post Creation and Publishing with GPT, Leonardo AI, and WordPress$14.99
- Automate SEO Keyword Generation with ChatGPT from Google Sheets$3.99
- Email Agent$500.99
More from Sk developer
Need this deployed? We'll set it up for you.
Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.