Generate product creative images with Google Nano-Banana model via Defapi
Ready for 3.0What this workflow does
This workflow has 8 nodes and runs when someone submits an n8n form (“AI Product Creative Generator”). It uses only n8n's built-in nodes. It also calls api.defapi.org over HTTP.
How it runs
Trigger: When someone submits an n8n form (“AI Product Creative Generator”).
- Send Image Generation Request to Defapi.org API (HTTP Request): calls api.defapi.org (POST)
- Wait: waits 10 seconds
- Obtain the generated status (HTTP Request): calls api.defapi.org
- Check if Image Generation is Complete (If): checks a condition and branches into true / false
- Format and Display Image Results (Edit Fields (Set)): sets 1 field: image_url
- Get Your Balance (HTTP Request): calls api.defapi.org
- Show Balance (Edit Fields (Set)): sets 1 field: data.credit
HTTP calls to: api.defapi.org
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (5)
- HTTP Request
n8n-nodes-base.httpRequest - n8n Form Trigger
n8n-nodes-base.formTrigger - Wait
n8n-nodes-base.wait - If
n8n-nodes-base.if - Edit Fields (Set)
n8n-nodes-base.set
From the author
Overview This workflow utilizes the Defapi API with Google's Nano-Banana model to generate AI-powered product creative images from text prompts and product images. Users can interact through a simple form, providing a text prompt describing the desired…