AcademyWorkflowsDesign and media

Generate Images with GPT-image-1 and Log Costs

Design and marketing teams that generate image drafts and need a record of what each one costs.

  • Recommendedour rating
  • 2,812views on n8n
Open on n8n.io ↗

Paste it straight onto an n8n canvas with Ctrl+V or Cmd+V.

generate-images-with-gpt-image-1-and-store-in-google-drive-with-cost-tracking.json

Loading the file...

What it does

A chat message becomes an image prompt, and the workflow calls OpenAI's gpt-image-1 model to generate the image. Each result is uploaded to Google Drive, and its link and thumbnail are saved to a Google Sheet. Token usage and an estimated cost are recorded on a separate sheet tab.

Use cases

  1. 01Create image drafts from a chat message
  2. 02Keep a sheet of links and thumbnails
  3. 03Track token use and estimated cost per image

Connects

Google Sheets · HTTP Request · Google Drive

Questions about
Generate Images with GPT-image-1 and Log Costs.

What is Generate Images with GPT-image-1 and Log Costs used for?

Design and marketing teams that generate image drafts and need a record of what each one costs. A chat message becomes an image prompt, and the workflow calls OpenAI's gpt-image-1 model to generate the image. Each result is uploaded to Google Drive, and its link and thumbnail are saved to a Google Sheet. Token usage and an estimated cost are recorded on a separate sheet tab.

How do I import Generate Images with GPT-image-1 and Log Costs into n8n?

Copy the workflow JSON from this page and paste it onto the n8n canvas with Ctrl+V or Cmd+V. Then connect your credentials in each node.

Is Generate Images with GPT-image-1 and Log Costs safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.