POST https://api.tokenhot.ai/v1/images/generationswan2.6-imagecurl --location 'https://api.tokenhot.ai/v1/images/generations' \
--header 'Content-Type: application/json' \
--data '{
"model": "wan2.6-image",
"input": {
"messages": [
{
"role": "user",
"content": [
{
"text": "Refer to the composition of this picture to generate a painting in autumn style"
},
{
"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": "This is a description or image link"
}
]
}
],
"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_123456"
}