Call it
curl https://api.peume.com/v1/call/seedance-2-5-less-restriction-2 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"model": "doubao-seedance-2.5-face",
"content_filter": false,
"prompt": "The person in @image1 talks to the camera in a handheld selfie video.",
"duration": 5,
"size": "9:16",
"resolution": "480p"
}
}'const res = await fetch("https://api.peume.com/v1/call/seedance-2-5-less-restriction-2", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"model": "doubao-seedance-2.5-face",
"content_filter": false,
"prompt": "The person in @image1 talks to the camera in a handheld selfie video.",
"duration": 5,
"size": "9:16",
"resolution": "480p"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/seedance-2-5-less-restriction-2",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"model": "doubao-seedance-2.5-face",
"content_filter": False,
"prompt": "The person in @image1 talks to the camera in a handheld selfie video.",
"duration": 5,
"size": "9:16",
"resolution": "480p"
}
},
)
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-less-restriction-2.
Parameters
modelRequiredstringdoubao-seedance-2.5-face
Example: doubao-seedance-2.5-face
content_filterRequiredbooleanSend false for the relaxed route. This row exists so the relaxed route is discoverable beside less-restriction task.
Example: false
promptRequiredstringUp to 20,000 characters; refer to references as @image1, @audio1.
Example: The person in @image1 talks to the camera in a handheld selfie video.
durationintegerSeconds of output, 4-30, or -1 (auto) which the provider REQUIRES when the prompt edits a @video reference: the output then follows the source clip. -1 reserves 30 seconds at the requested resolution; every task settles at the credits reports.
Example: 5
sizestringWhen image_with_roles uses role first_frame or last_frame, size must be adaptive — not a fixed ratio such as 1:1.
adaptive · 16:9 · 9:16 · 1:1 · 4:3 · 3:4 · 21:9
Example: 9:16
resolutionstring480p · 720p · 1080p
Example: 480p
generate_audiobooleanExample: true
image_urlsarrayUp to 30 public image URLs; a photo of a person is accepted as the subject reference. Mutually exclusive with image_with_roles — send one or the other, never both; combining them yields provider HTTP 400 code 20003. Each URL must answer a plain GET with the raw image bytes and an image/* content-type (signed cloud-storage or CDN links work; file-page hosts such as tmpfiles.org return HTML, and the task then fails unbilled with the vendor's generic upstream error). ` host <file>` prints a URL that satisfies this.
Example: ["https://picsum.photos/seed/example-aigc/720/1280"]
audio_urlsarrayUp to 10 public audio URLs; a voice reference drives the generated speech.
image_with_rolesarrayObjects {url, role} with role first_frame, last_frame or reference_image. Mutually exclusive with image_urls — send one or the other, never both; combining them yields provider HTTP 400 code 20003. When using role first_frame or last_frame, size must be adaptive (not a fixed ratio such as 1:1).
seedintegerOther ways to do it
Same job, other sources, cheapest first.
