Request
Provide your bearer token in the Authorization
header when making requests to protected resources. Example:Authorization: Bearer ********************
Body Params application/jsonRequired
{
"model": "z-image-turbo",
"prompt": "一副典雅庄重的对联悬挂于厅堂之中,房间是个安静古典的中式布置",
"size": "1280x720",
"n": 1,
"watermark": false,
"prompt_extend": true
}
Request Code Samples
curl --location --request POST 'https://www.16api.com/v1/images/generations' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "z-image-turbo",
"prompt": "一副典雅庄重的对联悬挂于厅堂之中,房间是个安静古典的中式布置",
"size": "1280x720",
"n": 1,
"watermark": false,
"prompt_extend": true
}'
Responses
application/json {
"created": 1767842675,
"data": [
{
"url": "https://dashscope-result-bj.oss-cn-beijing.aliyuncs.com/...",
"b64_json": ""
}
]
}
Modified at 2026-02-01 07:33:56