Skip to main content

Nano Banana (Google Gemini Image)

api node/image/Gemini
GeminiImageNode

Edit images synchronously via Google API.

Example

JSON Example
{
  "class_type": "GeminiImageNode",
  "inputs": {
    "prompt": "",
    "model": "gemini-2.5-flash-image",
    "seed": 42
  }
}

This example shows required inputs only. Connection values like ["node_id", 0] should reference actual node IDs from your workflow.

Inputs

NameTypeStatusConstraintsDefault
prompt?STRINGrequired-""
model?COMBOrequired-"gemini-2.5-flash-image"
seed?INTrequiredmin: 0, max: 1.84e+1942
images?IMAGEoptional--
files?GEMINI_INPUT_FILESoptional--
aspect_ratio?COMBOoptional-"auto"
response_modalities?COMBOoptional--
system_prompt?STRINGoptional-"You 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."

Outputs

IndexNameTypeIs ListConnection Reference
0IMAGEIMAGENo["{node_id}", 0]
1STRINGSTRINGNo["{node_id}", 1]
How to connect to these outputs

To connect another node's input to an output from this node, use the connection reference format:

["node_id", output_index]

Where node_id is the ID of this GeminiImageNode node in your workflow, and output_index is the index from the table above.

Example

If this node has ID "5" in your workflow:

  • IMAGE (IMAGE): ["5", 0]
  • STRING (STRING): ["5", 1]
Was this page helpful?