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/image-to-video",
"input": {
"prompt": "The kite lifts off the beach as the girl runs into the wind, sand blowing past her feet. Audio: surf and gulls.",
"image_urls": [
"https://example.com/start-frame.png",
"https://example.com/end-frame.png"
],
"duration": 8,
"resolution": "1080p",
"fps": 25,
"generate_audio": true
}
}
'{
"code": 200,
"data": {
"task_id": "LTX25TASKEXAMPLE",
"status": "not_started",
"created_time": "2026-11-25T08:00:00"
}
}{
"detail": "image_urls must contain 1-2 items"
}{
"detail": "image_urls must contain 1-2 items"
}Lightricks
LTX 2.5 Fast 图生视频
LTX 2.5 Fast 图生视频 API 以首帧(可选尾帧)生成 6–20 秒、带音频的视频,支持 720p 至 4K。
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/image-to-video",
"input": {
"prompt": "The kite lifts off the beach as the girl runs into the wind, sand blowing past her feet. Audio: surf and gulls.",
"image_urls": [
"https://example.com/start-frame.png",
"https://example.com/end-frame.png"
],
"duration": 8,
"resolution": "1080p",
"fps": 25,
"generate_audio": true
}
}
'{
"code": 200,
"data": {
"task_id": "LTX25TASKEXAMPLE",
"status": "not_started",
"created_time": "2026-11-25T08:00:00"
}
}{
"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-fast/image-to-video — LTX 2.5 Fast 图生视频,首帧加可选尾帧。
功能
- 画面与同步音频一次生成(
generate_audio,默认开启)。 - 通过
image_urls提供首帧及可选尾帧。 - 分辨率
720p,1080p,1440p,4k;帧率24,25,48,50fps。 - 时长
6,8,10,12,14,16,18,20秒。 - 8 种
camera_motion运镜预设。
必填参数
prompt(string):场景、动作、运镜与声音描述,最多 5,000 个字符。image_urls(string[]):一到两个公开的 HTTP(S) 图片 URL:先首帧,再可选尾帧。
可选参数
duration(integer):6,8,10,12,14,16,18,20秒。默认6。1440p、4k、48fps 或50fps 时最长10。resolution(string):720p,1080p,1440p,4k。默认1080p。aspect_ratio(string):auto、16:9或9:16。默认auto。fps(integer):24,25,48,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 视频。
示例
- 让图片动起来:海滩上放风筝的女孩,首尾帧,1080p,8 秒。
- 仅首帧:仅一张首帧:厨师把冒着热气的面推过柜台,720p,6 秒。
注意事项
image_urls放一到两张图片;第三张图片返回 400。1440p、4k、48fps 或50fps 下duration超过10返回 400。model和callback_url放在请求根级,与input并列。input接收上文列出的字段,其他字段返回 400。- 积分在提交时预扣,按输出时长和分辨率计费。任务失败全额退还。当前费率见定价页。
请求体
application/json