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-pro/image-to-video",
"input": {
"prompt": "The elderly woman pulls both wooden oars back in a slow, practiced rhythm and the sampan glides forward along the canal. Light monsoon rain keeps falling, dimpling the brown water into spreading rings; drops bead on the dragon fruit and the pink lotus petals tremble as the boat moves. She glances toward the bank and gives a small, warm smile. The camera stays steady at eye level from the riverbank. Preserve her face, the conical hat, the boat and the cargo exactly. Audio: soft rain on water and leaves, wooden oars creaking and splashing, a distant rooster.",
"image_urls": [
"https://cdn.vidgo.ai/apis/models/lightricks/ltx-2.5-pro/image-to-video/v1/01/input-01.png"
],
"duration": 6,
"resolution": "720p",
"fps": 25,
"generate_audio": true
}
}
'{
"code": 200,
"data": {
"task_id": "2I5XOOHU8AR65IHQ",
"status": "not_started",
"created_time": "2026-11-25T17:06:38"
}
}{
"detail": "image_urls must contain 1-2 items"
}{
"detail": "image_urls must contain 1-2 items"
}Lightricks
LTX 2.5 Pro 图生视频
LTX 2.5 Pro 图生视频 API 以首帧(可选尾帧)生成 6–10 秒、带音频的高保真 720p 或 1080p 视频。
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-pro/image-to-video",
"input": {
"prompt": "The elderly woman pulls both wooden oars back in a slow, practiced rhythm and the sampan glides forward along the canal. Light monsoon rain keeps falling, dimpling the brown water into spreading rings; drops bead on the dragon fruit and the pink lotus petals tremble as the boat moves. She glances toward the bank and gives a small, warm smile. The camera stays steady at eye level from the riverbank. Preserve her face, the conical hat, the boat and the cargo exactly. Audio: soft rain on water and leaves, wooden oars creaking and splashing, a distant rooster.",
"image_urls": [
"https://cdn.vidgo.ai/apis/models/lightricks/ltx-2.5-pro/image-to-video/v1/01/input-01.png"
],
"duration": 6,
"resolution": "720p",
"fps": 25,
"generate_audio": true
}
}
'{
"code": 200,
"data": {
"task_id": "2I5XOOHU8AR65IHQ",
"status": "not_started",
"created_time": "2026-11-25T17:06:38"
}
}{
"detail": "image_urls must contain 1-2 items"
}{
"detail": "image_urls must contain 1-2 items"
}- 提交后会返回
task_id。如果提供了callback_url,当任务状态变为finished或failed时,系统会向callback_url发送 POST 请求。 - 无论是否提供
callback_url,都可以通过统一的查询任务状态接口获取结果。
模型
- lightricks/ltx-2.5-pro/image-to-video — LTX 2.5 Pro 图生视频,首帧加可选尾帧。
功能
- 画面与同步音频一次生成(
generate_audio,默认开启)。 - 通过
image_urls提供首帧及可选尾帧。 - 分辨率
720p,1080p;帧率24,25,50fps。 - 时长
6,8,10秒。 - 8 种
camera_motion运镜预设。
必填参数
prompt(string):场景、动作、运镜与声音描述,最多 5,000 个字符。image_urls(string[]):一到两个公开的 HTTP(S) 图片 URL:先首帧,再可选尾帧。
可选参数
duration(integer):6,8,10秒。默认6。resolution(string):720p,1080p。默认1080p。aspect_ratio(string):auto、16:9或9:16。默认auto。fps(integer):24,25,50。默认25。generate_audio(boolean):生成同步音频。默认true。camera_motion(string):dolly_in,dolly_out,dolly_left,dolly_right,jib_up,jib_down,static,focus_shift。省略时由模型自行决定。
输出
任务完成后,查询任务状态接口和回调内容的files 数组中返回一个 MP4 视频。
示例
- 季风雨中的湄公河运河:一位老妇人在细雨中划着满载火龙果和荷花的小船,面容与货物始终一致,伴有雨声和桨声,720p,6 秒 (结果)。
- 首尾帧:花店店员包好花束,从首帧过渡到尾帧,1080p,8 秒。
注意事项
image_urls放一到两张图片;第三张图片返回 400。model和callback_url放在请求根级,与input并列。input接收上文列出的字段,其他字段返回 400。- 积分在提交时预扣,按输出时长和分辨率计费。任务失败全额退还。当前费率见定价页。
请求体
application/json