Nano Banana 2 API and MCP for AI agents
TollNode gives Claude, Cursor or any AI agent Nano Banana 2, Google's image model with conversational edits, sharp text and up to 14 reference images, over API and MCP, from $0.092 per image, with no subscription.
Ask for 'a cozy bakery window on a rainy evening with a chalkboard sign that reads FRESH BREAD DAILY' and get a finished image link back.
No subscription · Sign-up optional · From $0.092 per call · Charged only when it works · No Google account needed
Generate a 4:3 photo of a cozy bakery window on a rainy evening with a chalkboard sign reading FRESH BREAD DAILY, 1K
TollNode · Google · 1K$0.092 · 1 image
| Result | Detail |
|---|---|
| File | 1 image link, does not expire |
| Resolution | 1K |
| Aspect ratio | 4:3 |
Real result, shown below.
Nano Banana 2 image examples
Made by this node in our own tests, from the request shown under each.

“A cosy bakery window on a rainy evening, warm light inside, a chalkboard sign in the window that reads FRESH BREAD DAILY, raindrops on the glass, photograph”
The request that made it
Send the same body to get this kind of result. Change the prompt or the options to get your own.
{
"prompt": "A cosy bakery window on a rainy evening, warm light inside, a chalkboard sign in the window that reads FRESH BREAD DAILY, raindrops on the glass, photograph",
"resolution": "1K",
"aspect_ratio": "4:3"
}What you control with Nano Banana 2
Prompt and style
Nano Banana 2 prompt to image
Describe the scene, including any text to show.
- Prompt
- A cozy bakery window on a rainy evening with a chalkboard sign that reads FRESH BREAD DAILY...
- Aspect ratio
- 4:3
- Returns
- 1 image link
You get
- prompt: what to create or change, up to 2,000 characters
- aspect_ratio: 10 fixed shapes, or match the input image
- output_format: jpg or png
Reference images
Edit and combine up to 14 photos
Give it up to 14 photos to edit or combine.
- image_input
- https://.../storefront.jpg
- Prompt
- Add rain on the glass and warm light inside
- aspect_ratio
- match_input_image (default)
You get
- image_input: up to 14 image URLs (https)
- aspect_ratio: match_input_image keeps the source shape
- prompt: what to change or how to combine them
- from $0.092
Resolution and price
1K, 2K and 4K output
Pick the resolution; the price follows it.
- Default
- 1K
- Resolution used
- 1K
- 4K
- highest detail, highest price
You get
- 1K: the default, for drafts and web use
- 2K: higher detail for most finished work
- 4K: highest detail, highest price
Failed calls are never charged, and image links returned by TollNode don't expire.
What people ask their AI to do with it
Ecommerce sellers
Product photos without a shoot
“Make a 1:1 photo of my ceramic mug on a wood counter with morning light, 2K”
2K
Cost today$0.138
Marketers
Ad images with readable text
“Create a 4:5 ad for a bakery with the headline FRESH BREAD DAILY in bold letters, 2K”
2K
Cost today$0.138
Real estate agents
Edit listing photos from references
“Take this living room photo and show it staged with a gray sofa and warm lamps”
1K
Cost today$0.092
Content creators
Thumbnails and blog headers
“Make a 16:9 thumbnail: me holding a loaf of bread, bold text BAKE LIKE A PRO, 2K”
2K
Cost today$0.138
Restaurant owners
Menu boards and window signage art
“Draw a rainy bakery storefront at night with a chalkboard sign that reads OPEN UNTIL 8, 4K”
4K
Cost today$0.205
Designers
Concept art and packaging mockups
“Generate three bread bag packaging concepts, flat lay on a linen background, 2K”
3 × 2K
Cost today$0.414
Use it as a Nano Banana 2 MCP server in Claude, Cursor or Codex
Connect once. Then just ask.
Paste this into Claude Code, Cursor or Codex. It connects TollNode and gives your agent a small wallet. Add a few dollars of USDC and you're done.
npx agentcash add https://tollnode.comCopy for your AI agent
Paste this into your agent so it knows what this node does and how to call it.
You can use TollNode's Nano Banana 2 node to create and edit images. Call POST https://tollnode.com/api/v1/nodes/nano-banana-2 with prompt (required, up to 2,000 characters), resolution (1K, 2K or 4K, default 1K), aspect_ratio (10 fixed shapes or match_input_image), image_input (up to 14 https image URLs, optional) and output_format (jpg or png). The price depends on resolution and is charged only when an image is returned. Over MCP, call the "nano-banana-2" tool; use list_models to see prices. Give me the image link when it is done.Price
from $0.092
per image
The price depends on the resolution you choose. If you don't choose, you get 1K.
| 1Kdefault | $0.092 per image |
| 2K | $0.138 per image |
| 4K | $0.205 per image |
Charged only when a call returns a result. Failed or empty calls cost $0.
Nano Banana 2 without a Google account
No subscription, no credit packs
Pay per image: $0.092 at 1K, $0.138 at 2K, $0.205 at 4K.
No Google account, no cloud project, no quota form
Your agent calls TollNode. You never set up billing or request access.
Only charged when it works
If generation fails or returns nothing, the call costs nothing.
One connection, many image models
The same setup also gives your agent Nano Banana Pro, FLUX, Seedream and others, so it can compare results.
FAQ
- Is this the official Google API?
- No. TollNode is an independent service. It gives your agent access to Nano Banana 2 through its own API and MCP server, priced per image, with no Google account needed.
- Can I use it as a Nano Banana 2 MCP server in Claude?
- Yes. Add https://tollnode.com/mcp in Claude Code, Claude Desktop or Cursor, and the "nano-banana-2" tool appears with its options and prices.
- What resolutions and shapes can I get?
- 1K, 2K or 4K, in 10 fixed aspect ratios from 1:1 to 21:9, or match_input_image to keep your source photo's shape. The resolution you pick sets the price.
- Can it edit my own photos?
- Yes. Send up to 14 image URLs in image_input and describe the change, like adding rain or swapping a background. Use match_input_image to keep the original shape.
- How good is text inside the images?
- It is built for sharp text, which suits signs, chalkboards, labels and ads. Put the exact wording in quotes in your prompt.
- What if no image comes back?
- You're not charged. TollNode only collects payment when a usable image is returned.
- How long are the image links valid?
- They don't expire. Download the file or keep the link.
Works well with
- Nano Banana 2.1 image generationRun the same prompt on the next Nano Banana to comparefrom $0.047
- Nano Banana Pro image generationStep up to Google's top-tier Nano Banana for the same kind of requestfrom $0.204
- Crisp image upscalerEnlarge a finished Nano Banana 2 image for print$0.010
- Veo 3.1 video with soundTurn a finished image into a short video with soundfrom $2.161
Ready in a minute
Connect your AIFor developers: endpoint, inputs and an example response
POST https://tollnode.com/api/v1/nodes/nano-banana-2
Input
| Field | Type | Notes |
|---|---|---|
| prompt* | string | What to create or change |
| resolution | enum | Output resolution; sets the price. Default 1K (1K, 2K, 4K) |
| image_input | array | Reference or source image URLs (https), optional. Or send the file inline as a base64 data: URI (up to 4.5 MB) |
| aspect_ratio | enum | Aspect ratio, default match_input_image (match_input_image, 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9) |
| output_format | enum | (jpg, png) |
Example response
{
"images": [
"https://tollnode.com/api/v1/files/00000000-0000-0000-0000-000000000000/0"
]
}Also described in the OpenAPI file and llms.txt. Setup for every app: Agents & MCP.