Skip to content

inference.wan2-7.txt2vid.v1

View markdown

The inference.wan2-7.txt2vid.v1 job generates a video from a text prompt using Wan 2.7.

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

Additional configuration:

  • negative_prompt (string)
  • resolution (string; one of 720P, 1080P; default 720P)
  • ratio (string; one of 16:9, 9:16, 1:1, 4:3, 3:4; default 16:9)
  • duration (integer; default 5)
  • seed (integer)
  • prompt_extend (boolean; default True)

This job type is also available under its partner alias inference.partner.wan2-7.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": 1,
"maxLength": 5000,
"description": "Text description of the video content and visual style.",
"examples": [
"A kitten running in the moonlight"
]
},
"negative_prompt": {
"type": "string",
"maxLength": 500,
"description": "Description of content to exclude from the video.",
"examples": [
"low resolution, error, worst quality, deformed"
]
},
"resolution": {
"type": "string",
"default": "720P",
"enum": [
"720P",
"1080P"
],
"description": "Resolution tier of the generated video. 720P outputs at up to 1280×720; 1080P outputs at up to 1920×1080."
},
"ratio": {
"type": "string",
"default": "16:9",
"enum": [
"16:9",
"9:16",
"1:1",
"4:3",
"3:4"
],
"description": "Aspect ratio of the generated video."
},
"duration": {
"type": "integer",
"minimum": 2,
"maximum": 15,
"default": 5,
"description": "Duration of the generated video in seconds (2-15)."
},
"seed": {
"type": "integer",
"minimum": 0,
"maximum": 2147483647,
"description": "A randomness initializer for video reproducibility.",
"examples": [
42,
12345
]
},
"prompt_extend": {
"type": "boolean",
"default": true,
"description": "Enable intelligent prompt rewriting for better results."
}
}
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}