curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"model": "lightricks/ltx-2.5-fast/text-to-video",
"input": {
"prompt": "Golden hour on the open Mongolian steppe. An elderly herder in a deep blue deel and fur-trimmed hat sits on a low wooden stool beside a white ger, drawing a bow across a horse-head fiddle (morin khuur). His weathered fingers press the strings while the wind ripples the long grass and lifts the silk tassel on the fiddle's scroll. Behind him, two chestnut horses graze and one lifts its head toward the music. Slow cinematic push-in from a medium shot to a close-up of his hands and face, warm low sun, long soft shadows. Audio: a slow, resonant morin khuur melody, steady steppe wind, a horse's soft snort. No text, no logos.",
"duration": 6,
"resolution": "720p",
"aspect_ratio": "16:9",
"fps": 25,
"generate_audio": true,
"camera_motion": "dolly_in"
}
}
EOF{
"code": 200,
"data": {
"task_id": "08Y8E2JUSWBEBIG6",
"status": "not_started",
"created_time": "2026-11-25T17:05:24"
}
}{
"detail": "prompt is required"
}{
"detail": "prompt is required"
}Lightricks
LTX 2.5 Fast 文生视频
LTX 2.5 Fast 文生视频 API 根据提示词生成 6–20 秒、带同步音频的视频,支持 720p 至 4K 和 24–50 fps。
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 @- <<EOF
{
"model": "lightricks/ltx-2.5-fast/text-to-video",
"input": {
"prompt": "Golden hour on the open Mongolian steppe. An elderly herder in a deep blue deel and fur-trimmed hat sits on a low wooden stool beside a white ger, drawing a bow across a horse-head fiddle (morin khuur). His weathered fingers press the strings while the wind ripples the long grass and lifts the silk tassel on the fiddle's scroll. Behind him, two chestnut horses graze and one lifts its head toward the music. Slow cinematic push-in from a medium shot to a close-up of his hands and face, warm low sun, long soft shadows. Audio: a slow, resonant morin khuur melody, steady steppe wind, a horse's soft snort. No text, no logos.",
"duration": 6,
"resolution": "720p",
"aspect_ratio": "16:9",
"fps": 25,
"generate_audio": true,
"camera_motion": "dolly_in"
}
}
EOF{
"code": 200,
"data": {
"task_id": "08Y8E2JUSWBEBIG6",
"status": "not_started",
"created_time": "2026-11-25T17:05:24"
}
}{
"detail": "prompt is required"
}{
"detail": "prompt is required"
}- 提交后会返回
task_id。如果提供了callback_url,当任务状态变为finished或failed时,系统会向callback_url发送 POST 请求。 - 无论是否提供
callback_url,都可以通过统一的查询任务状态接口获取结果。
模型
- lightricks/ltx-2.5-fast/text-to-video — LTX 2.5 Fast 文生视频,6–20 秒,带音频。
功能
- 画面与同步音频一次生成(
generate_audio,默认开启)。 - 分辨率
720p,1080p,1440p,4k;帧率24,25,48,50fps。 - 时长
6,8,10,12,14,16,18,20秒。 - 8 种
camera_motion运镜预设。
必填参数
prompt(string):场景、动作、运镜与声音描述,最多 5,000 个字符。
可选参数
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。默认16:9。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 视频。
示例
- 草原上的马头琴:黄昏时分,一位老牧民拉着马头琴,马群在身后吃草,镜头缓慢推近,琴声与风声作为音频同步生成,720p,6 秒 (结果)。
- 竖屏 4K 视频:里斯本雨后水沟里漂流的纸船,9:16、4K、50 fps,10 秒。
注意事项
1440p、4k、48fps 或50fps 下duration超过10返回 400。model和callback_url放在请求根级,与input并列。input接收上文列出的字段,其他字段返回 400。- 积分在提交时预扣,按输出时长和分辨率计费。任务失败全额退还。当前费率见定价页。
请求体
application/json