APIMODELSAPIMODELS

Nano Banana MCP: use Nano Banana 2.1, 2 and Pro from Claude, Claude Code and Cursor

Updated 2026-11-25

TL;DR Short answer: Google does not publish an official Nano Banana MCP server. The hosted URL https://api.apimodels.app/mcp exposes Nano Banana 2.1 (nano-banana-2-1), Nano Banana 2 (gemini-3.1-flash-image) and Nano Banana Pro (gemini-3-pro-image-preview) through a generate_image tool. Add it as a remote MCP server and sign in once; no Gemini API key or Google Cloud billing is needed. Images start at $0.022.

Model page: Nano Banana 2.1 API — pricing, specs and the playground

A Nano Banana MCP server is a Model Context Protocol server that lets an AI assistant call Google's Nano Banana image models as a tool. With one connected, Claude, Claude Code, Cursor or Codex can generate and edit images in the middle of a conversation or a coding task, without you leaving the app.

We run apimodels.app, which hosts the server described here. The community servers in the comparison below were checked on their listing pages on 25 November 2026.

Add the Nano Banana MCP server to your client

Then ask in plain language: "Use Nano Banana 2.1 to make a 4:5 poster of…". The agent can also call list_models to see every image model on the same server, including GPT Image 2.6 and Seedream, if Nano Banana is not the right fit for a job.

ClientHow to add it
Claude.ai and Claude DesktopSettings → Connectors → Add custom connector, URL https://api.apimodels.app/mcp, then Connect and Authorize. Works on every Claude plan; Free allows one custom connector.
ChatGPTAdd a custom connector (remote MCP server) with https://api.apimodels.app/mcp, then sign in and authorize when asked.
Claude Codeclaude mcp add --transport http apimodels https://api.apimodels.app/mcp
CodexAdd the url to ~/.codex/config.toml, then run codex mcp login apimodels.
CursorAdd the url to ~/.cursor/mcp.json, then click Authenticate under Customize → MCPs.
Anything else on your computernpx -y apimodels-mcp install finds Claude Code, Codex, Claude Desktop, Cursor, VS Code, Windsurf, Gemini CLI and OpenCode and asks before adding apimodels to each.

Which Nano Banana to use

Start with Nano Banana 2.1: it is the newest, costs the least and takes up to 10 reference images with ratios from 1:8 to 8:1. For comparison, Google's own list price for Nano Banana 2.1 is $0.0336 per image at 1K. Use Pro when you need to match images already made with it.

ModelModel idPrice per image30-day success rate
Nano Banana 2.1nano-banana-2-1$0.022 at 1K, $0.036 at 2K, $0.06 at 4K99.9%
Nano Banana 2gemini-3.1-flash-image$0.06 at 1K and 2K99.9%
Nano Banana Progemini-3-pro-image-preview$0.068 at 1K and 2K, $0.13 at 4K99.7%

Editing images and using references

Pass one or more image URLs as references and describe the change: "keep the product, put it on a marble counter". The hosted server cannot read files on your computer, so in Claude Code or Cursor the agent first calls get_upload_url and uploads the local file, then uses the link it gets back. In Claude.ai, give it a public image link.

Hosted server or a community Nano Banana MCP

Choose a community server if you already pay Google for Gemini, want the code on your own machine, or need images written straight to a local folder. Choose the hosted one if you want it in Claude.ai, want other image and video models next to Nano Banana, or do not want to manage a Google Cloud account.

APIMODELS hostedCommunity servers (e.g. nano-banana-mcp, mcp-nano-banana)
SetupAdd a URL and sign inInstall with Node or Python, add your Gemini API key
BillingPer image from a prepaid APIMODELS balanceYour Google account at Google prices; billing must be enabled
ModelsNano Banana 2.1, 2, Pro, plus GPT Image, Seedream and video modelsNano Banana models only
Works in Claude.ai webYes, as a custom connectorOnly if you host it on a public URL
Source code and data pathThird-party hosted serviceOpen source; requests go straight from your machine to Google
Saving filesReturns links kept for 30 daysSome write images straight to a local folder

Quick start

Nano Banana MCP URL

https://api.apimodels.app/mcp

Claude Code

claude mcp add --transport http apimodels https://api.apimodels.app/mcp

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "apimodels": { "url": "https://api.apimodels.app/mcp" }
  }
}

cURL

curl -X POST https://api.apimodels.app/v1/images/generations \
  -H "Authorization: Bearer $APIMODELS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "nano-banana-2-1", "prompt": "Studio product photo of a ceramic coffee mug on oak, soft window light", "aspect_ratio": "16:9", "resolution": "1K"}'

# returns {"data": {"taskId": "...", "state": "pending"}}; poll until state is "completed":
curl "https://api.apimodels.app/v1/images/generations?task_id=TASK_ID" -H "Authorization: Bearer $APIMODELS_API_KEY"

FAQ

Is there an official Nano Banana MCP server from Google?

Not as of 25 November 2026. The Nano Banana MCP servers you will find are community projects that use your own Gemini API key, or hosted services such as APIMODELS.

What is the Nano Banana MCP URL?

https://api.apimodels.app/mcp. It is a remote (streamable HTTP) MCP server with OAuth sign-in; clients that prefer a header can send Authorization: Bearer with an APIMODELS key instead.

How do I use the Nano Banana MCP in Claude Code?

Run claude mcp add --transport http apimodels https://api.apimodels.app/mcp, then /mcp to sign in, and ask Claude Code to "generate the hero image with Nano Banana 2.1 and save it to public/". It can upload local images for editing first.

Does the Nano Banana MCP work in Cursor?

Yes. Put the URL in ~/.cursor/mcp.json under mcpServers, then click Authenticate next to apimodels under Customize → MCPs. The Cursor guide has screenshots of each step.

Do I need a Gemini API key?

Not for the hosted server: you sign in to APIMODELS and images are billed to that balance. Community servers do need your own Gemini API key with billing enabled.

How much does the Nano Banana MCP cost?

The server itself is free; you pay per image. Nano Banana 2.1 is $0.022 at 1K, $0.036 at 2K and $0.06 at 4K. Failed generations are not billed, and new accounts get $0.30 to try it.

Related

등재된 곳
APIMODELS on Product HuntAPIMODELS featured on ToolifyAPIMODELS featured on There's An AI For That