main
 1# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
 2
 3from __future__ import annotations
 4
 5from typing_extensions import Required, TypedDict
 6
 7from .._types import FileTypes
 8from .video_size import VideoSize
 9from .video_model import VideoModel
10from .video_seconds import VideoSeconds
11
12__all__ = ["VideoCreateParams"]
13
14
15class VideoCreateParams(TypedDict, total=False):
16    prompt: Required[str]
17    """Text prompt that describes the video to generate."""
18
19    input_reference: FileTypes
20    """Optional image reference that guides generation."""
21
22    model: VideoModel
23    """The video generation model to use (allowed values: sora-2, sora-2-pro).
24
25    Defaults to `sora-2`.
26    """
27
28    seconds: VideoSeconds
29    """Clip duration in seconds (allowed values: 4, 8, 12). Defaults to 4 seconds."""
30
31    size: VideoSize
32    """
33    Output resolution formatted as width x height (allowed values: 720x1280,
34    1280x720, 1024x1792, 1792x1024). Defaults to 720x1280.
35    """