输出分辨率
根据已发布的 endpoint 规格,支持 720p, 1080p, 1440p。
curl -X POST https://runapi.ai/api/v1/ltx_video/text_to_video \
-H "Authorization: Bearer $RUNAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "ltx-2.5-fast-text-to-video",
"prompt": "镜头缓慢穿过阳光洒落的森林。"
}'
import { LtxVideoClient } from "@runapi.ai/ltx-video";
const client = new LtxVideoClient();
const result = await client.textToVideo.run({
model: "ltx-2.5-fast-text-to-video",
prompt: "镜头缓慢穿过阳光洒落的森林。",
});
import os
import requests
response = requests.post(
"https://runapi.ai/api/v1/ltx_video/text_to_video",
headers={"Authorization": f"Bearer {os.environ['RUNAPI_API_KEY']}"},
json={"model":"ltx-2.5-fast-text-to-video","prompt":"镜头缓慢穿过阳光洒落的森林。"}
)
response.raise_for_status()
<?php
$client = curl_init("https://runapi.ai/api/v1/ltx_video/text_to_video");
curl_setopt_array($client, [
CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("RUNAPI_API_KEY"), "Content-Type: application/json"],
CURLOPT_POSTFIELDS => json_encode([
'model' => 'ltx-2.5-fast-text-to-video',
'prompt' => '镜头缓慢穿过阳光洒落的森林。',
])
]);
$response = curl_exec($client);
RunApi client = new RunApi(System.getenv("RUNAPI_API_KEY"));
Task task = client.textToVideo().run({"model":"ltx-2.5-fast-text-to-video","prompt":"镜头缓慢穿过阳光洒落的森林。"});
task.waitForResult();
require "runapi/ltx_video"
client = RunApi::LtxVideo::Client.new
result = client.text_to_video.run(
model: "ltx-2.5-fast-text-to-video",
prompt: "镜头缓慢穿过阳光洒落的森林。"
)
client := runapi.NewClient(os.Getenv("RUNAPI_API_KEY"))
task, err := client.textToVideo.Run({"model":"ltx-2.5-fast-text-to-video","prompt":"镜头缓慢穿过阳光洒落的森林。"})
if err != nil { log.Fatal(err) }
task.Wait()
$ runapi generate \
--model ltx-2.5-fast-text-to-video \
--endpoint text_to_video \
--wait
5 个版本可用
选择任意模型,几秒内开始生成。
| 提供商 | Lightricks |
| 模型 ID | ltx-2.5-fast-text-to-video |
| 模态 | 视频 |
| 任务类型 | Asynchronous |
| API 端点 | /api/v1/ltx_video/text_to_video |
| 计费单位 | 秒 |
| 输入参数 | aspect_ratio, callback_url, duration_seconds, fps, model, output_resolution, prompt, seed |
| 最大时长 | 6s, 8s, 10s, 12s, 14s, 16s, 18s, 20s |
| 最大分辨率 | 720p, 1080p, 1440p |
| 宽高比 | 16:9, 9:16, 1:1, 3:2, 2:3 |
| 目录状态 | 运行中 |
免费注册后,在控制台创建用于 ltx-2.5-fast-text-to-video 的 API 密钥。
向 /api/v1/ltx_video/text_to_video 发送 POST 请求,并传入 ltx-2.5-fast-text-to-video 模型 ID 和参数。
轮询任务或按照回调获取已完成的 ltx-2.5-fast-text-to-video 结果。
根据已发布的 endpoint 规格,支持 720p, 1080p, 1440p。
可配置文档中列出的 6 个参数,包括 aspect_ratio, duration_seconds, fps, output_resolution, prompt。
提供 1 个公开 endpoint:text_to_video。
异步任务支持回调 URL,任务完成时发送通知。
fpsFrames per second. 48/50 fps is limited to 10 seconds. Frame rate does not affect the per-second price. (24, 25, 48, 50)
seedOptional random seed.
promptVideo description, from 1 to 5,000 characters.
aspect_ratioOutput video aspect ratio. (16:9, 9:16, 1:1, 3:2, 2:3)
callback_urlRunAPI callback URL for the terminal task result.
duration_secondsOutput duration in seconds. Fast 1440p or 48/50 fps is limited to 10 seconds. (6, 8, 10, 12, 14, 16, 18, 20)
output_resolutionOutput video resolution. Fast 1440p is limited to 10 seconds. (720p, 1080p, 1440p)
从文字简报生成产品发布短视频和广告片段,将制作周期从数周缩短到数小时。
将课程脚本批量转换为动画讲解视频,无需摄像设备和拍摄团队。
直接从提示词生成社交平台短视频内容。
传入 quickstart 中显示的模型 ID。
Key 级限流随使用层级伸缩。当前限制见定价页。
可以——变体只是参数,改 model 字段即可。
模型支持流式时,RunAPI 端到端流式。
在公共 GitHub 仓库提 issue 或邮件联系 support。
不需要。你的 RunAPI API key 足以访问此 variant 以及目录中的所有其他模型,无需底层提供方账户。