curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "lightricks/ltx-2.5-fast/audio-to-video",
"input": {
"prompt": "A street drummer on a sunlit plaza plays in time with the rhythm while pigeons scatter.",
"image_urls": [
"https://example.com/start-frame.png"
],
"audio_url": "https://example.com/audio.mp3",
"aspect_ratio": "9:16"
}
}
'
{
"code": 200,
"data": {
"task_id": "LTX25TASKEXAMPLE",
"status": "not_started",
"created_time": "2026-11-25T08:00:00"
}
}{
"detail": "audio_url duration must be between 2 and 20 seconds"
}{
"detail": "audio_url duration must be between 2 and 20 seconds"
}Lightricks
LTX 2.5 Fast 音频生视频
LTX 2.5 Fast 音频生视频 API 根据 2–20 秒音频生成同步视频,可用提示词、首帧图片或两者引导画面。
POST
/
api
/
generate
/
submit
curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "lightricks/ltx-2.5-fast/audio-to-video",
"input": {
"prompt": "A street drummer on a sunlit plaza plays in time with the rhythm while pigeons scatter.",
"image_urls": [
"https://example.com/start-frame.png"
],
"audio_url": "https://example.com/audio.mp3",
"aspect_ratio": "9:16"
}
}
'
{
"code": 200,
"data": {
"task_id": "LTX25TASKEXAMPLE",
"status": "not_started",
"created_time": "2026-11-25T08:00:00"
}
}{
"detail": "audio_url duration must be between 2 and 20 seconds"
}{
"detail": "audio_url duration must be between 2 and 20 seconds"
}- 提交后会返回
task_id。如果提供了callback_url,当任务状态变为finished或failed时,系统会向callback_url发送 POST 请求。 - 无论是否提供
callback_url,都可以通过统一的查询任务状态接口获取结果。
模型
- lightricks/ltx-2.5-fast/audio-to-video — LTX 2.5 Fast 音频生视频,音频 2–20 秒。
功能
- 通过
audio_url提供 2–20 秒音轨,视频时长与音频一致。 - 可通过
image_urls提供一张首帧图片。 - 提示词最多 5,000 个字符,
image_urls为空时必填。 - 宽高比可选
auto、16:9或9:16。
输入模式
- 音频 + 提示词:由提示词描述完整画面。
- 音频 + 图片:图片作为首帧,提示词可选。
- 音频 + 图片 + 提示词:图片决定画面风格,提示词控制动作。
必填参数
audio_url(string):公开的 HTTP(S) 音频 URL,2–20 秒,最大 100 MB(MP3、WAV、M4A 或 OGG)。
可选参数
prompt(string):画面描述,最多 5,000 个字符。image_urls为空时必填。image_urls(string[]):最多一个公开的 HTTP(S) 图片 URL,作为首帧。aspect_ratio(string):auto、16:9或9:16。默认auto。
输出
任务完成后,查询任务状态接口和回调内容的files 数组中返回一个 MP4 视频。
示例
- 音频加首帧:鼓点循环加街头鼓手首帧,9:16。
- 仅音频与提示词:合唱录音配烛光教堂的提示词。
注意事项
- 音频时长须为 2–20 秒,过短或过长返回 400。
duration、resolution、fps、generate_audio和camera_motion属于文生和图生模式,在此接口返回 400。model和callback_url放在请求根级,与input并列。input接收上文列出的字段,其他字段返回 400。- 积分在提交时预扣,按音频时长(向上取整到整秒)计费。任务失败全额退还。当前费率见定价页。
请求体
application/json