OpenAI::CreateVideoBody
Inherits JSON::Serializable < Reference < Object
Parameters for creating a new video generation job.
Constructors
new(pull : JSON::PullParser)
Sourcenew(model : VideoModel | Nil = nil, prompt : String = "", input_reference : String | Nil = nil, seconds : VideoSeconds | Nil = nil, size : VideoSize | Nil = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
Optional image reference that guides generation.
model
The video generation model to use (allowed values: sora-2, sora-2-pro). Defaults to sora-2.
model=(model : VideoModel | Nil)
The video generation model to use (allowed values: sora-2, sora-2-pro). Defaults to sora-2.
seconds=(seconds : VideoSeconds | Nil)
Clip duration in seconds (allowed values: 4, 8, 12). Defaults to 4 seconds.
size
Output resolution formatted as width x height (allowed values: 720x1280, 1280x720, 1024x1792, 1792x1024). Defaults to 720x1280.
size=(size : VideoSize | Nil)
Output resolution formatted as width x height (allowed values: 720x1280, 1280x720, 1024x1792, 1792x1024). Defaults to 720x1280.
validate!
Source