const payload = {
"model": "seedance-2.5-flash",
"content": [
{
"type": "text",
"text": "Paint the exterior walls of the house in video 1 blue and change the weather to snow"
},
{
"type": "video_url",
"video_url": {
"url": "https://example.com/house.mp4"
},
"role": "reference_video"
}
],
"ratio": "adaptive",
"duration": -1,
"resolution": "720p",
"omni_reference_task_type": "edit"
};
const resp = await fetch("https://api.dreamto.ai/api/v3/contents/generations/tasks", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.DREAMTO_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify(payload),
});
console.log(resp.status, await resp.json()); // { id: 'task_...', request_id: 'req_...' }