POST https://api.tokenhot.cn/v1/images/generationswan2.6-imagecurl --location --request POST 'https://api.tokenhot.cn/v1/images/generations' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "wan2.6-image",
"input": {
"messages": [
{
"role": "user",
"content": [
{
"text": "参考这张图的构图,生成一张秋天风格的画作"
},
{
"image": "https://cdn.example.com/original_umbrella.png"
}
]
}
]
},
"parameters": {
"enable_interleave": true,
"max_images": 1,
"size": "1024*1024",
"stream": true
}
}'{
"output": [
{
"type": "message",
"content": [
{
"type": "text",
"text": "为您生成了一张充满春天气息的风景画:樱花盛开在溪水两旁,阳光明媚。"
},
{
"type": "image",
"text": "https://api.wanx.example.com/outputs/cherry_blossom_river_01.png"
}
]
}
],
"usage": {
"total_tokens": 1500,
"input_tokens": 500,
"input_tokens_details": {
"cached_tokens": 0
},
"output_tokens": 1000,
"output_tokens_details": {
"reasoning_tokens": 0
}
},
"request_id": "req_uuid_9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d"
}