{"record":{"id":"8a2595c35dfbc714","repo":"Comfy-Org/ComfyUI","slug":"kling-3-0-turbo-create-failed-code-create-code","errorCode":null,"errorMessage":"Kling 3.0 Turbo create failed. Code: {create.code}, Message: {create.message}","messagePattern":"Kling 3\\.0 Turbo create failed\\. Code: (.+?), Message: (.+?)","errorType":"exception","errorClass":"RuntimeError","httpStatus":null,"severity":"error","filePath":"comfy_api_nodes/nodes_kling.py","lineNumber":2255,"sourceCode":"            ApiEndpoint(path=\"/proxy/kling/image-to-video/kling-3.0-turbo\", method=\"POST\"),\n            response_model=Kling3TurboCreateResponse,\n            data=Kling3TurboImage2VideoRequest(\n                contents=contents,\n                settings=Kling3TurboSettings(resolution=resolution, duration=duration),  # i2v: no aspect_ratio\n            ),\n        )\n    else:\n        create = await sync_op(\n            cls,\n            ApiEndpoint(path=\"/proxy/kling/text-to-video/kling-3.0-turbo\", method=\"POST\"),\n            response_model=Kling3TurboCreateResponse,\n            data=Kling3TurboText2VideoRequest(\n                prompt=prompt,\n                settings=Kling3TurboSettings(resolution=resolution, aspect_ratio=aspect_ratio, duration=duration),\n            ),\n        )\n    if not (create.data and create.data.id):\n        raise RuntimeError(f\"Kling 3.0 Turbo create failed. Code: {create.code}, Message: {create.message}\")\n    final_response = await poll_op(\n        cls,\n        ApiEndpoint(path=\"/proxy/kling/tasks\", query_params={\"task_ids\": create.data.id}),\n        response_model=Kling3TurboQueryResponse,\n        status_extractor=lambda r: (r.data[0].status if r.data else None),\n    )\n    return IO.NodeOutput(await download_url_to_video_output(_turbo_video_url(final_response)))\n\n\nclass KlingVideoNode(IO.ComfyNode):\n\n    @classmethod\n    def define_schema(cls) -> IO.Schema:\n        return IO.Schema(\n            node_id=\"KlingVideoNode\",\n            display_name=\"Kling 3.0 Video\",\n            category=\"partner/video/Kling\",\n            description=\"Generate videos with Kling V3. \"","sourceCodeStart":2237,"sourceCodeEnd":2273,"githubUrl":"https://github.com/Comfy-Org/ComfyUI/blob/1c6d8d45b3693bfbb32385b410d813a7fd6be216/comfy_api_nodes/nodes_kling.py#L2237-L2273","documentation":"Raised when the Kling 3.0 Turbo task-creation response has no data.id — the create call (text-to-video or image-to-video) was rejected, so there is no task id to poll. The error message surfaces the business code and message from Kling.","triggerScenarios":"POST /proxy/kling/text-to-video/kling-3.0-turbo (or the image-to-video variant) returns a payload where create.code != 0 or create.data.id is empty; causes include invalid settings (bad resolution/aspect_ratio/duration combination), quota exhaustion, or auth failure.","commonSituations":"Duration/resolution/aspect_ratio combo not supported by kling-3.0-turbo (e.g. 1080p with an aspect ratio the model lacks); no Kling credits; stale credentials; prompt longer than the Turbo limit rendered via build_turbo_shot_prompt.","solutions":["Read create.code/create.message from the error text — Kling's message names the exact invalid parameter.","Check Kling credits and API credential status in the Comfy account.","Use a stock Turbo setting (e.g. 720p, 16:9, 5s) to confirm the node works, then change one setting at a time.","If using custom multi-shot, verify total storyboard duration and per-shot durations are within Turbo limits before the prompt is concatenated."],"exampleFix":null,"handlingStrategy":"validation","validationCode":"ALLOWED_TURBO = {(\"720p\", \"16:9\", 5), (\"720p\", \"16:9\", 10), (\"1080p\", \"16:9\", 5)}  # example set\nassert (resolution, aspect_ratio, duration) in ALLOWED_TURBO, \"unsupported Turbo settings\"","typeGuard":null,"tryCatchPattern":"try:\n    return await execute_kling_turbo(cls, prompt=p, resolution=r, aspect_ratio=a, duration=d, start_frame=f)\nexcept RuntimeError as e:\n    if \"create failed\" in str(e):\n        raise ValueError(f\"Rejected Turbo settings ({r}, {a}, {d}s): {e}\") from e\n    raise","preventionTips":["Verify credits before submitting.","Start from known-good Turbo setting combinations and change one variable at a time.","Check create.message before assuming client bugs."],"tags":["kling","api-nodes","turbo","task-creation","validation"],"backgroundTag":null,"analyzedSha":"1c6d8d45b3693bfbb32385b410d813a7fd6be216","analyzedAt":"2026-08-14T19:37:18.893Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}