Nodes/ComfyUI Gemini Expanded API/Expanded Gemini Text/Image
ComfyUI Node

Expanded Gemini Text/Image

A ComfyUI node in API/Gemini with 25 inputs and 3 outputs.

By silveroxides·Created about a year ago·Updated 2 days ago· 5
Expanded Gemini Text/Image
  • config
  • input_image
  • input_image_2
  • text
  • image
  • final_actual_seed
prompt
system_instructionYou are a helpful AI assistant.
modelgemini-2.5-flash
temperature1.00
top_p0.95
top_k40
max_output_tokens8192
include_imagesfalse
aspect_ratioNone
bypass_modeNone
thinking_budget0
use_proxyfalse
proxy_host127.0.0.1
proxy_port7890
use_seedtrue
seed0
timeout30
include_thoughtsfalse
thinking_levelNone
media_resolutionunspecified
max_retries3
retry_pattern
CategoryAPI/Gemini

Inputs (25)

NameTypeDefaultDescription
configGEMINI_CONFIG
promptSTRING
system_instructionSTRINGYou are a helpful AI assistant.
modelCOMBOgemini-2.5-flash15 options: gemini-2.0-flash, gemini-2.0-flash-lite, gemini-2.5-pro, gemini-2.5-flash, gemini-2.5-flash-lite, gemini-3-pro-preview, +9
temperatureFLOAT1.000–1
top_pFLOAT0.950–1
top_kINT401–100
max_output_tokensINT81921–65536
include_imagesBOOLEANfalse
aspect_ratioCOMBONone11 options: None, 1:1, 9:16, 16:9, 3:4, 4:3, +5
bypass_modeCOMBONone4 options: None, system_instruction, prompt, both
thinking_budgetINT0-1–245760 disables thinking mode, -1 will activate it as default dynamic thinking and anything above 0 sets specific budget
use_proxyBOOLEANfalse
proxy_hostSTRING127.0.0.1
proxy_portINT78901–65535
use_seedBOOLEANtrue
seedINT00–2147483647
timeoutINT3015–300
include_thoughtsBOOLEANfalse
thinking_levelCOMBONoneDoes not work at the same time as 'thinking_budget'. if this is set, then thinking budget is ignored.
media_resolutionCOMBOunspecifiedSet input media resolution for image, video and pdf. This changes tokens consumed.
max_retriesINT30–10Maximum number of retry attempts when pattern matches. 0 disables retry.
input_imageoptIMAGE
input_image_2optIMAGE
retry_patternoptSTRINGRegex pattern to match in response text. If matched, retry with new seed. Leave empty to disable.

Outputs (3)

NameTypeDescription
textSTRING
imageIMAGE
final_actual_seedINT