sora_video_generate
Generate videos from text descriptions or animate uploaded images with the Sora 2 API. Supports adjustable duration, size, and model selection.
Instructions
Generate a video using Sora 2 via Comfy.org API.
Can generate from text alone, or animate an existing image. All parameters except prompt are optional. Requires COMFY_API_KEY.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Random seed. Default: -1 (random). | |
| size | No | Video dimensions. Default: "1280x720". Valid: "720x1280", "1280x720", "1024x1792", "1792x1024". | 1280x720 |
| model | No | Sora model. Default: "sora-2". Valid: "sora-2", "sora-2-pro". | sora-2 |
| prompt | Yes | Text description of the desired video. | |
| duration | No | Video duration in seconds. Default: 8. Valid: 4, 8, 12. | |
| input_image | No | Filename in ComfyUI input directory to animate. Default: "" (none, text-only). Upload first with upload_image if needed. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||