Comfy-Org/ComfyUI · error · ValueError
Unknown OpenRouter model: {slug}
Error message
Unknown OpenRouter model: {slug} What it means
Error "Unknown OpenRouter model: {slug}" thrown in Comfy-Org/ComfyUI.
Source
Thrown at comfy_api_nodes/nodes_openrouter.py:336
seed: int,
system_prompt: str = "",
) -> IO.NodeOutput:
validate_string(prompt, strip_whitespace=True, min_length=1)
slug: str = model["model"]
spec = _MODELS_BY_SLUG.get(slug)
if spec is None:
raise ValueError(f"Unknown OpenRouter model: {slug}")
reasoning_effort: str | None = model.get("reasoning_effort")
search_context_size: str | None = model.get("search_context_size")View on GitHub (pinned to 1c6d8d45b3)
Solutions
- Select a known OpenRouter model slug.
When it happens
Trigger: Thrown at comfy_api_nodes/nodes_openrouter.py:336 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of Comfy-Org/ComfyUI@1c6d8d45b3 (2026-08-14).
Data as JSON: /api/errors/bead33ea65720673.
Report an issue: GitHub.