> For the complete documentation index, see [llms.txt](https://docs.n8n.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-langchain.openai/video-operations.md).

# Video operations

Use this operation to generate a video in OpenAI. Refer to [OpenAI](/integrations/builtin/app-nodes/n8n-nodes-langchain.openai.md) for more information on the OpenAI node itself.

## Generate Video <a href="#generate-video" id="generate-video"></a>

Use this operation to generate a video from a text prompt.

Enter these parameters:

* **Credential to connect with**: Create or select an existing [OpenAI credential](/integrations/builtin/credentials/openai.md).
* **Resource**: Select **Video**.
* **Operation**: Select **Generate Video**.
* **Model**: Select the model you want to use to generate a video. Currently supports `sora-2` and `sora-2-pro`.
* **Prompt**: The prompt to generate a video from.
* **Seconds**: Clip duration in seconds (up to 25).
* **Size**: Output resolution formatted as width x height. 1024x1792 and 1792x1024 are only supported by Sora 2 Pro.

### Options <a href="#options" id="options"></a>

* **Reference**: Optional image reference that guides generation. Has to be passed in as a binary item.
* **Wait Timeout**: Time to wait for the video to be generated in seconds. Defaults to 300.
* **Output Field Name**: The name of the output field to put the binary file data in. Defaults to `data`.

Refer to [Video Generation | OpenAI](https://platform.openai.com/docs/guides/video-generation) for more information.
