Nodes/LLM Text/LLM Text
ComfyUI Node

LLM Text

Process text using OpenAI, Gemini, Anthropic, or OpenRouter.

By workingdad365·Created 22 days ago·Updated 20 days ago· 0
LLM Text
    • text
    ◄system_promptYou are a helpful assistant. Return only the requested text.►
    ◄text►
    ◄provider▾►
    ◄api_key►
    ◄model►
    ◄max_tokens4096►
    ◄timeout120►
    ◄reasoning▾►
    ◄provider_slug►
    ◄routing_suffix▾►
    ◄cache_responsetrue►
    CategoryLLM/Text

    Inputs (11)

    NameTypeDefaultDescription
    system_promptSTRINGYou are a helpful assistant. Return only the requested text.—
    textSTRINGConnect the external STRING to process. Convert to a widget for manual input.
    providerCOMBO4 options: OpenAI, Gemini, Anthropic, OpenRouter
    api_keySTRINGAPI key for the selected provider. Entered keys are stored in the browser and workflow.
    modelSTRINGEnter a model ID or use Fetch Models and select a model.
    max_tokensINT409616–1048576Output budget, including reasoning on some providers.
    timeoutINT12010–1800—
    reasoningCOMBOMinimum selects the lowest supported reasoning setting. Explicit unsupported efforts return an error.
    provider_slugSTRINGOpenRouter only. Exact provider slugs, comma-separated. Restricts routing to these providers.
    routing_suffixCOMBOOpenRouter only. Nitro prioritizes throughput; floor prioritizes price. Default preserves a suffix entered in Model.
    cache_responseBOOLEANtrueReuse the result for unchanged inputs. Turn off to request a new response every run.

    Outputs (1)

    NameTypeDescription
    textSTRING—