mcpField
N
nano-banana-image

nano-banana-image

github.com/acedatacloudCreative & media17222 installsUpdated today
Repository

About nano-banana-image

nano-banana-image is a skill for generating and editing images through AceDataCloud’s NanoBanana API, which uses Gemini-based models. It is for agents that need text-to-image generation, natural-language edits, and selectable model and output settings.

Key features

  1. 01Generate images from prompts
  2. 02Edit images with natural-language instructions
  3. 03Choose among NanoBanana models
  4. 04Set aspect ratio and resolution
  5. 05Poll asynchronous tasks

Use cases

  1. 01Create an image from a description
  2. 02Change the background of an existing image
  3. 03Request 2K or 4K output
  4. 04Check the status of an asynchronous generation

MCP support

Documents the mcp-nano-banana package and hosted MCP endpoint.

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/acedatacloud/skills --skill nano-banana-image

After installing, type/nano-banana-imagein Claude Code to confirm it loaded.

Bundled filesREADME.mdreadme.zh-CN.md

Details

From the project README

Nano Banana by Ace Data Cloud

Generate and edit AI images through AceDataCloud's NanoBanana (Gemini-based) API.

Install and connect from skills.sh

This integration is maintained by Ace Data Cloud; it is not an official Nano Banana publisher listing. Install only this Skill with npx skills add acedatacloud/skills --skill nano-banana-image --yes, or use the public skills.sh page. Keep the slug nano-banana-image when selecting it.

Read the illustrated first-run guide (简体中文) for registration, Applications → General application, API key access and price checks, and the environment variable location for your coding agent. For skills.sh installations, use this guide; any ClawHub-specific setup applies only to OpenClaw. The shared references linked here are online because focused installs do not include sibling _shared/ folders.

ClawHub / OpenClaw setup

  1. Install the official Skill with clawhub install @acedatacloud/nano-banana. Check that the ClawHub publisher is @acedatacloud.
  2. Sign in at AceDataCloud → Applications, open General application, and check Nano Banana access, balance, and current pricing. Copy its API key, or select Manage Keys → Create for a separate key. Copy the key value without Bearer ; a platform-... management token is not a service API key.
  3. If you enable Allowed APIs restrictions, include /nano-banana/images and /nano-banana/tasks. Advanced workflows below may call additional routes.
  4. On the OpenClaw Gateway host, put ACEDATACLOUD_API_TOKEN=your_api_key_here in ~/.openclaw/.env, then restart the Gateway and start a new session. For a direct terminal test, run export ACEDATACLOUD_API_TOKEN="your_api_key_here" in that shell. Never put the key in a prompt or commit an .env file.
  5. Run the Quick Start below. If this workflow returns a task ID, query that same task until it finishes; do not submit the same billable request again just to check progress.

Illustrated key setup, first run, and troubleshooting · Token details

Quick Start

curl -X POST https://api.acedata.cloud/nano-banana/images \
  -H "Authorization: Bearer $ACEDATACLOUD_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"action": "generate", "prompt": "a watercolor painting of a French countryside village", "model": "nano-banana"}'

Async: See async task polling. Poll via POST /nano-banana/tasks with {"id": "..."}.

Models

ModelBest For
nano-bananaStandard image generation (default)
nano-banana-2-liteFast, lightweight second-generation model
nano-banana-2Improved quality, second generation
nano-banana-2.1Latest efficient model; 1K, 2K, and 4K generation and editing
nano-banana-proHighest quality, most detailed output
nano-banana:officialOfficial channel variant of nano-banana
nano-banana-2-lite:officialOfficial channel variant of nano-banana-2-lite
nano-banana-2:officialOfficial channel variant of nano-banana-2
nano-banana-pro:officialOfficial channel variant of nano-banana-pro

Workflows

1. Text-to-Image
POST /nano-banana/images
{
  "action": "generate",
  "prompt": "a photorealistic macro shot of morning dew on a spider web",
  "model": "nano-banana-2.1",
  "aspect_ratio": "16:9",
  "resolution": "2K"
}
2. Image Editing

Edit existing images using natural language instructions — no mask needed. Pass source images via image_urls.

POST /nano-banana/images
{
  "action": "edit",
  "prompt": "change the background to a starry night sky",
  "image_urls": ["https://example.com/photo.jpg"],
  "model": "nano-banana-2.1",
  "resolution": "2K"
}

Parameters

ParameterValuesDescription
action"generate", "edit"Operation mode
model"nano-banana", "nano-banana-2-lite", "nano-banana-2", "nano-banana-2.1", "nano-banana-pro", "nano-banana:official", "nano-banana-2-lite:official", "nano-banana-2:official", "nano-banana-pro:official"Model to use; 2.1 has no :official variant
promptstringImage description or editing instruction
image_urlsarray of stringsSource image URLs (required for edit action)
aspect_ratio"1:1", "3:2", "2:3", "16:9", "9:16", "4:3", "3:4"Output aspect ratio
resolution"1K", "2K", "4K"Default 1K; nano-banana and nano-banana-2-lite support only 1K; 2, 2.1, and Pro support all three resolutions
callback_urlstringAsync callback URL; returns a task ID immediately

To use 2.1, explicitly set model:"nano-banana-2.1"; omitting model still selects nano-banana. For nonblocking requests, set async:true, retain task_id, and poll /nano-banana/tasks to terminal success before returning an image. No nano-banana-2.1:official variant is published.

The same 2.1 model is also accepted by POST /openai/images/generations (public alias /v1/images/generations) and POST /openai/images/edits (public alias /v1/images/edits). Those use their own OpenAI-compatible schemas (image for JSON editing, not image_urls; size rather than this endpoint's resolution/aspect_ratio). Check that endpoint's current schema before reusing a request; do not assume identical response fields. Prices depend on the current service/package; consult live pricing rather than hard-coding a per-call USD amount.

Gotchas

  • Editing does NOT require a mask — just describe the change in natural language
  • Editing uses the same /nano-banana/images endpoint with action: "edit" and image_urls array (not a separate /edit path)
  • nano-banana-2.1 supports 1K, 2K, and 4K; nano-banana-pro offers the highest quality
  • :official variants (e.g., nano-banana:official) route through the official channel
  • Task polling uses id (not task_id) in the /nano-banana/tasks request body
  • Aspect ratio uses colon notation (e.g., "16:9") not pixel dimensions
  • The Gemini-based model excels at understanding complex, conversational editing instructions

MCP: pip install mcp-nano-banana | Hosted: https://nanobanana.mcp.acedata.cloud/mcp | See all MCP servers

Comments

Markdown supported