Skip to main content

Generate product creative images with Google Nano-Banana model via Defapi

Workflow preview

Workflow preview
100%
Generate product creative images with Google Nano-Banana model via Defapi preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow 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, ...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.httprequest, n8n-nodes-base.formtrigger, n8n-nodes-base.wait, n8n-nodes-base.if, n8n-nodes-base.set

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by panyanyany.

Original n8n.io source

1.1 Workflow description

Title
Generate product creative images with Google Nano-Banana model via Defapi
Workflow name
Generate product creative images with Google Nano-Banana model via Defapi

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 creative scene, a product image URL, and their API key. The system automatically submits the request to the Defapi API, monitors the generation status in real time, and retrieves the final creative image output. This solution is ideal for marketers, product designers, e-commerce businesses, and content creators who want to quickly generate compelling product advertisements and creative visuals with minimal setup.

Prerequisites

  • A Defapi account and API key: Sign up at Defapi.org to obtain your API key.
  • An active n8n instance (cloud or self-hosted) with HTTP Request and form submission capabilities.
  • Basic knowledge of AI prompts for product creative generation to achieve optimal results.
  • A product image URL for creative generation.

Setup Instructions

  1. Obtain API Key: Register at Defapi.org and generate your API key. Store it securely—do not share it publicly.
  2. Configure the Form: In the "Submit Image for Creative Generation" node, ensure the following fields are set up: prompt (creative scene description), img_url (product image URL), api_key.
  3. Test the Workflow:
    • Click "Execute Workflow" in n8n.
    • Access the generated form URL, submit your prompt, image URL, and API key.
    • The workflow will wait 10 seconds and then poll the API status until the image generation is complete.
  4. Handle Outputs: The final node formats and displays the generated creative image URL for download or embedding.

Customization Tips

  • Enhance Prompts: Include specifics like scene setting, lighting, style (e.g., realistic, artistic, cinematic), product placement, and visual elements to improve AI creative image quality.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Obtain the generated status

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 3 - Submit Image for Creative Generation

Type / Role
n8n-nodes-base.formTrigger - formTrigger
Config choices
Version 2.2

Block 4 - Send Image Generation Request to Defapi.org API

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 5 - Wait for Image Processing Completion

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 6 - Check if Image Generation is Complete

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 7 - Format and Display Image Results

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 8 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Get Your Balance

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 11 - Show Balance

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

3. Summary Table

Workflow Generate product creative images with Google Nano-Banana model via Defapi
Complexity intermediate
Nodes 11
Categories Content Creation, Multimodal AI
Author panyanyany
Published 11 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8484/8484.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Generate product creative images with Google Nano-Banana model via Defapi do?

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, ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.