Skip to content

Commit 91e1f45

Browse files
fix(veo): reject 4K resolution for veo-3.0 models in Veo3VideoGenerationNode (#13504)
The tooltip on the resolution input states that 4K is not available for veo-3.1-lite or veo-3.0 models, but the execute guard only rejected the lite combination. Selecting 4K with veo-3.0-generate-001 or veo-3.0-fast-generate-001 would fall through and hit the upstream API with an invalid request. Broaden the guard to match the documented behavior and update the error message accordingly. Co-authored-by: Jedrzej Kosinski <kosinkadink1@gmail.com>
1 parent 6045c11 commit 91e1f45

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

comfy_api_nodes/nodes_veo2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,8 +393,8 @@ async def execute(
393393
model="veo-3.0-generate-001",
394394
generate_audio=False,
395395
):
396-
if "lite" in model and resolution == "4k":
397-
raise Exception("4K resolution is not supported by the veo-3.1-lite model.")
396+
if resolution == "4k" and ("lite" in model or "3.0" in model):
397+
raise Exception("4K resolution is not supported by the veo-3.1-lite or veo-3.0 models.")
398398

399399
model = MODELS_MAP[model]
400400

0 commit comments

Comments
 (0)