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",
"callback_url": "https://your-domain.com/callback",
"input": {
"prompt": "Create a 20-second audio scene at a busy night market. A cheerful street-food vendor (middle-aged woman, warm voice) calls out in English: 'Fresh dumplings, hot from the steamer! Two for three dollars!' A young man answers, curious: 'Are the pork ones spicy?' She laughs: 'Only if you ask nicely.' Background: sizzling woks, distant chatter and a soft lo-fi guitar loop."
}
}
EOF{
"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
Seed Audio 1.5 API 根据台词生成带音乐和音效的语音,可用参考音频或参考图片引导,支持语速、音量和音高调节。
POST
/
api
/
generate
/
submit
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",
"callback_url": "https://your-domain.com/callback",
"input": {
"prompt": "Create a 20-second audio scene at a busy night market. A cheerful street-food vendor (middle-aged woman, warm voice) calls out in English: 'Fresh dumplings, hot from the steamer! Two for three dollars!' A young man answers, curious: 'Are the pork ones spicy?' She laughs: 'Only if you ask nicely.' Background: sizzling woks, distant chatter and a soft lo-fi guitar loop."
}
}
EOF{
"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 把台词生成为完整的音频场景:对白、音乐和音效合在一条音轨里。可以用最多 6 段参考音频设定音色,也可以用一张参考图片设定场景。结果以任务 files 返回,与图像、视频、3D 和音频任务的标准响应结构一致。
模型
- seed-audio-1.5 — 根据台词生成带音乐和音效的语音
功能
- 语音、音乐和音效由一条提示词生成在同一条音轨里
- 多人对白:从最多 6 段参考音频里为每个说话人指定音色
- 以图生音:用参考图片设定场景和氛围
- 时长规划:写一个与台词相称的时长,模型按它规划片段
- 语速、音量和音高调节
- MP3、WAV、PCM 或 Ogg Opus 输出,采样率 8-48 kHz
输入模式
- 仅台词:在
prompt里写台词,并描述声音、音乐和音效。 - 参考音频:加上
reference_audio_urls设定音色或表演方式。 - 参考图片:加上
image_urls,由图片设定场景和氛围。
必填参数
prompt(string):要说的台词,以及说话人、语言、情绪、语速、音乐、音效和片段时长。所有要说出来的台词都写进提示词。写一个与台词相称的时长,例如Create a 10-second clip。积分按模型为片段规划的时长计算;提示词写了时长就按这个时长计,写一个接近台词所需的时长,费用就清楚可预期。传多段参考音频时,按传入顺序说明每个说话人用哪一段。
可选参数
image_urls(array of strings):1 个参考图片 URL,用来设定场景、氛围或说话人。每边 300-6000 像素,宽高比 0.4-2.5,不超过 10MB,需可通过 HTTP 或 HTTPS 公开访问。同一次请求里image_urls和reference_audio_urls二选一。reference_audio_urls(array of strings):最多 6 个参考音频 URL,用来设定音色或表演方式。每段为 WAV 或 MP3,2-30 秒,不超过 15MB,需可通过 HTTP 或 HTTPS 公开访问。所有片段合计最长 180 秒。同一次请求里reference_audio_urls和image_urls二选一。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",
"callback_url": "https://your-domain.com/callback",
"input": {
"prompt": "Create a 20-second audio scene at a busy night market. A cheerful street-food vendor (middle-aged woman, warm voice) calls out in English: 'Fresh dumplings, hot from the steamer! Two for three dollars!' A young man answers, curious: 'Are the pork ones spicy?' She laughs: 'Only if you ask nicely.' Background: sizzling woks, distant chatter and a soft lo-fi guitar loop."
}
}
用参考音频设定音色
{
"model": "seed-audio-1.5",
"callback_url": "https://your-domain.com/callback",
"input": {
"prompt": "Create a 15-second clip. Using the voice from reference audio 1, a calm museum guide says in English: 'Please gather around. This bronze bell was cast over eight hundred years ago, and it still rings in tune.' Light echo of a large stone hall and faint footsteps.",
"reference_audio_urls": [
"https://storage.poyo.ai/models/seed-audio-1-5/examples/input-voice-reference-4233cde89a9c.mp3"
]
}
}
用参考图片设定场景
{
"model": "seed-audio-1.5",
"callback_url": "https://your-domain.com/callback",
"input": {
"prompt": "Create a 15-second audio scene that matches the reference image. A cheerful fox tour guide says in English: 'Stay close, everyone, the dunes get windy after noon!' A tiny tortoise answers in a slow, sleepy voice: 'We are going as fast as we can.' Desert wind, soft footsteps in sand and a light playful ukulele tune.",
"image_urls": [
"https://storage.poyo.ai/covers/poyo-cover-0187cb301918.webp"
]
}
}
WAV 24 kHz 与声音调节
{
"model": "seed-audio-1.5",
"callback_url": "https://your-domain.com/callback",
"input": {
"prompt": "Create a 5-second clip. A news anchor says in English: 'Good evening, here are tonight's top stories.' No music.",
"speed": 1.2,
"pitch": 2,
"volume": 1.1,
"output_format": "wav",
"sample_rate": 24000,
"enable_safety_checker": true
}
}
注意事项
prompt里要写台词,每个片段都围绕台词生成。- 写一个与台词相称的时长,例如
Create a 10-second clip。积分按模型为片段规划的时长计算;提示词写了时长就按这个时长计,写一个接近台词所需的时长,费用就清楚可预期。提示词只写台词时,模型按台词长度规划时长。 - PoYo 实测:15 秒以内的片段处理耗时 12-27 秒。
授权
所有 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