calesthio/OpenMontage · error · ValueError

image_list items must be objects

Error message

image_list items must be objects

What it means

Error "image_list items must be objects" thrown in calesthio/OpenMontage.

Source

Thrown at tools/video/kling_official_video.py:519

        def add_image(value: str | None, *, kind: str, item_type: str | None = None) -> None:
            if not value:
                return
            record = {"image_url": value}
            if item_type:
                record["type"] = item_type
            image_list.append(record)
            references_used.append(
                {
                    "kind": "image",
                    "source": value,
                    "source_type": kind,
                    "type": item_type,
                }
            )

        for item in inputs.get("image_list") or []:
            if not isinstance(item, dict):
                raise ValueError("image_list items must be objects")
            value = normalize_image_input(item.get("image_url") or item.get("image"), item.get("image_path"))
            if not value:
                raise ValueError("image_list items must include image_url, image, or image_path")
            record = {"image_url": value}
            if item.get("type"):
                record["type"] = item["type"]
            image_list.append(record)
            references_used.append(
                {
                    "kind": "image",
                    "source": item.get("image_url") or item.get("image_path") or item.get("image"),
                    "source_type": "image_list",
                    "type": item.get("type"),
                }
            )

        add_image(
            normalize_image_input(inputs.get("reference_image_url"), inputs.get("reference_image_path")),

View on GitHub (pinned to 95e1c3d0ab)

Solutions

  1. Pass image_list as a list of objects, not plain strings.
  2. Each item should be like {"image_url": "https://..."} or {"image_path": "/path/to/file"}.

When it happens

Trigger: An image_list entry is passed as a scalar instead of an object for a Kling Omni video request.

Common situations: See trigger scenarios.


AI-assisted analysis of calesthio/OpenMontage@95e1c3d0ab (2026-08-15). Data as JSON: /api/errors/59d9b5524d736513. Report an issue: GitHub.