{"record":{"id":"daf91e9a503256bc","repo":"calesthio/OpenMontage","slug":"model-name-model-name-r-is-not-supported-for-api-daf91e","errorCode":null,"errorMessage":"model_name {model_name!r} is not supported for api_family=classic","messagePattern":"model_name (.+?) is not supported for api_family=classic","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"tools/video/kling_official_video.py","lineNumber":437,"sourceCode":"        if video_list:\n            payload[\"video_list\"] = video_list\n\n        elements = normalize_element_list(inputs.get(\"element_list\"))\n        element_id_values = [item[\"element_id\"] for item in elements]\n        if elements:\n            payload[\"element_list\"] = elements\n            references_used.extend(\n                {\"kind\": \"element\", \"element_id\": item[\"element_id\"]}\n                for item in elements\n            )\n        if operation == \"reference_to_video\" and not any(payload.get(k) for k in (\"image_list\", \"video_list\", \"element_list\")):\n            raise ValueError(\"reference_to_video with api_family=omni requires image_list, video_list, element_list, or reference image URLs.\")\n        return payload, references_used, element_id_values\n\n    def _base_classic_payload(self, inputs: dict[str, Any]) -> dict[str, Any]:\n        model_name = str(inputs.get(\"model_name\") or inputs.get(\"model_variant\") or \"kling-v3\")\n        if model_name not in CLASSIC_VIDEO_MODELS:\n            raise ValueError(f\"model_name {model_name!r} is not supported for api_family=classic\")\n        payload: dict[str, Any] = {\n            \"model_name\": model_name,\n            \"duration\": str(inputs.get(\"duration\", \"5\")),\n            \"mode\": inputs.get(\"mode\", \"std\"),\n            \"sound\": inputs.get(\"sound\", \"off\"),\n        }\n        if inputs.get(\"cfg_scale\") is not None:\n            payload[\"cfg_scale\"] = inputs[\"cfg_scale\"]\n        if inputs.get(\"camera_control\"):\n            payload[\"camera_control\"] = inputs[\"camera_control\"]\n        self._copy_common_task_fields(inputs, payload)\n        return payload\n\n    def _options_payload(self, inputs: dict[str, Any]) -> dict[str, Any]:\n        options: dict[str, Any] = {}\n        callback_url = validate_callback_url(inputs.get(\"callback_url\"))\n        if callback_url:\n            options[\"callback_url\"] = callback_url","sourceCodeStart":419,"sourceCodeEnd":455,"githubUrl":"https://github.com/calesthio/OpenMontage/blob/95e1c3d0ab93482159818560f6a8c8e866b9139f/tools/video/kling_official_video.py#L419-L455","documentation":"Error \"model_name {model_name!r} is not supported for api_family=classic\" thrown in calesthio/OpenMontage.","triggerScenarios":"A model_name that is not in the classic family allowlist is passed with api_family=classic.","commonSituations":"See trigger scenarios.","solutions":["Choose a model_name supported by api_family=classic; check get_info() for the valid list.","If the model is omni-only, switch api_family to omni and adapt the parameters."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"95e1c3d0ab93482159818560f6a8c8e866b9139f","analyzedAt":"2026-08-15T06:31:20.014Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}