VideoGenerationRequest - Go SDK
VideoGenerationRequest - Go SDK
VideoGenerationRequest type definition
The Go SDK and docs are currently in beta. Report issues on GitHub.
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
AspectRatio | *components.AspectRatio | ➖ | Aspect ratio of the generated video | 16:9 |
Duration | *int64 | ➖ | Duration of the generated video in seconds | 8 |
GenerateAudio | *bool | ➖ | Whether to generate audio alongside the video. Defaults to true for models that support audio output, false otherwise. | true |
InputReferences | []components.ContentPartImage | ➖ | Reference images to guide video generation | |
Model | string | ✔️ | N/A | |
Prompt | string | ✔️ | N/A | |
Provider | *components.Provider | ➖ | Provider-specific passthrough configuration | |
Resolution | *components.Resolution | ➖ | Resolution of the generated video | 720p |
Seed | *int64 | ➖ | If 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 | *string | ➖ | Exact pixel dimensions of the generated video in “WIDTHxHEIGHT” format (e.g. “1280x720”). Interchangeable with resolution + aspect_ratio. | 1280x720 |