Templates / Generate images with GPT-image-1 and store in Google Drive with cost tracking

Generate images with GPT-image-1 and store in Google Drive with cost tracking

Ready for 3.0

by darrell_tw ✓ · 3,787 views · created 2025-04-25 · Content Creation, Multimodal AI

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 12 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects Google Drive and Google Sheets. It also calls api.openai.com over HTTP.

How it runs

Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).

  1. HTTP Request: calls api.openai.com (POST)
  2. Split Out: splits a list into separate items
  3. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  4. Aggregate: combines items into one
  5. Edit Fields-file_name (Edit Fields (Set)): sets 2 fields: file_name, b64_json
  6. Google Sheets: append
  7. Convert to File: converts data to a file (to binary)
  8. Google Drive: uses Google Drive
  9. Edit Fields (Edit Fields (Set)): sets 4 fields: id, webViewLink, thumbnailLink…
  10. Google Sheets: append

Services it uses

Google DriveGoogle Sheets

HTTP calls to: api.openai.com

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (10)

From the author

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…

Excerpt from darrell_tw's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.