提交 Seed Audio 1.5 Video Dubbing 任务
curl --request POST \
--url https://api.poyo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"model": "seed-audio-1.5-video-dubbing",
"callback_url": "https://your-domain.com/callback",
"input": {
"video_url": "https://storage.poyo.ai/models/seed-audio-1-5/examples/input-shell-presenter-1619916465d3.mp4",
"prompt": "Re-perform the presenter's complete English lines in a warm, poised female documentary voice, carefully aligned with her visible speech and pacing: \"This shell began its journey millions of years ago. Every spiral records a little more of its story.\" Gentle curiosity, natural pauses and clear diction. Very quiet museum room tone, no music or additional speech."
}
}
EOFimport requests
url = "https://api.poyo.ai/api/generate/submit"
payload = {
"model": "seed-audio-1.5-video-dubbing",
"callback_url": "https://your-domain.com/callback",
"input": {
"video_url": "https://storage.poyo.ai/models/seed-audio-1-5/examples/input-shell-presenter-1619916465d3.mp4",
"prompt": "Re-perform the presenter's complete English lines in a warm, poised female documentary voice, carefully aligned with her visible speech and pacing: \"This shell began its journey millions of years ago. Every spiral records a little more of its story.\" Gentle curiosity, natural pauses and clear diction. Very quiet museum room tone, no music or additional speech."
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'seed-audio-1.5-video-dubbing',
callback_url: 'https://your-domain.com/callback',
input: {
video_url: 'https://storage.poyo.ai/models/seed-audio-1-5/examples/input-shell-presenter-1619916465d3.mp4',
prompt: 'Re-perform the presenter\'s complete English lines in a warm, poised female documentary voice, carefully aligned with her visible speech and pacing: "This shell began its journey millions of years ago. Every spiral records a little more of its story." Gentle curiosity, natural pauses and clear diction. Very quiet museum room tone, no music or additional speech.'
}
})
};
fetch('https://api.poyo.ai/api/generate/submit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.poyo.ai/api/generate/submit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model' => 'seed-audio-1.5-video-dubbing',
'callback_url' => 'https://your-domain.com/callback',
'input' => [
'video_url' => 'https://storage.poyo.ai/models/seed-audio-1-5/examples/input-shell-presenter-1619916465d3.mp4',
'prompt' => 'Re-perform the presenter\'s complete English lines in a warm, poised female documentary voice, carefully aligned with her visible speech and pacing: "This shell began its journey millions of years ago. Every spiral records a little more of its story." Gentle curiosity, natural pauses and clear diction. Very quiet museum room tone, no music or additional speech.'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.poyo.ai/api/generate/submit"
payload := strings.NewReader("{\n \"model\": \"seed-audio-1.5-video-dubbing\",\n \"callback_url\": \"https://your-domain.com/callback\",\n \"input\": {\n \"video_url\": \"https://storage.poyo.ai/models/seed-audio-1-5/examples/input-shell-presenter-1619916465d3.mp4\",\n \"prompt\": \"Re-perform the presenter's complete English lines in a warm, poised female documentary voice, carefully aligned with her visible speech and pacing: \\\"This shell began its journey millions of years ago. Every spiral records a little more of its story.\\\" Gentle curiosity, natural pauses and clear diction. Very quiet museum room tone, no music or additional speech.\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.poyo.ai/api/generate/submit")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"seed-audio-1.5-video-dubbing\",\n \"callback_url\": \"https://your-domain.com/callback\",\n \"input\": {\n \"video_url\": \"https://storage.poyo.ai/models/seed-audio-1-5/examples/input-shell-presenter-1619916465d3.mp4\",\n \"prompt\": \"Re-perform the presenter's complete English lines in a warm, poised female documentary voice, carefully aligned with her visible speech and pacing: \\\"This shell began its journey millions of years ago. Every spiral records a little more of its story.\\\" Gentle curiosity, natural pauses and clear diction. Very quiet museum room tone, no music or additional speech.\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.poyo.ai/api/generate/submit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"seed-audio-1.5-video-dubbing\",\n \"callback_url\": \"https://your-domain.com/callback\",\n \"input\": {\n \"video_url\": \"https://storage.poyo.ai/models/seed-audio-1-5/examples/input-shell-presenter-1619916465d3.mp4\",\n \"prompt\": \"Re-perform the presenter's complete English lines in a warm, poised female documentary voice, carefully aligned with her visible speech and pacing: \\\"This shell began its journey millions of years ago. Every spiral records a little more of its story.\\\" Gentle curiosity, natural pauses and clear diction. Very quiet museum room tone, no music or additional speech.\"\n }\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"data": {
"task_id": "task-unified-1796000000-example",
"status": "not_started",
"created_time": "2026-12-01T10:30:00+08:00"
}
}{
"code": 400,
"error": {
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}{
"code": 400,
"error": {
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}ByteDance
Seed Audio 1.5 Video Dubbing
Seed Audio 1.5 Video Dubbing API 用新的声音重新演绎视频里的台词,并与画面中说话人的节奏对齐。
POST
/
api
/
generate
/
submit
提交 Seed Audio 1.5 Video Dubbing 任务
curl --request POST \
--url https://api.poyo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"model": "seed-audio-1.5-video-dubbing",
"callback_url": "https://your-domain.com/callback",
"input": {
"video_url": "https://storage.poyo.ai/models/seed-audio-1-5/examples/input-shell-presenter-1619916465d3.mp4",
"prompt": "Re-perform the presenter's complete English lines in a warm, poised female documentary voice, carefully aligned with her visible speech and pacing: \"This shell began its journey millions of years ago. Every spiral records a little more of its story.\" Gentle curiosity, natural pauses and clear diction. Very quiet museum room tone, no music or additional speech."
}
}
EOFimport requests
url = "https://api.poyo.ai/api/generate/submit"
payload = {
"model": "seed-audio-1.5-video-dubbing",
"callback_url": "https://your-domain.com/callback",
"input": {
"video_url": "https://storage.poyo.ai/models/seed-audio-1-5/examples/input-shell-presenter-1619916465d3.mp4",
"prompt": "Re-perform the presenter's complete English lines in a warm, poised female documentary voice, carefully aligned with her visible speech and pacing: \"This shell began its journey millions of years ago. Every spiral records a little more of its story.\" Gentle curiosity, natural pauses and clear diction. Very quiet museum room tone, no music or additional speech."
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'seed-audio-1.5-video-dubbing',
callback_url: 'https://your-domain.com/callback',
input: {
video_url: 'https://storage.poyo.ai/models/seed-audio-1-5/examples/input-shell-presenter-1619916465d3.mp4',
prompt: 'Re-perform the presenter\'s complete English lines in a warm, poised female documentary voice, carefully aligned with her visible speech and pacing: "This shell began its journey millions of years ago. Every spiral records a little more of its story." Gentle curiosity, natural pauses and clear diction. Very quiet museum room tone, no music or additional speech.'
}
})
};
fetch('https://api.poyo.ai/api/generate/submit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.poyo.ai/api/generate/submit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model' => 'seed-audio-1.5-video-dubbing',
'callback_url' => 'https://your-domain.com/callback',
'input' => [
'video_url' => 'https://storage.poyo.ai/models/seed-audio-1-5/examples/input-shell-presenter-1619916465d3.mp4',
'prompt' => 'Re-perform the presenter\'s complete English lines in a warm, poised female documentary voice, carefully aligned with her visible speech and pacing: "This shell began its journey millions of years ago. Every spiral records a little more of its story." Gentle curiosity, natural pauses and clear diction. Very quiet museum room tone, no music or additional speech.'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.poyo.ai/api/generate/submit"
payload := strings.NewReader("{\n \"model\": \"seed-audio-1.5-video-dubbing\",\n \"callback_url\": \"https://your-domain.com/callback\",\n \"input\": {\n \"video_url\": \"https://storage.poyo.ai/models/seed-audio-1-5/examples/input-shell-presenter-1619916465d3.mp4\",\n \"prompt\": \"Re-perform the presenter's complete English lines in a warm, poised female documentary voice, carefully aligned with her visible speech and pacing: \\\"This shell began its journey millions of years ago. Every spiral records a little more of its story.\\\" Gentle curiosity, natural pauses and clear diction. Very quiet museum room tone, no music or additional speech.\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.poyo.ai/api/generate/submit")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"seed-audio-1.5-video-dubbing\",\n \"callback_url\": \"https://your-domain.com/callback\",\n \"input\": {\n \"video_url\": \"https://storage.poyo.ai/models/seed-audio-1-5/examples/input-shell-presenter-1619916465d3.mp4\",\n \"prompt\": \"Re-perform the presenter's complete English lines in a warm, poised female documentary voice, carefully aligned with her visible speech and pacing: \\\"This shell began its journey millions of years ago. Every spiral records a little more of its story.\\\" Gentle curiosity, natural pauses and clear diction. Very quiet museum room tone, no music or additional speech.\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.poyo.ai/api/generate/submit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"seed-audio-1.5-video-dubbing\",\n \"callback_url\": \"https://your-domain.com/callback\",\n \"input\": {\n \"video_url\": \"https://storage.poyo.ai/models/seed-audio-1-5/examples/input-shell-presenter-1619916465d3.mp4\",\n \"prompt\": \"Re-perform the presenter's complete English lines in a warm, poised female documentary voice, carefully aligned with her visible speech and pacing: \\\"This shell began its journey millions of years ago. Every spiral records a little more of its story.\\\" Gentle curiosity, natural pauses and clear diction. Very quiet museum room tone, no music or additional speech.\"\n }\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"data": {
"task_id": "task-unified-1796000000-example",
"status": "not_started",
"created_time": "2026-12-01T10:30:00+08:00"
}
}{
"code": 400,
"error": {
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}{
"code": 400,
"error": {
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}- 提交后会返回
task_id。如果提供了callback_url,当任务状态变为finished或failed时,系统会向callback_url发送 POST 请求。 - 无论是否提供
callback_url,都可以通过统一的查询任务状态接口获取结果。
seed-audio-1.5-video-dubbing 为视频生成新的配音音轨。传入视频和完整台词,描述声音、情绪和节奏,新的演绎会跟随画面里说话人的节奏。结果以任务 files 返回。
模型
- seed-audio-1.5-video-dubbing — 为视频生成节奏对齐的新配音
功能
- 节奏对齐的配音,跟随画面里说话人的语速和停顿
- 用自然语言指导配音:声音、情绪、节奏和环境音
- 参考音色:最多 6 段参考音频,为每个说话人设定音色
- 支持最长 6 分钟的视频
- MP3、WAV、PCM 或 Ogg Opus 输出,采样率 8-48 kHz
必填参数
video_url(string):新配音要对齐的视频。MP4 或 MOV,4-360 秒,12-60 fps,不超过 200MB,需可通过 HTTP 或 HTTPS 公开访问。prompt(string):视频里说的完整台词,以及配音的声音、情绪和节奏。视频里的每一句台词都要写进提示词。传多段参考音频时,按传入顺序说明每个说话人用哪一段。
可选参数
reference_audio_urls(array of strings):最多 6 个参考音频 URL,用来设定音色或表演方式。每段为 WAV 或 MP3,2-30 秒,不超过 15MB,需可通过 HTTP 或 HTTPS 公开访问。所有片段合计最长 180 秒。speed(number):语速倍数,范围 0.5-2,1为正常语速。默认值:1。volume(number):音量倍数,范围 0.5-2,1为正常音量。默认值:1。pitch(integer):音高偏移(半音),范围 -12 到 12。0为原始音高,-12低一个八度,12高一个八度。默认值:0。output_format(string):音频格式:mp3、wav、pcm(16 位原始采样数据)或ogg_opus(Ogg 封装的 Opus)。默认值:mp3。sample_rate(integer):输出采样率(Hz):8000、16000、24000、32000、44100或48000。默认值:44100。ogg_opus使用48000。enable_safety_checker(boolean):内容安全检查。默认值:true。
输出
任务状态为finished 时,files[0] 是新的配音音轨(file_type: audio),格式为请求的 output_format,时长与视频一致。
示例
纪录片配音
{
"model": "seed-audio-1.5-video-dubbing",
"callback_url": "https://your-domain.com/callback",
"input": {
"video_url": "https://storage.poyo.ai/models/seed-audio-1-5/examples/input-shell-presenter-1619916465d3.mp4",
"prompt": "Re-perform the presenter's complete English lines in a warm, poised female documentary voice, carefully aligned with her visible speech and pacing: \"This shell began its journey millions of years ago. Every spiral records a little more of its story.\" Gentle curiosity, natural pauses and clear diction. Very quiet museum room tone, no music or additional speech."
}
}
注意事项
- 把视频里说的每一句台词都写进
prompt,配音会完整演绎这些台词。 - PoYo 实测:12 秒的视频处理耗时约 25 秒。
授权
所有 API 接口都需要 Bearer Token 认证。
创建 API Key:登录 PoYo,进入 仪表盘 → API 密钥(poyo.ai/zh/dashboard/api-key),点击创建 Key。
在请求头中添加:
Authorization: Bearer YOUR_API_KEY
请求体
application/json
响应
任务已受理;请查询任务获取最终文件。
业务状态码。200 表示成功,其他值都表示请求失败。请务必检查这个字段:部分参数校验错误会以 HTTP 200 返回,响应体里的 code 为 400。
200:成功400:请求参数无效401:API Key 缺失或无效402:积分不足403:没有权限404:资源不存在408:请求超时429:请求频率超限500:服务器内部错误502:上游服务错误503:服务暂不可用
详见错误码。
可用选项:
200, 400, 401, 402, 403, 404, 408, 429, 500, 502, 503 示例:
200