> ## Documentation Index
> Fetch the complete documentation index at: https://docs.markifact.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Generate Video

> Generate high-quality videos using OpenAI's Sora 2 models from text prompts and optional reference images

Generate high-quality videos using OpenAI's Sora 2 models from text prompts and optional reference images.

|                     |                     |
| ------------------- | ------------------- |
| **App**             | AI                  |
| **Operation ID**    | `ai_generate_video` |
| **Type**            | Action              |
| **Connection**      | None                |
| **Credits per run** | 100                 |

## Inputs

| Field             | Type                       | Required | Default | Description                                                                                                                                                                                                                                                                                                                                                                               |
| ----------------- | -------------------------- | -------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `prompt`          | string                     | Yes      | -       | Description of the video you want to generate. Be specific about: - Subject and action (what should happen in the video) - Camera movement and shot type (wide shot, close-up, pan, etc.) - Setting and environment - Lighting and mood - Any specific visual style  Example: "Wide shot of a child flying a red kite in a grassy park, golden hour sunlight, camera slowly pans upward." |
| `model`           | string or SelectableOption | Yes      | -       | The AI model to use for video generation. Available options: 'sora-2' - Fast generation, good for experimentation and quick iterations 'sora-2-pro' - Higher quality results, best for production content (takes longer)                                                                                                                                                                  |
| `reference_image` | array of string            | No       | -       | Optional reference image to use as the first frame of the video. Upload a single image that matches your desired video style. The image will guide the generation and serve as the starting frame.                                                                                                                                                                                        |

### SelectableOption

| Field   | Type   | Required | Default | Description |
| ------- | ------ | -------- | ------- | ----------- |
| `value` | string | Yes      | -       |             |
| `label` | string | Yes      | -       |             |

## Output

**Type**: `List[str]`

Returns list of generated video URLs.
