> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Nano Banana 2 image generation and text generation model (vertexai/gemini-3.1-flash-image): where to run it and pricing

> Nano Banana 2 is a image generation and text generation model from Google Gemini. Run it with Comfy Router and Comfy Cloud; templates, files, nodes, and...

Model ID: vertexai/gemini-3.1-flash-image
Provider: gemini
Product: router, cloud, workflows, nodes
Input: text, image, video
Output: image, text
License: closed

Nano Banana 2 is a image generation and text generation model from Google Gemini. It takes text, image and video as input and produces image and text. It has no open weights. It runs on Google Gemini's servers, so you use it through Comfy Router and Partner Nodes in ComfyUI and Comfy Cloud.

## Where you can run it

| Where | Page | Use it when |
| - | - | - |
| Comfy Router (API) | [Nano Banana 2 with Comfy Router](https://docs.comfy.org/development/comfy-router/models/google/nano-banana-2/code.md) | You call `vertexai/gemini-3.1-flash-image` from your own code with `COMFY_API_KEY` |
| Partner Nodes (ComfyUI and Comfy Cloud) | [Nano Banana 2 - Fast AI Image Generation](https://docs.comfy.org/tutorials/partner-nodes/google/nano-banana-2.md) | You build a workflow with the hosted model |
| Partner Nodes (ComfyUI and Comfy Cloud) | [Nano Banana 2 Lite: Fast AI Image Generation](https://docs.comfy.org/tutorials/partner-nodes/google/nano-banana-2-lite.md) | You build a workflow with the hosted model |
| Comfy Cloud | [Open `api_google_nano_banana2_image_edit` on Comfy Cloud](https://cloud.comfy.org/?template=api_google_nano_banana2_image_edit) | You want to run a ready-made workflow without installing anything |

## Call it with Comfy Router

* `POST https://api.comfy.org/v2/models/vertexai/gemini-3.1-flash-image`. Live request schema: `GET /v2/models/vertexai/gemini-3.1-flash-image/openapi.json`.

## Workflow templates

| Template | Title | Added |
| - | - | - |
| `api_google_nano_banana2_image_edit_continuation` | Image Edit | 2026-08-24 |
| `api_nano_banana_2_lite_image_edit` | Nano Banana 2 Lite: Image Edit | 2026-06-30 |
| `api_nano_banana_2_lite_t2i` | Nano Banana 2 Lite: Text to Image | 2026-06-30 |
| `api_google_nano_banana2_text_to_image` | Nano Banana 2: Text to Image | 2026-06-16 |
| `template_3x3_contact_sheet` | 3x3 Contact Sheet | 2026-05-21 |
| `templates_mjm_image_to_3d` | Generate 3D Model From Single Image | 2026-03-19 |
| `template_sirolim_any_aspect_ratio_nb2` | Any Image → Any Aspect Ratio | 2026-03-08 |
| `template_purz_nb2_single_image_sprite_sheet` | Single Image to Animated Sprite Sheet | 2026-03-08 |
| `template_eric_exploded_view` | Exploded View Animation | 2026-03-06 |
| `api_google_nano_banana2_image_edit` | Nano Banana 2: Image Edit | 2026-02-26 |
| `template_product_placement` | Product Placement | 2026-03-30 |
| `templates_graphic_design_recomposer` | Graphic Design Recomposer | 2026-03-30 |
| `templates_all_in_one_image_edit_models.app` | 1 input and multiple editing model comparison | 2026-03-09 |
| `template_sirolim_image_script_video` | Image to Script to Kling Video Generation | 2026-03-09 |

## Nodes

* [GeminiNanoBanana2](https://docs.comfy.org/built-in-nodes/GeminiNanoBanana2.md)
* [GeminiNanoBanana2V2](https://docs.comfy.org/built-in-nodes/GeminiNanoBanana2V2.md)

## Pricing

Comfy Router charges the model maker's list price, billed from your workspace credits (211 credits = \$1 USD). Current per-model prices are on [router.comfy.org](https://router.comfy.org).

* Price a call before you run it: `POST https://api.comfy.org/v2/models/vertexai/gemini-3.1-flash-image/estimate`.
* Billing facts, such as whether a refused request is charged: the `billing` field from `GET https://api.comfy.org/v2/models/vertexai/gemini-3.1-flash-image`.

See [Comfy Router pricing](https://docs.comfy.org/development/comfy-router/pricing.md) and [Billing](https://docs.comfy.org/development/comfy-router/billing.md#model-billing-facts).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.