Image-to-image transformation using n8n and Nano Banana Pro

Demo summary
This 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.
Step-by-step
- Open the n8n form and enter an image prompt describing the desired transformation
- Upload the source image file to the form
- Convert the binary image data into a publicly accessible URL using an HTTP request node
- Add an 'image_input' object to the JSON body of the Nano Banana API request
- Map the public image URL variable to the 'image_input' field
- Execute the workflow and wait for the prediction to process
Watch out for
- Nano Banana requires the input image to be a public URL to view and change it
- The API may return a 422 'unexpected error handling prediction' due to high server load even if the prompt is correct
Tips
- If the workflow fails with a 422 error, try running the exact same image and prompt again as it may just be a temporary server issue
- Check the logs in the 'Key' interface to verify if runs were successful or to see specific error messages
- Use a switch node with different paths to handle potential workflow failures
Highlights
“with this little of a prompt, you'll see how good the results are... this stuff is pretty solid.”
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 n8nThe 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 ProCurrentThis 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)” →
Image to Image
7:042:25Image-to-image transformation using n8n and Nano Banana ProCurrentThis 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.Nate Herk | AI Automation
10:273:02Edit images using n8n and Nano Banana ProThe creator demonstrates how to convert an uploaded image to base64 and use it in an n8n workflow to perform image-to-image editing with a text prompt.Leon van Zyl
n8n