輸出解析度
根據已發布的 endpoint schema,支援 720p, 1080p。
curl -X POST https://runapi.ai/api/v1/kling/image_to_video \
-H "Authorization: Bearer $RUNAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling-v3-turbo-image-to-video",
"first_frame_image_url": "https://cdn.runapi.ai/public/samples/image.jpg",
"prompt": "製作一段 10 秒影片:一個人走過秋天的森林,樹葉飄落,電影感橫移鏡頭。"
}'
import { KlingClient } from "@runapi.ai/kling";
const client = new KlingClient();
const result = await client.imageToVideo.run({
model: "kling-v3-turbo-image-to-video",
first_frame_image_url: "https://cdn.runapi.ai/public/samples/image.jpg",
prompt: "製作一段 10 秒影片:一個人走過秋天的森林,樹葉飄落,電影感橫移鏡頭。",
});
import os
import requests
response = requests.post(
"https://runapi.ai/api/v1/kling/image_to_video",
headers={"Authorization": f"Bearer {os.environ['RUNAPI_API_KEY']}"},
json={"model":"kling-v3-turbo-image-to-video","first_frame_image_url":"https://cdn.runapi.ai/public/samples/image.jpg","prompt":"製作一段 10 秒影片:一個人走過秋天的森林,樹葉飄落,電影感橫移鏡頭。"}
)
response.raise_for_status()
<?php
$client = curl_init("https://runapi.ai/api/v1/kling/image_to_video");
curl_setopt_array($client, [
CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("RUNAPI_API_KEY"), "Content-Type: application/json"],
CURLOPT_POSTFIELDS => json_encode([
'model' => 'kling-v3-turbo-image-to-video',
'first_frame_image_url' => 'https://cdn.runapi.ai/public/samples/image.jpg',
'prompt' => '製作一段 10 秒影片:一個人走過秋天的森林,樹葉飄落,電影感橫移鏡頭。',
])
]);
$response = curl_exec($client);
RunApi client = new RunApi(System.getenv("RUNAPI_API_KEY"));
Task task = client.imageToVideo().run({"model":"kling-v3-turbo-image-to-video","first_frame_image_url":"https://cdn.runapi.ai/public/samples/image.jpg","prompt":"製作一段 10 秒影片:一個人走過秋天的森林,樹葉飄落,電影感橫移鏡頭。"});
task.waitForResult();
require "runapi/kling"
client = RunApi::Kling::Client.new
result = client.image_to_video.run(
model: "kling-v3-turbo-image-to-video",
first_frame_image_url: "https://cdn.runapi.ai/public/samples/image.jpg",
prompt: "製作一段 10 秒影片:一個人走過秋天的森林,樹葉飄落,電影感橫移鏡頭。"
)
client := runapi.NewClient(os.Getenv("RUNAPI_API_KEY"))
task, err := client.imageToVideo.Run({"model":"kling-v3-turbo-image-to-video","first_frame_image_url":"https://cdn.runapi.ai/public/samples/image.jpg","prompt":"製作一段 10 秒影片:一個人走過秋天的森林,樹葉飄落,電影感橫移鏡頭。"})
if err != nil { log.Fatal(err) }
task.Wait()
$ runapi generate \
--model kling-v3-turbo-image-to-video \
--endpoint image_to_video \
--wait
18 個版本可用
選擇任意模型,數秒內即可開始生成。
| 提供者 | Kuaishou |
| 模型 ID | kling-v3-turbo-image-to-video |
| 模態 | 影片 |
| 任務類型 | Asynchronous |
| API 端點 | /api/v1/kling/image_to_video |
| 計費單位 | 秒 |
| 輸入參數 | callback_url, duration_seconds, first_frame_image_url, model, output_resolution, prompt |
| 最大時長 | 3s, 4s, 5s, 6s, 7s, 8s, 9s, 10s, 11s, 12s, 13s, 14s, 15s |
| 最大解像度 | 720p, 1080p |
| 目錄狀態 | 可正常運作 |
免費註冊後,在控制台建立 kling-v3-turbo-image-to-video 的 API 金鑰。
向 /api/v1/kling/image_to_video 發送 POST 請求,並傳入 kling-v3-turbo-image-to-video 模型 ID 和參數。
輪詢工作或按照回呼取得已完成的 kling-v3-turbo-image-to-video 結果。
根據已發布的 endpoint schema,支援 720p, 1080p。
可設定 4 個已記錄的參數,包括 duration_seconds, first_frame_image_url, output_resolution, prompt。
開放 1 個公開 endpoint:image_to_video。
非同步任務接受回調 URL,用於接收完成通知。
promptVideo description.
callback_urlWebhook URL for async notifications.
duration_secondsDuration in seconds. (3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)
output_resolutionOutput resolution. (720p, 1080p)
first_frame_image_urlFirst frame image URL.
由文字 brief 生成產品發佈短片同短版廣告,將製作時間由幾星期縮短到幾個鐘。
無需攝影機或團隊,都可以大規模將課程腳本轉成動畫解說影片。
直接由 prompt 為社交平台製作易爆紅的短內容。
傳入 quickstart 顯示嘅 model ID。
每個 key 的 rate limit 會按使用層級而定。請查看定價頁了解最新限制。
可以——variant 只係一個旗標。只要更改 model 參數就可以切換。
在可用 streaming 的情況下,RunAPI 會端到端串流。
可以在公開 GitHub repo 開 issue,或者電郵支援團隊。
不需要。你的 RunAPI API key 足以存取此 variant 及目錄中的所有其他模型,無需底層供應商帳戶。