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.
Your source Google Sheet should include the following columns:
Column Name | Description |
---|---|
Prompt |
The text prompt to generate an image from |
drive path |
(Optional) File path or URL of saved image |
Generated Date |
Date/time the image was generated |
Base64 |
Base64 string or error message (for logging) |
Only rows with a non-empty Prompt
and empty drive path
will be processed.
Perfect for:
Uses the Text-to-Image Flux AI API to generate high-quality images on demand.
Step | Node | Description |
---|---|---|
1 | Manual Trigger | Manually start the workflow |
2 | Google Sheets2 | Reads prompts from Google Sheets |
3 | Loop Over Items | Processes rows one by one |
4 | If2 | Skips rows that already have images |
5 | HTTP Request1 | Calls Text-to-Image Flux AI via RapidAPI |
6 | Code1 | Converts base64 image to binary file |
7 | Google Drive1 | Uploads the image file to a Drive folder |
8 | Google Sheets1 | Logs base64 result and timestamp back |
9 | If1 | Handles errors from the API |
10 | Google Sheets4 | Logs errors to the sheet |
11 | Wait | Adds delay between batches to prevent rate-limiting |
This flow is powered by Text-to-Image Flux AI.
Be sure to:
"your key"
in the HTTP Request1
node’s x-rapidapi-key
header.You can test the API directly here before connecting it to n8n.
Prompt
column — leave drive path
and Base64
empty for new prompts.Create your free n8n account and set up the workflow in just a few minutes using the link below:
Save time, stay consistent, and grow your LinkedIn presence effortlessly!