Text-to-image generation with Nano Banana Pro in n8n

Demo summary
The creator demonstrates an n8n workflow that uses an HTTP request node to call the Nano Banana Pro model via Key.ai to generate a hyperrealistic image of the Chicago skyline from a text prompt.
Step-by-step
- Create an account at Key.ai and add billing information to generate an API key
- In n8n, configure an HTTP Request node to the 'create task' endpoint using the Nano Banana Pro model
- Input your image prompt, aspect ratio, resolution, and output format into the request body
- Add a Wait node set to 5 seconds to allow for image generation
- Configure a second HTTP Request node to the 'query task' endpoint using the Task ID from the first node
- Add a Switch node to check if the status is 'succeeded', 'generating', or 'failed'
- Create a loop from the 'generating' path back to the Wait node to poll for results
- Extract the final image URL from the successful result
Options
- Change aspect ratio to 2:3, 3:2, 16:9, or 9:16
- Set input resolution to 1K, 2K, or 4K
- Use image input for image-to-image generation instead of just text
Watch out for
- You must replace the placeholder string in the workflow with your own Key.ai API key
- Billing information must be configured in Key.ai before you can generate a key
Tips
- Use a polling loop with a Switch node to ensure the workflow only proceeds once the image generation is successful
- Refer to the Nano Banana Pro API documentation to find specific endpoint URLs and required body parameters
Highlights
“when you get this workflow, all you'll have to do is replace this string with your own API key”
All demos from “How to Use the NEW Nano Banana 2 in n8n (cheaper & no watermark)”
3:063:39Text-to-image generation with Nano Banana Pro in n8nCurrentThe creator demonstrates an n8n workflow that uses an HTTP request node to call the Nano Banana Pro model via Key.ai to generate a hyperrealistic image of the Chicago skyline from a text prompt.n8n· Text to Image
7:042:25Image-to-image transformation using n8n and Nano Banana ProThis clip shows how to upload a personal photo to an n8n workflow and use Nano Banana Pro to transform it into a new scene, such as placing the subject on a beach while maintaining their likeness.n8n· Image to Image
9:291:46Combining multiple images into one with Nano Banana ProThe demo shows an n8n automation that takes three separate product image URLs (shirt, watch, water bottle) and uses Nano Banana Pro to generate a single composite image of a man using all three items.n8n· AI Image Combiner- Watch “How to Use the NEW Nano Banana 2 in n8n (cheaper & no watermark)” →
Text to Image
3:063:39Text-to-image generation with Nano Banana Pro in n8nCurrentThe creator demonstrates an n8n workflow that uses an HTTP request node to call the Nano Banana Pro model via Key.ai to generate a hyperrealistic image of the Chicago skyline from a text prompt.Nate Herk | AI Automation
6:031:22Basic image generation with n8n Gemini nodeThe video shows how to use the standard Google Gemini node in n8n to generate an image by manually entering the model ID for Nano Banana Pro.Leon van Zyl
3:301:26Text-to-image generation in n8nA demonstration of using the 'Message a Model' node in n8n with the Imagen 3 model to generate a realistic image of Alaskan wildlife from a text prompt.Kyle Friel | AI Software
n8n