n8nflow.net logo

Text-to-Image Generator with Google Sheets & Drive Integration using Flux AI

by Evoort SolutionsUpdated: Last update 2 months agoSource: n8n.io
Loading workflow viewer...

Getting Started

🖼️ Text-to-Image Generator using n8n + Flux AI

This n8n workflow automates image generation from text prompts using the Text-to-Image Flux AI API. It reads prompts from Google Sheets, generates images via API, uploads them to Google Drive, and logs the outcome.


🌟 Key Features

  • Integrates with Text-to-Image Flux AI on RapidAPI
  • Converts base64 image data to downloadable files
  • Stores images on Google Drive
  • Updates logs and errors back into Google Sheets
  • Skips prompts already processed

📄 Google Sheet Column Structure

Your source Google Sheet should include the following columns:

Column NameDescription
PromptThe text prompt to generate an image from
drive path(Optional) File path or URL of saved image
Generated DateDate/time the image was generated
Base64Base64 string or error message (for logging)

Only rows with a non-empty Prompt and empty drive path will be processed.


📌 Use Case

Perfect for:

  • Bulk AI image generation for content marketing
  • Creative automation with prompt-based image creation
  • Building image assets based on structured datasets
  • Any workflow where prompts are tracked via Google Sheets

Uses the Text-to-Image Flux AI API to generate high-quality images on demand.


🔧 Workflow Summary

StepNodeDescription
1Manual TriggerManually start the workflow
2Google Sheets2Reads prompts from Google Sheets
3Loop Over ItemsProcesses rows one by one
4If2Skips rows that already have images
5HTTP Request1Calls Text-to-Image Flux AI via RapidAPI
6Code1Converts base64 image to binary file
7Google Drive1Uploads the image file to a Drive folder
8Google Sheets1Logs base64 result and timestamp back
9If1Handles errors from the API
10Google Sheets4Logs errors to the sheet
11WaitAdds delay between batches to prevent rate-limiting

🚀 RapidAPI: Text-to-Image Flux AI

This flow is powered by Text-to-Image Flux AI.

Be sure to:

  • Sign up at RapidAPI and subscribe to the API.
  • Copy your API Key.
  • Replace "your key" in the HTTP Request1 node’s x-rapidapi-key header.

You can test the API directly here before connecting it to n8n.


✅ Tips for Setup

  • Ensure you’ve set up a Google Service Account with access to both Sheets and Drive.
  • Fill only the Prompt column — leave drive path and Base64 empty for new prompts.
  • Monitor your RapidAPI dashboard for usage and quota.

Create your free n8n account and set up the workflow in just a few minutes using the link below:

👉 Start Automating with n8n

Save time, stay consistent, and grow your LinkedIn presence effortlessly!