输出分辨率
根据已发布的 endpoint 规格,支持 720p。
curl -X POST https://runapi.ai/api/v1/kling/reference_to_video \
-H "Authorization: Bearer $RUNAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling-v4-flash-reference-to-video",
"prompt": "创建一段 10 秒的秋日森林漫步视频,落叶飘落,电影级运镜。"
}'
import { KlingClient } from "@runapi.ai/kling";
const client = new KlingClient();
const result = await client.referenceToVideo.run({
model: "kling-v4-flash-reference-to-video",
prompt: "创建一段 10 秒的秋日森林漫步视频,落叶飘落,电影级运镜。",
});
import os
import requests
response = requests.post(
"https://runapi.ai/api/v1/kling/reference_to_video",
headers={"Authorization": f"Bearer {os.environ['RUNAPI_API_KEY']}"},
json={"model":"kling-v4-flash-reference-to-video","prompt":"创建一段 10 秒的秋日森林漫步视频,落叶飘落,电影级运镜。"}
)
response.raise_for_status()
<?php
$client = curl_init("https://runapi.ai/api/v1/kling/reference_to_video");
curl_setopt_array($client, [
CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("RUNAPI_API_KEY"), "Content-Type: application/json"],
CURLOPT_POSTFIELDS => json_encode([
'model' => 'kling-v4-flash-reference-to-video',
'prompt' => '创建一段 10 秒的秋日森林漫步视频,落叶飘落,电影级运镜。',
])
]);
$response = curl_exec($client);
RunApi client = new RunApi(System.getenv("RUNAPI_API_KEY"));
Task task = client.referenceToVideo().run({"model":"kling-v4-flash-reference-to-video","prompt":"创建一段 10 秒的秋日森林漫步视频,落叶飘落,电影级运镜。"});
task.waitForResult();
require "runapi/kling"
client = RunApi::Kling::Client.new
result = client.reference_to_video.run(
model: "kling-v4-flash-reference-to-video",
prompt: "创建一段 10 秒的秋日森林漫步视频,落叶飘落,电影级运镜。"
)
client := runapi.NewClient(os.Getenv("RUNAPI_API_KEY"))
task, err := client.referenceToVideo.Run({"model":"kling-v4-flash-reference-to-video","prompt":"创建一段 10 秒的秋日森林漫步视频,落叶飘落,电影级运镜。"})
if err != nil { log.Fatal(err) }
task.Wait()
$ runapi generate \
--model kling-v4-flash-reference-to-video \
--endpoint reference_to_video \
--wait
24 个版本可用
选择任意模型,几秒内开始生成。
| 提供商 | Kuaishou |
| 模型 ID | kling-v4-flash-reference-to-video |
| 模态 | 视频 |
| 任务类型 | Asynchronous |
| API 端点 | /api/v1/kling/reference_to_video |
| 计费单位 | 秒 |
| 输入参数 | aspect_ratio, callback_url, duration_seconds, elements, keep_original_sound, model, output_resolution, prompt, reference_image_urls, reference_video_urls |
| 最大分辨率 | 720p |
| 宽高比 | 16:9, 9:16, 1:1, 21:9 |
| 目录状态 | 运行中 |
免费注册后,在控制台创建用于 kling-v4-flash-reference-to-video 的 API 密钥。
向 /api/v1/kling/reference_to_video 发送 POST 请求,并传入 kling-v4-flash-reference-to-video 模型 ID 和参数。
轮询任务或按照回调获取已完成的 kling-v4-flash-reference-to-video 结果。
根据已发布的 endpoint 规格,支持 720p。
可配置文档中列出的 8 个参数,包括 aspect_ratio, duration_seconds, elements, keep_original_sound, output_resolution。
提供 1 个公开 endpoint:reference_to_video。
异步任务支持回调 URL,任务完成时发送通知。
promptVideo description with material references.
elements暂无描述。
aspect_ratioOutput aspect ratio. (16:9, 9:16, 1:1, 21:9)
callback_urlWebhook URL for async notifications.
duration_secondsOutput duration in seconds.
output_resolutionOutput resolution. Flash is fixed at 720p. (720p)
keep_original_soundKeep audio from reference videos.
reference_image_urls暂无描述。
reference_video_urls暂无描述。
从文字简报生成产品发布短视频和广告片段,将制作周期从数周缩短到数小时。
将课程脚本批量转换为动画讲解视频,无需摄像设备和拍摄团队。
直接从提示词生成社交平台短视频内容。
传入 quickstart 中显示的模型 ID。
Key 级限流随使用层级伸缩。当前限制见定价页。
可以——变体只是参数,改 model 字段即可。
模型支持流式时,RunAPI 端到端流式。
在公共 GitHub 仓库提 issue 或邮件联系 support。
不需要。你的 RunAPI API key 足以访问此 variant 以及目录中的所有其他模型,无需底层提供方账户。