Qwen Text to Image
Calls Ali qwen-image-2.0-pro to perform text-to-image generation.
The public calling convention keeps top-level model, input, response_format, and exposes n, size, negative_prompt, prompt_extend, watermark, 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.
qwen-image-2.0-pro Unified response format.
url, b64_json Number of output images. The gateway maps this to upstream parameters.n.
1 <= x <= 6Output image resolution in widthxheight or width*height format. The gateway converts and maps this to upstream parameters.size.
Negative prompt. The gateway maps this to upstream parameters.negative_prompt.
Whether to enable smart prompt rewriting. The gateway maps this to upstream parameters.prompt_extend.
Whether to add a watermark. Explicitly passing false is preserved and mapped to upstream parameters.watermark.
Random seed. Explicitly passing 0 is preserved and mapped to upstream parameters.seed.
x >= 0