Nodes/comfyui-byokey/BYOKey Gemini (Google)
ComfyUI Node

BYOKey Gemini (Google)

Generate text responses with Google's Gemini models. Provide a prompt and, optionally, image(s) as multimodal context. Calls the Gemini Developer API directly with your own key.

By MeteorAndy·Created 3 months ago·Updated 2 months ago· 0
BYOKey Gemini (Google)
  • images
  • STRING
api_key
base_urlhttps://generativelanguage.googleapis.com/v1beta
prompt
modelgemini-2.5-flash
seed42
system_prompt
temperature1.00
top_p0.95
max_output_tokens32768
Categoryapi/byokey/text

Inputs (10)

NameTypeDefaultDescription
api_keySTRINGGoogle AI Studio (Gemini) API key.
base_urlSTRINGhttps://generativelanguage.googleapis.com/v1betaAPI base URL. Change only for third-party relays.
promptSTRINGText input to the model. Include detailed instructions, questions, or context for generating a response.
modelCOMBOgemini-2.5-flash6 options: gemini-2.5-pro, gemini-2.5-flash, gemini-2.5-pro-preview-05-06, gemini-2.5-flash-preview-04-17, gemini-2.5-flash-lite, gemini-2.0-flash
seedINT420–18446744073709550000Best-effort deterministic seed. By default a random seed is used.
imagesoptIMAGEOptional image(s) as context. Use the Batch Images node for multiple.
system_promptoptSTRINGFoundational instructions that dictate the model's behavior.
temperatureoptFLOAT1.000–2Controls randomness. Lower is more deterministic, higher more creative.
top_poptFLOAT0.950–1Nucleus sampling threshold.
max_output_tokensoptINT3276816–65536Maximum tokens to generate, including internal thinking.

Outputs (1)

NameTypeDescription
STRINGSTRING