| 模型 | 支持尺寸 |
|---|
| wanx-v2 | 1024x1024 / 720x1280 / 1280x720 / auto |
| cogview-4 | 1024x1024 / 768x1344 / 1344x768 |
| cogview-3-plus | 1024x1024 / 768x1344 / 1344x768 |
Request
Provide your bearer token in the Authorization
header when making requests to protected resources. Example:Authorization: Bearer ********************
Body Params application/jsonRequired
{
"model": "wanx-v2",
"prompt": "未来科技城市",
"size": "1024x1024",
"quality": "high",
"n": 1
}
Request Code Samples
curl --location '/v1/images/generations' \
--header 'X-Request-Id;' \
--header 'X-Tenant-Id;' \
--header 'X-Channel;' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "wanx-v2",
"prompt": "未来科技城市",
"size": "1024x1024",
"quality": "high",
"n": 1
}'
Responses
{
"created": 1713833628,
"data": [
{
"url": "https://cdn.example.com/img-001.png"
}
],
"usage": {
"total_tokens": 100,
"input_tokens": 50,
"output_tokens": 50,
"input_tokens_details": {
"text_tokens": 10,
"image_tokens": 40
}
}
}
Modified at 2026-06-29 08:45:13