sampleCountinteger
The number of videos to generate. If not specified, 1 video is generated.
storageUristring
The Google Cloud Storage URI for saving the generated videos. The URI must start with gs:// and point to a bucket or folder. If this field is specified, generated videos are uploaded to the specified location.
fpsinteger
The frame rate of the generated videos in frames per second (fps). This value can affect the smoothness of motion in the video. If not specified, a default value appropriate for the model is used.
durationSecondsnumber
The target duration of the generated videos in seconds. The actual duration of the generated videos may vary slightly. If not specified, a default value appropriate for the model is used.
seedinteger
Seed for random number generation. Providing the same seed with the same input parameters will produce consistent video generation results. If not specified, a random seed is used, resulting in different videos each time. If sampleCount is greater than 1, a different random seed is used for each generated video, even if a seed is provided.
aspectRatiostring
The aspect ratio of the generated videos. Supported values: * 16:9 (landscape) * 9:16 (portrait)
resolutionstring
The resolution of the generated videos. Supported values: * 720p * 1080p
personGenerationstring
Controls whether videos of people can be generated, based on age appearance. Supported values: * dont_allow: Prevents generation of videos with people. * allow_adult: Allows generation of videos with people who appear to be adults. * allowAll: Allows generation of videos with people of all ages. If not specified, allow_adult is used.
pubsubTopicstring
The Cloud Pub/Sub topic to publish video generation progress to. If this field is specified, messages are published to the topic detailing the progress of video generation. The topic must be in the format projects/{project}/topics/{topic}.
negativePromptstring
Things that shouldn't appear in the generated videos. For example: "low quality", "ugly", "deformed".
enablePromptRewriting
(deprecated)boolean
Deprecated: This field is deprecated and has no effect. Use enhancePrompt instead.
enhancePromptboolean
Whether to automatically enhance the prompt before generating videos. If true, the prompt is improved to generate higher quality videos. If prompt enhancement is enabled, providing a seed won't guarantee consistent results. Defaults to true.
generateAudioboolean
Whether to generate audio along with the video. If true, an audio track is generated for the videos. Defaults to true.
compressionQualitystring
The compression quality of the generated videos. A lower quality might result in a smaller file size, while a higher quality might result in a better-looking video. Supported values: * optimized: (Default) Optimized for quality and file size. * lossless: Highest quality, larger file size.
| JSON representation |
|---|
{ "sampleCount": integer, "storageUri": string, "fps": integer, "durationSeconds": number, "seed": integer, "aspectRatio": string, "resolution": string, "personGeneration": string, "pubsubTopic": string, "negativePrompt": string, "enablePromptRewriting": boolean, "enhancePrompt": boolean, "generateAudio": boolean, "compressionQuality": string } |