Skip to main content

Generate AI images with text prompts using BananaAPI and Nano Banana Engine

Workflow preview

Workflow preview
100%
Generate AI images with text prompts using BananaAPI and Nano Banana Engine preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Cheap Nano Banana API AI Image Generator with BananaAPI.com Overview This workflow integrates BananaAPI.com with the Nano Banana image engine to generate or edit AI images from text prompts and opt...

Best for

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

Tools used

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

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Generate AI images with text prompts using BananaAPI and Nano Banana Engine
Workflow name
Generate AI images with text prompts using BananaAPI and Nano Banana Engine

Cheap Nano Banana API - AI Image Generator with BananaAPI.com

Overview

This workflow integrates BananaAPI.com with the Nano Banana image engine to generate or edit AI images from text prompts and optional reference images.

Users simply fill out a form with their prompt and preferences, the workflow submits the request to BananaAPI, polls the status until it is complete, and then returns the final image link.

Why use it?

  • Super affordable: only $0.025 per image
  • Pay-as-you-go pricing — no monthly subscription
  • Credits never expire — use anytime, no pressure
    Perfect for creators, marketers, and developers looking for a cost-effective AI image generator inside n8n.

Prerequisites

  • A BananaAPI.com account + API key (Bearer token). Sign up at BananaAPI.com.
  • An n8n instance (Cloud or self-hosted).
  • Basic knowledge of crafting AI prompts for better quality results.

⚠️ Important: Never expose your API key in public workflows. Use n8n Credentials for production setups.


Setup Instructions

1. Obtain API Key

  • Create an account at BananaAPI.com, generate your API key, and keep it safe.

2. Configure the Form

The Form Trigger collects the following fields:

  • api_token (required) — Banana API key
  • prompt (required) — image description (e.g., “a neon cyberpunk cat, detailed, 4k”)
  • Output Format [optional] — choose PNG or JPEG
  • Image Size [optional] — 16:9, 9:16, 1:1, 3:4, 4:3
  • image_url_1 ... image_url_5 [optional] — reference images for editing/transform

3. Workflow Execution

  1. User fills the form and submits.
  2. Workflow sends a POST request to https://bananaapi.com/api/n8n/generate/.
  3. BananaAPI forwards the job to Nano Banana.
  4. Workflow waits 5s, then polls status via image-status/{taskId}.
  5. If status != completed, loop until ready.
  6. Once completed, workflow returns the final image URL.

4. Outputs

The workflow returns:

  • image_url — the generated image link
  • task_id — task reference ID
  • status — job status (completed/pending)

💡 Tip: Add a Webhook Response node to return clean JSON for frontend apps.


Customization Tips

  • Enhance prompts with details like style (photorealistic, cartoon, cyberpunk), lighting, or action for better results.
  • Use image_url_1 with a strong prompt to create image editing flows.
  • Adjust wait time (5s → 8–10s) to optimize polling frequency.
  • Add validation to ensure required fields are always filled in.

API Reference

  • POST https://bananaapi.com/api/n8n/generate/
  • GET https://bananaapi.com/api/n8n/image-status/{taskId}
    Docs: BananaAPI Docs

✅ Always include Authorization: Bearer <token> in headers.


Pricing Advantages

  • $0.025 per image — cheaper than most alternatives
  • Pay-as-you-go — no monthly subscription required
  • Credits never expire — full flexibility to use anytime

This makes BananaAPI + Nano Banana one of the most budget-friendly AI image solutions for automation workflows.


Troubleshooting

  • 401/403 Unauthorized → Check Authorization header (Bearer token).
  • Invalid JSON → Ensure POST body is valid JSON (double quotes, no trailing commas).
  • No imageUrl returned → Task still pending; wait longer or verify taskId.
  • Slow performance → Increase wait interval (8–10s).

Security Best Practices

  • Do not hardcode API tokens in public workflows.
  • Use n8n Credentials for storing tokens securely.
  • Hide sensitive fields in forms or use Webhooks for controlled access.

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 - Form — Get Prompt

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

Block 2 - Submit — Banana API

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

Block 3 - Wait 5s

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

Block 4 - Check Status

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

Block 5 - Wait 5s (loop)

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

Block 6 - Return Links

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

Block 7 - If

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

Block 8 - NOTE — Overview

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

Block 9 - NOTE — Prerequisites

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

Block 10 - NOTE — Step 1 (Form Input)

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

Block 11 - NOTE — Step 2 (POST Request)

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

Block 12 - NOTE — Step 3 (Processing)

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

Block 13 - NOTE — Step 5 (Output)

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

Block 14 - NOTE — API Reference

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

Block 15 - NOTE — Pricing Advantages

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

Block 16 - NOTE — Troubleshooting

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

3. Summary Table

Workflow Generate AI images with text prompts using BananaAPI and Nano Banana Engine
Complexity advanced
Nodes 16
Categories Content Creation, Multimodal AI
Author Tran Trung Nghia
Published 08 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8375/8375.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 AI images with text prompts using BananaAPI and Nano Banana Engine do?

Cheap Nano Banana API AI Image Generator with BananaAPI.com Overview This workflow integrates BananaAPI.com with the Nano Banana image engine to generate or edit AI images from text prompts and opt...

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.