model=bytedance/seed-audio-1-5-text-to-audio。| 必填字段 | 可选字段 |
|---|---|
prompt | reference_audio_urls 或 reference_image_url、output_format |
video_url、audio_url、target_language),传了会返回参数错误(传空字符串也算传了)。422,不会创建任务。resultJson 里有 resultUrls:一个所选 output_format 格式的音频文件。输出链接保留 14 天,需要长期保存请及时下载。failMsg:| 类别 | failMsg |
|---|---|
| 提示词 | The prompt must include the exact words to be spoken, in quotes (for example: A narrator says: "Welcome back."). Prompts with only music or sound effects are not supported. |
| 提示词 | The prompt contains too little readable text. Please describe the audio in plain words. |
| 内容审核 | Your prompt, input media or the generated audio was flagged by content moderation. Please revise it and try again. |
| 输入文件下载 | Failed to download the input file. Make sure the URL is publicly accessible and try again. |
| 参考音频 | Invalid reference audio. Use MP3 or WAV files of 2-30 seconds each (up to 15 MB each), at most 6 files and 180 seconds in total. |
| 参考图片 | Invalid reference image. Use one JPEG, PNG, WEBP, BMP, TIFF, GIF, HEIC or HEIF image under 10 MB, 300-6000 px per side, aspect ratio 0.4-2.5. |
| 没有清晰人声 | No clear speech was found in the input media. Video Dubbing needs a video with clear Chinese or English speech, and reference audios need a clear voice. Please try another file. |
| 文件过大或过长 | The input file is too large or too long. Please compress or shorten it and try again. |
| 文件无法读取 | The input file could not be read. Use a valid MP3/WAV audio, MP4/MOV video or a supported image format and try again. |
| 服务繁忙 | The service is busy. Please try again later. |
| 其他错误 | Internal Error, Please try again later. |
callBackUrl 参数接收生成完成的自动通知,而非轮询状态接口。curl --location 'https://api.kie.ai/api/v1/jobs/createTask' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "bytedance/seed-audio-1-5-text-to-audio",
"callBackUrl": "https://your-domain.com/api/callback",
"input": {
"prompt": "Film scene, about 20 seconds. Only speak the quoted lines.\n[Speakers]\nWoman: young adult female, soft, hesitant.\nMan: man in his 40s, low, slightly hoarse voice.\n[Timeline]\n00:00-00:20 [Background] A quiet apartment at night, steady rain against the window, low volume.\n00:00-00:02 [Sound Effect] Three light knocks on a wooden door, then the door slowly creaks open.\n00:02-00:05 Woman (surprised, hesitant): \"What are you doing here?\"\n00:06-00:10 Man (low, tired, sincere): \"I was afraid you were still waiting for me.\"\n00:10-00:20 [Music] A soft, slow solo piano enters and stays gentle under everything until the end.\n00:12-00:15 Woman (voice trembling slightly): \"Come in. It'\''s cold out there.\"\n00:15-00:17 [Sound Effect] The door closes with a soft click, footsteps on a wooden floor.\n00:17-00:20 [Ending] Rain and piano continue softly, then fade.",
"output_format": "mp3"
}
}'{
"code": 200,
"msg": "success",
"data": {
"taskId": "5b0d3c9a7e2f41d68a1c4e7b9f2d6a03"
}
}