Nodes/ComfyUI-ThinkingLLM/ThinkingLLM API (OpenAI Compatible)
ComfyUI Node

ThinkingLLM API (OpenAI Compatible)

Calls a server-approved OpenAI-compatible /chat/completions profile with optional image input; credentials and endpoint configuration stay server-side.

By goodguy1963·Created 3 months ago·Updated 3 days ago· 19
ThinkingLLM API (OpenAI Compatible)
  • image
  • RESPONSE
  • RAW_TRACE
api_profileOpenRouter
model_nameopenrouter/pareto-code
system_promptYou are a helpful assistant.
prompt
max_tokens8192
temperature0.60
top_p0.95
seed1
enable_thinkingtrue
thinking_budget8192
stream_tokens_to_terminalfalse
timeout_seconds300
custom_model_name
image_url
extra_body_json
CategoryThinkingLLM/API

Inputs (16)

NameTypeDefaultDescription
api_profileCOMBOOpenRouterServer-side profile binding endpoint, authentication, credential reference, capabilities, and safety limits.
model_nameCOMBOopenrouter/pareto-codeCurated model for the selected profile. For anything not listed, leave this as-is and type the ID in custom_model_name below.
system_promptSTRINGYou are a helpful assistant.
promptSTRING
max_tokensINT81921–65536
temperatureFLOAT0.600–2
top_pFLOAT0.950–1
seedINT10–4294967295Sent only when the server profile enables send_seed.
enable_thinkingBOOLEANtrueUsed by profiles with thinking_mode='qwen'.
thinking_budgetINT81920–262144
stream_tokens_to_terminalBOOLEANfalsePrint a control-character-sanitized display copy to the ComfyUI terminal.
timeout_secondsINT3001–3600Idle timeout: aborts only if the provider sends nothing for this many seconds. Long reasoning streams are allowed to continue. Server profile enforces max_timeout_seconds (300 by default; OrcaRouter 900).
custom_model_nameoptSTRINGOptional: exact model ID for anything not in the curated list. When set, it overrides model_name.
imageoptIMAGESingle ComfyUI IMAGE. Encoded as PNG Base64 data URL and sent as OpenAI-style image_url content.
image_urloptSTRINGAlternative to IMAGE: public HTTPS image URL. Do not connect IMAGE at the same time.
extra_body_jsonoptSTRINGEvery top-level field must be explicitly allowlisted by the server profile.

Outputs (2)

NameTypeDescription
RESPONSESTRING
RAW_TRACESTRING