Skip to content

inference.seedance-2.txt2vid.v1

View markdown

The inference.seedance-2.txt2vid.v1 job generates a video from a text prompt using Dreamina Seedance 2.0.

{
"type": "inference.seedance-2.txt2vid.v1",
"config": {
"prompt": "a red fox trotting through a snowy forest at golden hour"
}
}

Additional configuration:

  • resolution (string; one of 480p, 720p, 1080p; default 1080p)
  • aspect_ratio (string; one of 16:9, 4:3, 1:1, 3:4, 9:16, 21:9, adaptive; default adaptive)
  • duration (integer; default 5)
  • watermark (boolean; default False)
  • camera_fixed (boolean; default False)
  • generate_audio (boolean; default True)
  • return_last_frame (boolean; default False)
  • seed (integer)

This job type is also available under its partner alias inference.partner.seedance-2.txt2vid.v1.

{
"type": "object",
"required": [
"type",
"config"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string"
},
"config": {
"type": "object",
"required": [
"prompt"
],
"additionalProperties": false,
"properties": {
"prompt": {
"type": "string",
"minLength": 3,
"maxLength": 4096,
"default": "a flying dragon over mountains",
"description": "Description of desired output."
},
"resolution": {
"type": "string",
"enum": [
"480p",
"720p",
"1080p"
],
"default": "1080p",
"description": "This controls the general quality level of the output. Exact width and height will vary depending on the selected aspect ratio. For a video with approximately 480, 720, or 1080 pixel height use a 16:9 aspect ratio."
},
"aspect_ratio": {
"type": "string",
"enum": [
"16:9",
"4:3",
"1:1",
"3:4",
"9:16",
"21:9",
"adaptive"
],
"default": "adaptive",
"description": "Controls the approximate aspect ratio of the resulting video. Use \"adaptive\" to let the model pick automatically based on the prompt."
},
"duration": {
"type": "integer",
"minimum": -1,
"maximum": 15,
"default": 5,
"description": "Duration of the video in seconds. Valid values are integers in [4, 15], or -1 to let the model pick a suitable length."
},
"watermark": {
"type": "boolean",
"default": false,
"description": "When set to true a watermark is added indicating the output is AI generated."
},
"camera_fixed": {
"type": "boolean",
"default": false,
"description": "When set to true the model is encouraged to keep the camera from moving. This is not guaranteed to work."
},
"generate_audio": {
"type": "boolean",
"default": true,
"description": "When true the output video includes synchronized audio. When false a silent video is produced."
},
"return_last_frame": {
"type": "boolean",
"default": false,
"description": "When true the last frame of the generated video is also returned as a PNG (last_frame.png) alongside the video."
},
"seed": {
"type": "integer",
"description": "A randomness initializer for image reproducability."
}
}
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}