Wan Text to Image
Calls Ali wan2.7-image-pro to perform text-to-image generation.
The public calling convention keeps top-level model, input, response_format, and exposes size, n, watermark, thinking_mode, enable_sequential, color_palette, seed as top-level fields. The prompt is placed in input.messages[0].content[0].text. The request body does not accept a top-level parameters field.
Authorizations
Pass Authorization: Bearer <token> in the request header.
Body
Text-to-image model name.
wan2.7-image-pro Unified response format.
url, b64_json Output image resolution specification, e.g. 1K, 2K, 4K, or explicit width-by-height pixel values. The gateway maps this to upstream parameters.size.
Number of output images. Range is 1-4 when sequential mode is off, 1-12 when sequential mode is on. The gateway maps this to upstream parameters.n.
1 <= x <= 12Whether to add a watermark. Explicitly passing false is preserved and mapped to upstream parameters.watermark.
Whether to enable thinking mode. The gateway maps this to upstream parameters.thinking_mode.
Whether to enable sequential image generation mode. The gateway maps this to upstream parameters.enable_sequential.
Custom color theme. The gateway maps this to upstream parameters.color_palette.
Random seed. Explicitly passing 0 is preserved and mapped to upstream parameters.seed.
x >= 0