VideoGenerationRequest - Go SDK

VideoGenerationRequest type definition

The Go SDK and docs are currently in beta. Report issues on GitHub.

Fields

FieldTypeRequiredDescriptionExample
AspectRatio*components.AspectRatioAspect ratio of the generated video16:9
Duration*int64Duration of the generated video in seconds8
GenerateAudio*boolWhether to generate audio alongside the video. Defaults to true for models that support audio output, false otherwise.true
InputReferences[]components.ContentPartImageReference images to guide video generation
Modelstring✔️N/A
Promptstring✔️N/A
Provider*components.ProviderProvider-specific passthrough configuration
Resolution*components.ResolutionResolution of the generated video720p
Seed*int64If specified, the generation will sample deterministically, such that repeated requests with the same seed and parameters should return the same result. Determinism is not guaranteed for all providers.
Size*stringExact pixel dimensions of the generated video in “WIDTHxHEIGHT” format (e.g. “1280x720”). Interchangeable with resolution + aspect_ratio.1280x720