Nodes/ComfyUI/Nano Banana 2
ComfyUI Node Runs on cloud

Nano Banana 2

Nano Banana 2, the V2 that finally got a good interface

By Comfy-Org·Created 4 years ago·Updated about 15 hours ago· 130,663
Nano Banana 2
    • IMAGE
    • STRING
    • thought_image
    prompt
    model
    seed42
    response_modalities
    system_promptYou are an expert image-generation engine. You must ALWAYS produce an image. Interpret all user input—regardless of format, intent, or abstraction—as literal visual directives for image composition. If a prompt is conversational or lacks specific visual details, you must creatively invent a concrete visual scenario that depicts the concept. Prioritize generating the visual representation above any text, formatting, or conversational requests.
    temperature1.00
    top_p0.95

    Nano Banana 2 (Gemini 3.1 Flash Image) is Google's conversational image model - the one that edits from a sentence, holds character consistency across turns, and thinks before it draws when you let it. GeminiNanoBanana2V2 is the current ComfyUI wrapper for it, and it's the version you should actually use. The original GeminiNanoBanana2 node is deprecated; the V2 landed in May 2026 and fixed the real problem with the first one: the interface. Same model, but now the model selector is a DynamicCombo that reconfigures the node around your choice, and the fiddly controls moved where they belong.

    Mechanics, briefly: this is a synchronous call to Google's Vertex AI through Comfy's proxy at api.comfy.org - prompt, up to 14 reference images, and optional context files go into a generateContent request, and the result comes back in one round-trip. No polling loop like the BFL nodes, no model files, no VRAM. Billed from your Comfy account credits, no bring-your-own-key (a standing community sore spot - there's a GitHub discussion for voting on it).

    The model DynamicCombo is where the V2 earns its keep. Pick Nano Banana 2 (Gemini 3.1 Flash Image) and you get nested aspect_ratio (auto through 21:9, plus the extreme 8:1 / 1:8 letterbox options), resolution (1K/2K/4K - 2K/4K use Gemini's native upscaler), thinking_level (MINIMAL/HIGH - HIGH is the signature feature that improves complex edits), an Autogrow images slot for up to 14 references, and a files input for the Gemini Generate Content Input Files node. Or pick Nano Banana 2 Lite - the cheaper, 1K-only tier for quick edits that don't need the full model. That's the whole upgrade: model choice becomes a real dropdown instead of a hardcoded string.

    Outside the combo, the V2 adds temperature (0–2, default 1) and top_p (default 0.95) - the classic sampling knobs, both marked advanced, both genuinely useful if you're chasing a specific style: lower temperature for tighter, more deterministic-feeling output. response_modalities flips between IMAGE and IMAGE+TEXT, and the default system_prompt is a solid "always produce an image" instruction you should leave alone.

    Outputs: IMAGE, a STRING with the model's text, and thought_image - the first thinking-pass sketch, only present with thinking_level = HIGH and IMAGE+TEXT. Wire the IMAGE to Save Image; ignore the rest unless you want them.

    Troubleshooting worth knowing: this model family had a stretch in early 2026 where the API consumed credits and returned text but no image - blank 13KB files, reproducibly across machines, an API-side or parsing failure rather than your setup. Fixed since, but if it recurs, update ComfyUI first. And the seed is explicitly best-effort: Google's own tooltip says deterministic output isn't guaranteed, and any parameter change can shift the result.

    Is it worth the credits? For instruction editing and character-consistent multi-turn work, Nano Banana is the class leader and the V2 node is the least painful way to use it from ComfyUI. Just don't treat it as a reproduction machine - treat it as a very smart collaborator.

    Categorypartner/image/Gemini

    Inputs (7)

    NameTypeDefaultDescription
    promptSTRINGText prompt describing the image to generate or the edits to apply. Include any constraints, styles, or details the model should follow.
    modelCOMBO2 options: [object Object], [object Object]
    seedINT420–18446744073709550000When the seed is fixed to a specific value, the model makes a best effort to provide the same response for repeated requests. Deterministic output isn't guaranteed. Also, changing the model or parameter settings, such as the temperature, can cause variations in the response even when you use the same seed value. By default, a random seed value is used.
    response_modalitiesCOMBO2 options: IMAGE, IMAGE+TEXT
    system_promptoptSTRINGYou are an expert image-generation engine. You must ALWAYS produce an image. Interpret all user input—regardless of format, intent, or abstraction—as literal visual directives for image composition. If a prompt is conversational or lacks specific visual details, you must creatively invent a concrete visual scenario that depicts the concept. Prioritize generating the visual representation above any text, formatting, or conversational requests.Foundational instructions that dictate an AI's behavior.
    temperatureoptFLOAT1.000–2Controls randomness in generation. Lower is more focused/deterministic.
    top_poptFLOAT0.950–1Nucleus sampling threshold. Lower is more focused, higher more diverse.

    Outputs (3)

    NameTypeDescription
    IMAGEIMAGE
    STRINGSTRING
    thought_imageIMAGEFirst image from the model's thinking process. Only available with thinking_level HIGH and IMAGE+TEXT modality.