{
"created": 123,
"data": [
{
"url": "<string>",
"b64_json": "<string>",
"revised_prompt": "<string>"
}
],
"metadata": {}
}For the text-to-image models in the final Ali whitelist: qwen-image-2.0-pro and wan2.7-image-pro.
Public fields: model, prompt, n, size, response_format, seed, watermark, prompt_extend, and negative_prompt.
{
"created": 123,
"data": [
{
"url": "<string>",
"b64_json": "<string>",
"revised_prompt": "<string>"
}
],
"metadata": {}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Image generation model name.
qwen-image-2.0-pro, wan2.7-image-pro Image generation prompt describing desired content, style, and composition. Supports Chinese and English, max 800 characters.
Number of images to generate. qwen-image-2.0 series supports 1-6, other models fixed at 1.
1 <= x <= 6Output image resolution in format width*height.
qwen-image-2.0 series: total pixels between 512512 and 20482048.
qwen-image-max/plus series: supports 1664928(16:9), 14721104(4:3), 13281328(1:1), 11041472(3:4), 928*1664(9:16)
"1024*1024"
Response format. url returns download link, b64_json returns Base64 encoded data.
url, b64_json Random seed, range [0, 2147483647]. Same seed produces similar results.
Whether to add watermark to the image.
Whether to enable prompt intelligent rewriting.
Negative prompt describing content to avoid. Supports Chinese and English, max 500 characters.