輸出解析度
支援公開 endpoint 架構中的 720p, 1080p, 1440p。
curl -X POST https://runapi.ai/api/v1/ltx_video/image_to_video \
-H "Authorization: Bearer $RUNAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "ltx-2.5-fast-image-to-video",
"source_image_url": "https://cdn.runapi.ai/public/samples/image.jpg",
"prompt": "鏡頭緩慢穿過陽光灑落的森林。"
}'
import { LtxVideoClient } from "@runapi.ai/ltx-video";
const client = new LtxVideoClient();
const result = await client.imageToVideo.run({
model: "ltx-2.5-fast-image-to-video",
source_image_url: "https://cdn.runapi.ai/public/samples/image.jpg",
prompt: "鏡頭緩慢穿過陽光灑落的森林。",
});
import os
import requests
response = requests.post(
"https://runapi.ai/api/v1/ltx_video/image_to_video",
headers={"Authorization": f"Bearer {os.environ['RUNAPI_API_KEY']}"},
json={"model":"ltx-2.5-fast-image-to-video","source_image_url":"https://cdn.runapi.ai/public/samples/image.jpg","prompt":"鏡頭緩慢穿過陽光灑落的森林。"}
)
response.raise_for_status()
<?php
$client = curl_init("https://runapi.ai/api/v1/ltx_video/image_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-image-to-video',
'source_image_url' => 'https://cdn.runapi.ai/public/samples/image.jpg',
'prompt' => '鏡頭緩慢穿過陽光灑落的森林。',
])
]);
$response = curl_exec($client);
RunApi client = new RunApi(System.getenv("RUNAPI_API_KEY"));
Task task = client.imageToVideo().run({"model":"ltx-2.5-fast-image-to-video","source_image_url":"https://cdn.runapi.ai/public/samples/image.jpg","prompt":"鏡頭緩慢穿過陽光灑落的森林。"});
task.waitForResult();
require "runapi/ltx_video"
client = RunApi::LtxVideo::Client.new
result = client.image_to_video.run(
model: "ltx-2.5-fast-image-to-video",
source_image_url: "https://cdn.runapi.ai/public/samples/image.jpg",
prompt: "鏡頭緩慢穿過陽光灑落的森林。"
)
client := runapi.NewClient(os.Getenv("RUNAPI_API_KEY"))
task, err := client.imageToVideo.Run({"model":"ltx-2.5-fast-image-to-video","source_image_url":"https://cdn.runapi.ai/public/samples/image.jpg","prompt":"鏡頭緩慢穿過陽光灑落的森林。"})
if err != nil { log.Fatal(err) }
task.Wait()
$ runapi generate \
--model ltx-2.5-fast-image-to-video \
--endpoint image_to_video \
--wait
5 個版本可用
選擇任一模型,幾秒內即可開始生成。
| 提供者 | Lightricks |
| 模型 ID | ltx-2.5-fast-image-to-video |
| 模態 | 影片 |
| 任務類型 | Asynchronous |
| API 端點 | /api/v1/ltx_video/image_to_video |
| 計費單位 | 秒 |
| 輸入參數 | callback_url, duration_seconds, fps, model, output_resolution, prompt, seed, source_image_url |
| 最大時長 | 6s, 8s, 10s, 12s, 14s, 16s, 18s, 20s |
| 最大解析度 | 720p, 1080p, 1440p |
| 目錄狀態 | 可直接上線 |
免費註冊後,從控制台建立 ltx-2.5-fast-image-to-video 的 API 金鑰。
向 /api/v1/ltx_video/image_to_video 傳送 POST 請求,並傳入 ltx-2.5-fast-image-to-video 模型 ID 與參數。
輪詢工作或依照回呼取得已完成的 ltx-2.5-fast-image-to-video 結果。
支援公開 endpoint 架構中的 720p, 1080p, 1440p。
可設定 6 個已記錄的參數,包括 duration_seconds, fps, output_resolution, prompt, seed。
公開 1 個公共 endpoint:image_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.
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)
source_image_urlHTTP(S) URL of a JPG, PNG or WEBP source image, up to 10 MB. The provider validates the remote file and derives the output aspect ratio.
output_resolutionOutput video resolution. Fast 1440p is limited to 10 seconds. (720p, 1080p, 1440p)
根據文字簡報生成產品上市短片與短影音廣告,將製作時間從數週縮短到數小時。
無需攝影機或團隊,即可大規模將課程腳本轉為動畫解說影片。
直接從 prompt 產生適合社群平台的爆紅短影音內容。
傳入 quickstart 顯示的 model ID。
每個金鑰的速率限制會依使用方案而調整。請查看定價頁面以了解目前限制。
可以——variant 只是旗標。只要變更 model 參數即可切換。
只要支援串流,RunAPI 就會端到端串流。
請在公開 GitHub repo 提交 issue,或寄信給支援。
不需要。你的 RunAPI API key 足以存取此 variant 及目錄中的所有其他模型,無需底層供應商帳戶。