Nodes/ComfyUI-API-Toolkit/Gemini Text Generation
ComfyUI Node

Gemini Text Generation

A ComfyUI node in API Toolkit/Gemini/Text with 13 inputs and 1 output.

By IxMxAMAR·Created 5 months ago·Updated about a month ago· 1
Gemini Text Generation
    • 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
    CategoryAPI Toolkit/Gemini/Text

    Inputs (13)

    NameTypeDefaultDescription
    api_keySTRINGGemini API key. Leave blank to use GEMINI_API_KEY env var.
    modelCOMBOgemini-2.5-flashGemini 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.

    Outputs (1)

    NameTypeDescription
    textSTRING