role: reference_audio (wav / mp3, 2–15 s, up to 3) and reference it as “audio 1” in the prompt. Can be combined with reference images.
Want to try it? Open Create video task, pick “Reference audio” in the request example dropdown, enter your API Key and click Try it.
Request
$DREAMTO_API_KEY is your API Key.
curl -X POST "https://api.dreamto.ai/api/v3/contents/generations/tasks" \
-H "Authorization: Bearer $DREAMTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "seedance-2.5-flash",
"content": [
{
"type": "text",
"text": "The dancer from [image 1] dances on a neon street, moves synced to the beat of audio 1, fast cuts"
},
{
"type": "image_url",
"image_url": {
"url": "https://example.com/dancer.png"
},
"role": "reference_image"
},
{
"type": "audio_url",
"audio_url": {
"url": "https://example.com/beat.mp3"
},
"role": "reference_audio"
}
],
"ratio": "9:16",
"duration": 8,
"resolution": "720p"
}'
import os
import requests
payload = {
"model": "seedance-2.5-flash",
"content": [
{
"type": "text",
"text": "The dancer from [image 1] dances on a neon street, moves synced to the beat of audio 1, fast cuts"
},
{
"type": "image_url",
"image_url": {
"url": "https://example.com/dancer.png"
},
"role": "reference_image"
},
{
"type": "audio_url",
"audio_url": {
"url": "https://example.com/beat.mp3"
},
"role": "reference_audio"
}
],
"ratio": "9:16",
"duration": 8,
"resolution": "720p"
}
resp = requests.post(
"https://api.dreamto.ai/api/v3/contents/generations/tasks",
headers={"Authorization": f"Bearer {os.environ['DREAMTO_API_KEY']}"},
json=payload,
timeout=60,
)
print(resp.status_code, resp.json()) # {'id': 'task_...', 'request_id': 'req_...'}
const payload = {
"model": "seedance-2.5-flash",
"content": [
{
"type": "text",
"text": "The dancer from [image 1] dances on a neon street, moves synced to the beat of audio 1, fast cuts"
},
{
"type": "image_url",
"image_url": {
"url": "https://example.com/dancer.png"
},
"role": "reference_image"
},
{
"type": "audio_url",
"audio_url": {
"url": "https://example.com/beat.mp3"
},
"role": "reference_audio"
}
],
"ratio": "9:16",
"duration": 8,
"resolution": "720p"
};
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_...' }
Response
On success the API returns HTTP 200.request_id equals the X-Request-Id header; include it when contacting support:
{
"id": "task_8c1d2e3f4a5b6c7d8e9f0a1b",
"request_id": "req_3f9a1c2b7d4e5f60718293a4"
}
id, poll Get task; when status is succeeded, read content.video_url. See Create video task for every parameter and value.
