Nodes/ComfyUI-NanoBanana2/NanoBanana - Text Generation
ComfyUI Node

NanoBanana - Text Generation

A ComfyUI node in NanoBanana2/Text with 14 inputs and 1 output.

By IxMxAMAR·Created 5 months ago·Updated 2 months ago· 4
NanoBanana - Text Generation
  • network
  • text
api_key
modelgemini-2.5-flash
custom_model
prompt
system_instruction
temperature0.70
top_p0.95
top_k0
max_output_tokens0
thinking_levelNONE
thinking_budget0
seed-1
safety_settings_json
CategoryNanoBanana2/Text

Inputs (14)

NameTypeDefaultDescription
api_keySTRINGNanoBanana - API key. Leave blank to use GEMINI_API_KEY env var.
modelCOMBOgemini-2.5-flashNanoBanana - model for text generation.
custom_modelSTRINGOverride with a custom model ID.
promptSTRINGThe user prompt to send to the model.
system_instructionoptSTRINGSystem instruction to guide model behavior.
temperatureoptFLOAT0.700–2Controls randomness. Lower = more deterministic.
top_poptFLOAT0.950–1Nucleus sampling probability cutoff.
top_koptINT00–1000Top-K sampling (0 = disabled).
max_output_tokensoptINT00–65536Max tokens in response (0 = model default).
thinking_leveloptCOMBONONEHow much the model should reason before answering.
thinking_budgetoptINT00–100000Max thinking tokens (0 = model default).
seedoptINT-1-1–2147483647Random seed for reproducibility (-1 = random).
safety_settings_jsonoptSTRINGJSON safety settings from Safety Settings node.
networkoptNB_NETWORKOptional. Wire a NanoBanana - Network Route node here to route this request through that proxy (e.g. US egress).

Outputs (1)

NameTypeDescription
textSTRING