{"record":{"id":"fa7f16244ee7e3c0","repo":"Comfy-Org/ComfyUI","slug":"1080p-resolution-is-only-available-for-grok-imagin","errorCode":null,"errorMessage":"1080p resolution is only available for grok-imagine-video-1.5, not '{model}'.","messagePattern":"1080p resolution is only available for grok-imagine-video-1\\.5, not '(.+?)'\\.","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"comfy_api_nodes/nodes_grok.py","lineNumber":723,"sourceCode":"                  {\"type\":\"usd\",\"usd\": $is15 ? $total * 1.43 : $total}\n                )\n                \"\"\",\n            ),\n        )\n\n    @classmethod\n    async def execute(\n        cls,\n        model: str,\n        prompt: str,\n        resolution: str,\n        aspect_ratio: str,\n        duration: int,\n        seed: int,\n        image: Input.Image | None = None,\n    ) -> IO.NodeOutput:\n        if resolution == \"1080p\" and model != \"grok-imagine-video-1.5\":\n            raise ValueError(f\"1080p resolution is only available for grok-imagine-video-1.5, not '{model}'.\")\n        image_url = None\n        if image is not None:\n            if get_number_of_images(image) != 1:\n                raise ValueError(\"Only one input image is supported.\")\n            image_url = InputUrlObject(url=f\"data:image/png;base64,{tensor_to_base64_string(image)}\")\n        if image is None or model != \"grok-imagine-video-1.5\":\n            validate_string(prompt, strip_whitespace=True, min_length=1)\n        initial_response = await sync_op(\n            cls,\n            ApiEndpoint(path=\"/proxy/xai/v1/videos/generations\", method=\"POST\"),\n            data=VideoGenerationRequest(\n                model=_GROK_VIDEO_MODEL_API_IDS.get(model, model),\n                image=image_url,\n                prompt=prompt,\n                resolution=resolution,\n                duration=duration,\n                aspect_ratio=None if aspect_ratio == \"auto\" else aspect_ratio,\n                seed=seed,","sourceCodeStart":705,"sourceCodeEnd":741,"githubUrl":"https://github.com/Comfy-Org/ComfyUI/blob/1c6d8d45b3693bfbb32385b410d813a7fd6be216/comfy_api_nodes/nodes_grok.py#L705-L741","documentation":"Grok video generation validation: 1080p resolution is exclusive to the grok-imagine-video-1.5 model. Selecting 1080p with any other model in the dropdown raises this client-side error before the /proxy/xai/v1/videos/generations call. The message echoes the offending model id for easy diagnosis.","triggerScenarios":"execute(model='grok-imagine-video' or any non-1.5 id, resolution='1080p'). The check is a simple string comparison on both values, so any alias that is not exactly 'grok-imagine-video-1.5' fails.","commonSituations":"Workflows saved with resolution='1080p' then run against an older model id; users switching models to save cost while keeping the 1080p setting; model list changes after a plugin update renaming model ids.","solutions":["Switch resolution to 720p (or a supported value) when using a non-1.5 model.","Switch the model to 'grok-imagine-video-1.5' to keep 1080p.","After plugin updates, re-pick both values from the dropdown so stored ids match the current list."],"exampleFix":"# before\nawait grok_video_generate(model='grok-imagine-video', resolution='1080p', ...)  # raises\n\n# after\nawait grok_video_generate(model='grok-imagine-video-1.5', resolution='1080p', ...)","handlingStrategy":"validation","validationCode":"if resolution == \"1080p\":\n    assert model == \"grok-imagine-video-1.5\", f\"1080p requires grok-imagine-video-1.5, got {model}\"","typeGuard":null,"tryCatchPattern":null,"preventionTips":["When switching video models, re-pick the resolution from the allowed list.","After plugin updates, refresh saved model ids in workflows.","Treat 1080p as a model-specific feature, not a universal option."],"tags":["grok","xai","video-generation","resolution","input-validation","comfy-api-nodes"],"backgroundTag":null,"analyzedSha":"1c6d8d45b3693bfbb32385b410d813a7fd6be216","analyzedAt":"2026-08-14T19:37:18.893Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}