nano-banana-mcp
v3.3.0AI image generation and editing with Google Gemini: Nano Banana 2.1, Pro and Lite models
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
configure_gemini_token
Configure your Gemini API token for nano-banana image generation
| Parameter | Type | Description |
|---|---|---|
apiKey * | string | Your Gemini API key from Google AI Studio |
generate_image
Generate a NEW image from text prompt. Use this ONLY when creating a completely new image, not when modifying an existing one.
| Parameter | Type | Description |
|---|---|---|
prompt * | string | Text prompt describing the NEW image to create from scratch |
aspectRatio | string | Aspect ratio of the output image. Omit to let the model choose: new images usually come out landscape (about 16:9) and edits keep the source image's shape. Pass "1:1" for a square image. |
imageSize | string | Resolution of the output image. Default: "1K". Use "2K" or "4K" for high-resolution output. "512px" works only on "gemini-3.1-flash-image". |
model | string | Model to use. "gemini-nano-banana-2.1" (default, Nano Banana 2.1 — pro quality at Flash speed), "gemini-3.1-flash-image" (Nano Banana 2, previous default), "gemini-3.1-flash-lite-image" (Nano Banana… |
preset | string | Shape by use: "web" (16:9 landscape), "phone" (9:16 portrait), "webconf" (16:9 video-call background for Zoom/Teams), "banner" (4:1 wide strip, e.g. LinkedIn banner), "square" (1:1). Overridden by asp… |
thinkingLevel | string | How much the model reasons before drawing. "minimal" is fastest and cheapest; "high" is best for complex prompts (infographics, text in images, several consistent characters). Default: the model's own… |
useGoogleSearch | boolean | Enable Google Search grounding for fact-aware image generation. Not supported on "gemini-3.1-flash-lite-image". |
edit_image
Edit a SPECIFIC existing image file, optionally using additional reference images. Use this when you have the exact file path of an image to modify.
| Parameter | Type | Description |
|---|---|---|
imagePath * | string | Full file path to the main image file to edit |
prompt * | string | Text describing the modifications to make to the existing image |
aspectRatio | string | Aspect ratio of the output image. Omit to let the model choose: new images usually come out landscape (about 16:9) and edits keep the source image's shape. Pass "1:1" for a square image. |
imageSize | string | Resolution of the output image. Default: "1K". Use "2K" or "4K" for high-resolution output. "512px" works only on "gemini-3.1-flash-image". |
model | string | Model to use. "gemini-nano-banana-2.1" (default, Nano Banana 2.1 — pro quality at Flash speed), "gemini-3.1-flash-image" (Nano Banana 2, previous default), "gemini-3.1-flash-lite-image" (Nano Banana… |
preset | string | Shape by use: "web" (16:9 landscape), "phone" (9:16 portrait), "webconf" (16:9 video-call background for Zoom/Teams), "banner" (4:1 wide strip, e.g. LinkedIn banner), "square" (1:1). Overridden by asp… |
referenceImages | array | Optional array of file paths to additional reference images to use during editing (e.g., for style transfer, adding elements, etc.) |
thinkingLevel | string | How much the model reasons before drawing. "minimal" is fastest and cheapest; "high" is best for complex prompts (infographics, text in images, several consistent characters). Default: the model's own… |
useGoogleSearch | boolean | Enable Google Search grounding for fact-aware image generation. Not supported on "gemini-3.1-flash-lite-image". |
get_configuration_status
Check if Gemini API token is configured
continue_editing
Continue editing the LAST image that was generated or edited in this session, optionally using additional reference images. Use this for iterative improvements.
| Parameter | Type | Description |
|---|---|---|
prompt * | string | Text describing the modifications to make to the last image |
aspectRatio | string | Aspect ratio of the output image. Omit to let the model choose: new images usually come out landscape (about 16:9) and edits keep the source image's shape. Pass "1:1" for a square image. |
imageSize | string | Resolution of the output image. Default: "1K". Use "2K" or "4K" for high-resolution output. "512px" works only on "gemini-3.1-flash-image". |
model | string | Model to use. "gemini-nano-banana-2.1" (default, Nano Banana 2.1 — pro quality at Flash speed), "gemini-3.1-flash-image" (Nano Banana 2, previous default), "gemini-3.1-flash-lite-image" (Nano Banana… |
preset | string | Shape by use: "web" (16:9 landscape), "phone" (9:16 portrait), "webconf" (16:9 video-call background for Zoom/Teams), "banner" (4:1 wide strip, e.g. LinkedIn banner), "square" (1:1). Overridden by asp… |
referenceImages | array | Optional array of file paths to additional reference images |
thinkingLevel | string | How much the model reasons before drawing. "minimal" is fastest and cheapest; "high" is best for complex prompts (infographics, text in images, several consistent characters). Default: the model's own… |
useGoogleSearch | boolean | Enable Google Search grounding for fact-aware image generation. Not supported on "gemini-3.1-flash-lite-image". |
get_last_image_info
Get information about the last generated/edited image in this session.