> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-christian-byrne-ecw-141-in-app-agent-user-guide.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenAIVideoSora2 - ComfyUI Built-in Node Documentation

> OpenAIVideoSora2 节点使用 OpenAI 的 Sora 模型生成视频。

OpenAIVideoSora2 节点使用 OpenAI 的 Sora 模型生成视频。它根据文本提示和可选的输入图像创建视频内容，然后返回生成的视频输出。该节点支持不同的视频时长和分辨率，具体取决于所选模型。

**弃用通知：** OpenAI 将于 2026 年 9 月停止提供 Sora v2 API。届时，此节点将从 ComfyUI 中移除。

## 输入

| 参数 | 描述 | 数据类型 | 必填 | 范围 |
| - | - | - | - | - |
| `模型` | 用于视频生成的 OpenAI Sora 模型（默认值："sora-2"） | COMBO | 是 | "sora-2"<br />"sora-2-pro" |
| `提示词` | 引导文本；如果存在输入图像，则可为空（默认值：空） | STRING | 是 | - |
| `尺寸` | 生成视频的分辨率（默认值："1280x720"） | COMBO | 是 | "720x1280"<br />"1280x720"<br />"1024x1792"<br />"1792x1024" |
| `时长` | 生成视频的时长，单位为秒（默认值：8） | COMBO | 是 | 4<br />8<br />12 |
| `图像` | 用于视频生成的可选输入图像 | IMAGE | 否 | - |
| `随机种` | 用于确定节点是否应重新运行的种子；无论种子如何，实际结果都是非确定性的（默认值：0） | INT | 否 | 0 到 2147483647 |

**约束与限制：**

* "sora-2" 模型仅支持 "720x1280" 和 "1280x720" 分辨率
* 使用 `image` 参数时，仅支持一张输入图像
* 无论种子值如何，结果都是非确定性的

## 输出

| 输出名称 | 描述 | 数据类型 |
| - | - | - |
| `output` | 生成的视频输出 | VIDEO |

> 本文档由 AI 生成。如果您发现任何错误或有改进建议，欢迎贡献！ [在 GitHub 上编辑](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/OpenAIVideoSora2/zh.md)

***

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


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.