-
Notifications
You must be signed in to change notification settings - Fork 139
Add ResizeMode to GenerateVideosConfig for Veo video generation #679
Description
Is your feature request related to a problem? Please describe.
Yes. The Vertex AI Veo video generation API supports a resizeMode parameter (accepting "pad" or "crop") for image-to-video generation. However, the current GenerateVideosConfig struct in the Go SDK (v1.43.0) does not expose this field. As a result, I cannot control whether the input image is cropped or padded to fit the target aspect ratio; it defaults to "pad" with no way to change it via the SDK.
Describe the solution you'd like
I would like the ResizeMode field added to the GenerateVideosConfig struct to support this API parameter.
type GenerateVideosConfig struct {
// ... existing fields
// Optional. The resize mode for the input image. Supported values are: pad, crop.
ResizeMode string `json:"resizeMode,omitempty"`
}Describe alternatives you've considered
The only current alternative is to bypass the SDK entirely and make direct HTTP requests to the Vertex AI REST API, which adds significant boilerplate and maintenance overhead compared to using the client library.
Additional context
- SDK Version:
google.golang.org/genaiv1.43.0 - API Documentation: Vertex AI Veo Video Generation Parameters