const payload = {
"model": "seedance-2.5-flash",
"content": [
{
"type": "text",
"text": "Photorealistic. Under a clear blue sky, a vast field of white daisies; the camera slowly pushes in and settles on a close-up of a single daisy with a few glistening dewdrops on its petals"
}
],
"ratio": "16:9",
"duration": 5,
"resolution": "720p",
"generate_audio": true
};
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_...' }