Skip to content

inference.wan2-7.txt2img.v1

View markdown

The inference.wan2-7.txt2img.v1 job generates an image from a text prompt using Wan 2.7.

{
"type": "inference.wan2-7.txt2img.v1",
"config": {
"prompt": "a serene mountain landscape at golden hour"
}
}

Additional configuration:

  • size (string; one of 1K, 2K; default 2K)
  • thinking_mode (boolean; default True)
  • seed (integer)

This job type is also available under its partner alias inference.partner.wan2-7.txt2img.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 image to generate. Supports Chinese and English.",
"examples": [
"A serene mountain landscape at sunset with vibrant colors"
]
},
"size": {
"type": "string",
"default": "2K",
"enum": [
"1K",
"2K"
],
"description": "Output image resolution. 1K≈1024×1024 total pixels, 2K≈2048×2048. Aspect ratio is square for text-only input."
},
"thinking_mode": {
"type": "boolean",
"default": true,
"description": "Enable thinking mode for improved image quality at the cost of longer generation time."
},
"seed": {
"type": "integer",
"minimum": 0,
"maximum": 2147483647,
"description": "A randomness initializer for image reproducibility.",
"examples": [
42,
12345
]
}
}
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}