| 模型 | 支持尺寸 |
|---|---|
| wanx-v2 | 1024x1024 / 720x1280 / 1280x720 / auto |
| cogview-4 | 1024x1024 / 768x1344 / 1344x768 |
| cogview-3-plus | 1024x1024 / 768x1344 / 1344x768 |
Authorization: Bearer ********************{
"model": "wanx-v2",
"prompt": "未来科技城市",
"size": "1024x1024",
"quality": "high",
"n": 1
}curl --location 'https://token.nexhina.cn/v1/images/generations' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "wanx-v2",
"prompt": "未来科技城市",
"size": "1024x1024",
"quality": "high",
"n": 1
}'{
"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
}
}
}