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.
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)
| Name | Type | Default | Description |
|---|---|---|---|
| api_key | STRING | OpenRouter API key (sent as Bearer token). | |
| base_url | STRING | https://openrouter.ai/api/v1 | OpenRouter API base URL. Override only for relays/mirrors. |
| model | COMBO | anthropic/claude-opus-4.7 | The OpenRouter model used to generate the response. |
| prompt | STRING | Text input to the model. | |
| seed | INT | 00–2147483647 | Seed for sampling. Set to 0 to omit. Most models treat this as a hint only. |
| system_promptopt | STRING | Foundational instructions that dictate the model's behavior. | |
| imagesopt | IMAGE | Optional reference image(s) for vision-capable models. Sent as inline data URIs. | |
| reasoning_effortopt | COMBO | off | Reasoning effort for reasoning-capable models. 'off' disables reasoning entirely. |
| search_context_sizeopt | COMBO | off | Web search context size (Perplexity Sonar models). Larger = more grounded but slower/pricier. 'off' omits web search options. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| output | STRING | — |