FM
FlowMarket
General Automation Advanced ⚡ 16 n8n Nodes

Generate images with GPT image 1 and store in Google Drive with

How it works - Receive a chat input as an image prompt. - Call OpenAI's gpt-image-1 API to generate an image. - Split the returned images and process them on...

🔌 Nodes & Integrations Used (5)

HTTP Request Google Drive Convert To File Google Sheets Chat Trigger

📖 Implementation & Setup Guide

How it works

  • Receive a chat input as an image prompt.
  • Call OpenAI's `gpt-image-1` API to generate an image.
  • Split the returned images and process them one by one.
  • Upload each generated image to **Google Drive**.
  • Save image links and thumbnails to a **Google Sheets** document.
  • Record token usage and estimated cost into a separate sheet.

Set up steps

  1. Connect your **OpenAI API** credentials for image generation.
  2. Connect your **Google Drive** and **Google Sheets** accounts.
  3. Set the destination folder in Google Drive.
  4. Set the target Google Sheet and specify the correct sheet tabs.
  5. The setup usually takes around **5-10 minutes**.
  6. Detailed field mappings are already pre-configured inside the workflow.
  7. Additional tips and instructions are included as **sticky notes** inside the workflow.

Google Sheet copy url [Copy Sheet Link](https://docs.google.com/spreadsheets/d/1zsWBgeA7I5Q_gsocz6hmkW884QT_vfz_mgGCT54VSN0/copy)

⚡ How to import this workflow into n8n:

  1. Click the Direct Download JSON button above to save Generate_images_with_GPT_image_1_and_store_in_Google_Drive_with.json.
  2. Log in to your n8n Cloud or self-hosted n8n instance.
  3. In your workflow canvas, click the menu in top-right and select Import from File (or paste the JSON directly).
  4. Configure your credentials (e.g. API keys, database URLs) in the corresponding node settings.
  5. Click Execute Workflow to test and switch to Active!

Related General Automation Workflows

View All in General Automation →