Loading...
Loading...
Generate and edit AI images with NanoBanana (Gemini-based) via AceDataCloud API. Use when creating images from text prompts or editing existing images with text instructions. Supports nano-banana, nano-banana-2, nano-banana-pro and their :official variants.
npx skill4agent add acedatacloud/skills nano-banana-imageSetup: See authentication for token setup.
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 viawithPOST /nano-banana/tasks.{"id": "..."}
| Model | Best For |
|---|---|
| Standard image generation (default) |
| Improved quality, second generation |
| Highest quality, most detailed output |
| Official channel variant of |
| Official channel variant of |
| Official channel variant of |
POST /nano-banana/images
{
"action": "generate",
"prompt": "a photorealistic macro shot of morning dew on a spider web",
"model": "nano-banana-pro",
"aspect_ratio": "16:9",
"resolution": "2K"
}image_urlsPOST /nano-banana/images
{
"action": "edit",
"prompt": "change the background to a starry night sky",
"image_urls": ["https://example.com/photo.jpg"],
"model": "nano-banana"
}| Parameter | Values | Description |
|---|---|---|
| | Operation mode |
| | Model to use |
| string | Image description or editing instruction |
| array of strings | Source image URLs (required for edit action) |
| | Output aspect ratio |
| | Output resolution (1K=1024px, 2K=2048px, 4K=4096px) |
| string | Async callback URL; returns a task ID immediately |
/nano-banana/imagesaction: "edit"image_urls/editnano-banana-2nano-banana-pro:officialnano-banana:officialidtask_id/nano-banana/tasks"16:9"MCP:| Hosted:pip install mcp-nano-banana| See all MCP servershttps://nano-banana.mcp.acedata.cloud/mcp