Skip to content

[pull] master from comfyanonymous:master #87

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 29, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 3 additions & 16 deletions comfy_api_nodes/nodes_veo2.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ class VeoVideoGenerationNode(ComfyNodeABC):
"""
Generates videos from text prompts using Google's Veo API.

Supported models:
- veo-2.0-generate-001
- veo-3.0-generate-preview

This node can create videos from text descriptions and optional image inputs,
with control over parameters like aspect ratio, duration, and more.
"""
Expand Down Expand Up @@ -134,14 +130,6 @@ def INPUT_TYPES(s):
"default": None,
"tooltip": "Optional reference image to guide video generation",
}),
"model": (
IO.COMBO,
{
"options": ["veo-2.0-generate-001", "veo-3.0-generate-preview"],
"default": "veo-2.0-generate-001",
"tooltip": "Model to use for video generation. Defaults to veo 2.0",
},
),
},
"hidden": {
"auth_token": "AUTH_TOKEN_COMFY_ORG",
Expand All @@ -166,7 +154,6 @@ def generate_video(
person_generation="ALLOW",
seed=0,
image=None,
model="veo-2.0-generate-001",
unique_id: Optional[str] = None,
**kwargs,
):
Expand Down Expand Up @@ -205,7 +192,7 @@ def generate_video(
# Initial request to start video generation
initial_operation = SynchronousOperation(
endpoint=ApiEndpoint(
path=f"/proxy/veo/{model}/generate",
path="/proxy/veo/generate",
method=HttpMethod.POST,
request_model=Veo2GenVidRequest,
response_model=Veo2GenVidResponse
Expand Down Expand Up @@ -236,7 +223,7 @@ def progress_extractor(response):
# Define the polling operation
poll_operation = PollingOperation(
poll_endpoint=ApiEndpoint(
path=f"/proxy/veo/{model}/poll",
path="/proxy/veo/poll",
method=HttpMethod.POST,
request_model=Veo2GenVidPollRequest,
response_model=Veo2GenVidPollResponse
Expand Down Expand Up @@ -317,5 +304,5 @@ def progress_extractor(response):
}

NODE_DISPLAY_NAME_MAPPINGS = {
"VeoVideoGenerationNode": "Google Veo Video Generation",
"VeoVideoGenerationNode": "Google Veo2 Video Generation",
}
Loading