Call it
curl https://api.peume.com/v1/call/seedance-2-5-video-byteplus \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"content": [],
"resolution": "720p",
"duration": 5,
"ratio": "adaptive",
"output_format": "mp4",
"generate_audio": true
}
}'const res = await fetch("https://api.peume.com/v1/call/seedance-2-5-video-byteplus", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"content": [],
"resolution": "720p",
"duration": 5,
"ratio": "adaptive",
"output_format": "mp4",
"generate_audio": true
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/seedance-2-5-video-byteplus",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"content": [],
"resolution": "720p",
"duration": 5,
"ratio": "adaptive",
"output_format": "mp4",
"generate_audio": True
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: seedance-2-5-video-byteplus.
Parameters
contentRequiredarrayContent items: text (text-to-video), image_url (image-to-video / first+last frame / reference images), video_url and audio_url (multimodal reference). The model infers WHICH task you want from these roles plus your prompt wording - see the endpoint notes.
resolutionstringOutput resolution (also the price selector).
480p · 720p
Example: 720p
durationstringDuration in seconds (4-30), or "auto" to let the model choose the length from your prompt and inputs. "auto" is REQUIRED for video editing (the output matches the source clip and no explicit duration is accepted). Cost note: "auto" holds the price of a 30s video up front - the unused portion is released when the run settles on actual usage.
Example: 5
ratiostring"adaptive" (the default) matches your inputs and is ALWAYS safe. A specific ratio is accepted ONLY for text-to-video and reference-to-video. First-frame/last-frame, video editing, and video extension all inherit the aspect ratio of their source and REQUIRE "adaptive" - anything else is rejected (up front for first-frame/last-frame, and by the model after queueing for editing and extension).
16:9 · 4:3 · 1:1 · 3:4 · 9:16 · 21:9 · adaptive
Example: adaptive
output_formatstring"mp4" (default) plays everywhere - web, mobile, players, social platforms. "mov" uses H.264 + yuv444p + PCM for higher colour fidelity in grading, keying, and compositing (recommended for video editing and extension), but most browsers cannot play it - use VLC, mpv, ffplay, or IINA.
mp4 · mov
Example: mp4
generate_audiobooleanGenerate synchronized audio (voice, sound effects, music). Default true. No price impact.
Example: true
watermarkbooleanAdd an "AI Generated" watermark. Default false.
Example: false
priorityintegerQueue priority 0-9 (higher = front of the queue). Default 0.
