Nodes/comfyui-byokey/BYOKey OpenRouter LLM
ComfyUI Node

BYOKey OpenRouter LLM

Generate text responses through OpenRouter. Routes to a curated set of popular models from Anthropic, OpenAI, Google, xAI, DeepSeek, Qwen, Mistral, Z.AI (GLM), Moonshot (Kimi), and Perplexity Sonar. Bring your own OpenRouter API key. Output: STRING.

By MeteorAndy·Created 3 months ago·Updated 2 months ago· 0
BYOKey OpenRouter LLM
  • images
  • output
api_key
base_urlhttps://openrouter.ai/api/v1
modelanthropic/claude-opus-4.7
prompt
seed0
system_prompt
reasoning_effortoff
search_context_sizeoff
Categoryapi/byokey/text

Inputs (9)

NameTypeDefaultDescription
api_keySTRINGOpenRouter API key (sent as Bearer token).
base_urlSTRINGhttps://openrouter.ai/api/v1OpenRouter API base URL. Override only for relays/mirrors.
modelCOMBOanthropic/claude-opus-4.7The OpenRouter model used to generate the response.
promptSTRINGText input to the model.
seedINT00–2147483647Seed for sampling. Set to 0 to omit. Most models treat this as a hint only.
system_promptoptSTRINGFoundational instructions that dictate the model's behavior.
imagesoptIMAGEOptional reference image(s) for vision-capable models. Sent as inline data URIs.
reasoning_effortoptCOMBOoffReasoning effort for reasoning-capable models. 'off' disables reasoning entirely.
search_context_sizeoptCOMBOoffWeb search context size (Perplexity Sonar models). Larger = more grounded but slower/pricier. 'off' omits web search options.

Outputs (1)

NameTypeDescription
outputSTRING