Skip to content

inference.veo.txt2vid.v2

View markdown

The inference.veo.txt2vid.v2 job generates a video from a text prompt using Veo.

{
"type": "inference.veo.txt2vid.v2",
"config": {
"prompt": "a red fox trotting through a snowy forest at golden hour"
}
}

Additional configuration:

  • negative_prompt (string)
  • generate_audio (boolean; default False)
  • resolution (string; one of 720p, 1080p; default 720p)
  • aspect_ratio (string; one of 16:9, 9:16; default 16:9)
  • duration_seconds (integer; one of 4, 6, 8; default 8)
  • person_generation (string; one of allow_adult, dont_allow; default allow_adult)
  • seed (integer)

This job type is also available under its partner alias inference.partner.veo.txt2vid.v2.

{
"unevaluatedProperties": false,
"type": "object",
"required": [
"type",
"config"
],
"properties": {
"type": {
"type": "string"
},
"config": {
"unevaluatedProperties": false,
"type": "object",
"required": [
"prompt"
],
"properties": {
"prompt": {
"type": "string",
"minLength": 0,
"maxLength": 2500,
"examples": [
"puppies in a cloud, 4k"
],
"description": "A description of the desired output."
},
"negative_prompt": {
"type": "string",
"maxLength": 2500,
"description": "Text to discourage specific content generation."
},
"generate_audio": {
"type": "boolean",
"default": false,
"description": "Add generated audio to the video."
},
"resolution": {
"type": "string",
"default": "720p",
"enum": [
"720p",
"1080p"
],
"description": "Output video resolution."
},
"aspect_ratio": {
"type": "string",
"default": "16:9",
"enum": [
"16:9",
"9:16"
],
"description": "Aspect ratio of output."
},
"duration_seconds": {
"type": "integer",
"default": 8,
"enum": [
4,
6,
8
],
"description": "Duration of the generated video in seconds."
},
"person_generation": {
"type": "string",
"default": "allow_adult",
"enum": [
"allow_adult",
"dont_allow"
],
"description": "Person generation policy."
},
"seed": {
"type": "integer",
"examples": [
42,
531286735183442
],
"description": "Seed for random number generation."
}
}
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}