> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-comfy-docs-comfyapi-search.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenAIVideoSora2 - ComfyUI Built-in Node Documentation

> The OpenAIVideoSora2 node generates videos with OpenAI's Sora models.

The OpenAIVideoSora2 node generates videos with OpenAI's Sora models. It takes a text prompt along with an optional single reference image, sends the request to OpenAI, waits for generation to finish, and returns the resulting video. Supported durations and resolutions depend on the selected model.

**DEPRECATION NOTICE:** OpenAI will stop serving the Sora v2 API in September 2026. This node will be removed from ComfyUI at that time.

## Inputs

| Parameter  | Description                                                                                                  | Data Type | Required | Range                                                        |
| ---------- | ------------------------------------------------------------------------------------------------------------ | --------- | -------- | ------------------------------------------------------------ |
| `model`    | The OpenAI Sora model to use for video generation (default: "sora-2")                                        | COMBO     | Yes      | "sora-2"<br />"sora-2-pro"                                   |
| `prompt`   | Guiding text; may be empty if an input image is present (default: empty string)                              | STRING    | Yes      | -                                                            |
| `size`     | The resolution of the generated video (default: "1280x720")                                                  | COMBO     | Yes      | "720x1280"<br />"1280x720"<br />"1024x1792"<br />"1792x1024" |
| `duration` | The duration of the generated video in seconds (default: 8)                                                  | COMBO     | Yes      | 4<br />8<br />12                                             |
| `image`    | Optional input reference image used for video generation; only a single image is supported                   | IMAGE     | No       | -                                                            |
| `seed`     | Seed to determine if node should re-run; actual results are nondeterministic regardless of seed (default: 0) | INT       | No       | 0 to 2147483647                                              |

**Constraints and Limitations:**

* The "sora-2" model only supports the "720x1280" and "1280x720" sizes; selecting "1024x1792" or "1792x1024" with "sora-2" raises an error. The larger sizes are available only with "sora-2-pro".
* When an image is connected, it must contain exactly one image; connecting more than one image raises an error.
* Results are nondeterministic regardless of the seed value.
* The displayed price estimate depends on the selected `model`, `size`, and `duration`.

## Outputs

| Output Name | Description                          | Data Type |
| ----------- | ------------------------------------ | --------- |
| `output`    | The generated video from OpenAI Sora | VIDEO     |

> This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! [Edit on GitHub](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/OpenAIVideoSora2/en.md)

***

**Source fingerprint (SHA-256):** `d19eb6b65d7f712278828e4b1f7105068cc5e7cb72813b7549ab24520e7719fc`
