🎬 Text-to-image generator with Google Sheets & Drive integration using Flux AI

⚑ 1,169 views · 🎬 Content Creation & Video

Description

πŸ–ΌοΈ 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


πŸ“„ 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:

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:

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


βœ… Tips for Setup


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!

πŸ”— Nodes Used

Google Sheets, HTTP Request, Google Drive

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup