const payload = {
"model": "wan3.0-video",
"input": {
"prompt": "Slow push-in as steam rises from the ramen bowl.",
"media": [
{
"type": "first_frame",
"url": "https://your-cdn.example.com/first-frame.jpg"
}
]
},
"parameters": {
"resolution": "1080P",
"duration": 5
}
};
const resp = await fetch("https://api.dreamto.ai/api/v1/services/aigc/video-generation/video-synthesis", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.DREAMTO_API_KEY}`,
"Content-Type": "application/json",
"X-DashScope-Async": "enable",
},
body: JSON.stringify(payload),
});
console.log(resp.status, await resp.json()); // { request_id: '...', output: { task_id: '...', task_status: 'PENDING' } }