View Source ExOpenAI.Components.CreateVideoJsonBody (ex_openai.ex v2.0.0-beta)
JSON parameters for creating a new video generation job.
Fields
:input_reference- optional -any()
Optional reference object that guides generation. Provide exactly one ofimage_urlorfile_id.:model- optional -any()
The video generation model to use (allowed values: sora-2, sora-2-pro). Defaults tosora-2.:prompt- required -String.t()
Text prompt that describes the video to generate.
Constraints: minLength: 1, maxLength: 32000:seconds- optional -any()
Clip duration in seconds (allowed values: 4, 8, 12). Defaults to 4 seconds.:size- optional -any()
Output resolution formatted as width x height (allowed values: 720x1280, 1280x720, 1024x1792, 1792x1024). Defaults to 720x1280.
Summary
Types
@type t() :: %ExOpenAI.Components.CreateVideoJsonBody{ input_reference: :"Elixir.ExOpenAI.Components.ImageRefParam-2".t() | nil, model: ExOpenAI.Components.VideoModel.t() | nil, prompt: String.t(), seconds: ExOpenAI.Components.VideoSeconds.t() | nil, size: ExOpenAI.Components.VideoSize.t() | nil }