Comfy-Org/ComfyUI · error · ValueError
Up to {spec.max_images} images are supported for {slug}.
Error message
Up to {spec.max_images} images are supported for {slug}. What it means
Error "Up to {spec.max_images} images are supported for {slug}." thrown in Comfy-Org/ComfyUI.
Source
Thrown at comfy_api_nodes/nodes_openrouter.py:343
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")
image_tensors: list[Input.Image] = [t for t in (model.get("images") or {}).values() if t is not None]
if image_tensors and sum(get_number_of_images(t) for t in image_tensors) > spec.max_images:
raise ValueError(f"Up to {spec.max_images} images are supported for {slug}.")
video_inputs: list[Input.Video] = [v for v in (model.get("videos") or {}).values() if v is not None]
if video_inputs and len(video_inputs) > spec.max_videos:
raise ValueError(f"Up to {spec.max_videos} videos are supported for {slug}.")View on GitHub (pinned to 1c6d8d45b3)
Solutions
- Reduce the number of attached images to the supported maximum.
When it happens
Trigger: Thrown at comfy_api_nodes/nodes_openrouter.py:343 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/7da01466f5cc6640.
Report an issue: GitHub.