Comfy-Org/ComfyUI · error · ValueError

Up to {spec.max_videos} videos are supported for {slug}.

Error message

Up to {spec.max_videos} videos are supported for {slug}.

What it means

Error "Up to {spec.max_videos} videos are supported for {slug}." thrown in Comfy-Org/ComfyUI.

Source

Thrown at comfy_api_nodes/nodes_openrouter.py:346

        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}.")

        media_blocks: list[OpenRouterContentBlock] = []
        if image_tensors:

View on GitHub (pinned to 1c6d8d45b3)

Solutions

  1. Reduce the number of attached videos to the supported maximum.

When it happens

Trigger: Thrown at comfy_api_nodes/nodes_openrouter.py:346 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/09a5c847aa255a79. Report an issue: GitHub.