Community Contributed ChatGPT Image Generator with Drive and Sheet
detail.loadingPreview
Generates images using ChatGPT's image model and saves them to Google Drive, logging details to Google Sheets.
🚀Ready to Deploy This Workflow?
About This Workflow
Overview
This workflow leverages n8n to connect with ChatGPT's image generation capabilities. It takes a user's text prompt, generates an image using a specified model and parameters, saves the generated image to a Google Drive folder, and logs the prompt, image link, and usage statistics to a Google Sheet.
Key Features
- Integrates with OpenAI's image generation API.
- Saves generated images directly to a specified Google Drive folder.
- Logs image generation details, including prompt and image URL, to a Google Sheet.
- Records estimated token usage and costs for both input and output.
- Allows for customization of image generation parameters like model, size, and quality.
How To Use
- Import the workflow: Load this JSON into your n8n instance.
- Configure Credentials:
- Set up and authenticate your
OpenAiApicredential. - Set up and authenticate your
GoogleDriveOAuth2Apicredential. - Set up and authenticate your
GoogleSheetsOAuth2Apicredential.
- Set up and authenticate your
- Set Environment Variables: Ensure
API_BASE_URLis correctly set in your n8n environment settings. - Configure Nodes:
- HTTP Request (Node ID: b32b61bb-c837-4697-9742-a1bb2854b628): Verify the
nodeCredentialTypeandYOUR_CREDENTIAL_HEREplaceholder for the OpenAI credential. - Google Drive (Node ID: 0ead70d0-9e3b-4f19-afee-b5d4a7b532e9): Update
driveIdandfolderIdto match your desired Google Drive location. - Google Sheets (Node ID: 6bd8f7dc-1006-4d7f-b3eb-0a3aaa1b9a84): Set the correct
sheetNameanddocumentIdfor your Google Sheet. - Google Sheets1 (Node ID: 1e687fde-8465-4490-8738-c9832904f2b5): Ensure the
documentIdis set for the cost tracking sheet.
- HTTP Request (Node ID: b32b61bb-c837-4697-9742-a1bb2854b628): Verify the
- Activate: Enable the workflow. Images will be generated when triggered via the
When chat message receivednode.
Apps Used
Workflow JSON
{
"id": "27a3399c-cec1-4ab9-9ab6-8ddcc3cc2220",
"name": "Community Contributed ChatGPT Image Generator with Drive and Sheet",
"nodes": 0,
"category": "AI/Image Generation",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 27a3399c-cec1...
About the Author
AI_Workflow_Bot
LLM Specialist
Building complex chains with OpenAI, Claude, and LangChain.
Statistics
Verification Info
Related Workflows
Discover more workflows you might like
Telegram Profanity & Toxicity Filter
This n8n workflow automatically monitors incoming Telegram messages for profanity and toxic language. It leverages Google's Perspective API to analyze message content, and if a message is deemed inappropriate, the workflow sends an automated warning response back to the sender.
Robust Concurrency Control for n8n Workflows with Redis
Prevent simultaneous execution of critical n8n workflows or tasks using a centralized, Redis-backed locking mechanism. This reusable utility workflow ensures data integrity and resource management by allowing other workflows to acquire, check, and release locks.
Convert Any Webpage to PDF and Save Locally
This n8n workflow provides a simple way to convert any public webpage URL into a PDF document. Once converted, the PDF file is automatically saved to your local disk, making it easy to archive or share web content offline.
Automated Multi-Platform Influencer Discovery & Qualification
This powerful n8n workflow automates the entire process of discovering, scoring, and qualifying ideal influencers across Instagram, TikTok, and YouTube for your marketing campaigns. Streamline your talent acquisition by leveraging custom criteria and a sophisticated scoring algorithm.
Automated Multi-Platform Social Media Publisher
Streamline your social media content creation and publishing with this n8n workflow. Simply fill out a web form with your caption, media (image or video), and target platforms, and let n8n automate the posting process across multiple social networks.
Universal CSV to JSON API Converter
Effortlessly transform CSV data into structured JSON with this versatile n8n workflow. Integrate it into any application as a custom API endpoint, supporting various input methods including file uploads and raw text.