유연한 파라미터
aspect_ratio, duration_seconds, enable_sound, first_frame_image_url, last_frame_image_url 포함 11개 문서화된 파라미터를 설정할 수 있습니다.
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-o1",
"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-o1",
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-o1","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-o1',
'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-o1","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-o1",
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-o1","image_url":"https://cdn.runapi.ai/public/samples/image.jpg","prompt":"나뭇잎이 떨어지는 가을 숲을 걷는 사람의 10초짜리 영상을 시네마틱 카메라 팬으로 만들어 주세요."})
if err != nil { log.Fatal(err) }
task.Wait()
$ runapi generate \
--model kling-o1 \
--endpoint image_to_video \
--wait
사용 가능한 버전 18개
원하는 모델을 선택하고 몇 초 만에 생성해보세요.
원하는 모델을 선택하고 몇 초 만에 생성해보세요.
| 제공자 | Kuaishou |
| 모델 ID | kling-o1 |
| 모달리티 | Video |
| 작업 유형 | Asynchronous |
| API 엔드포인트 | /api/v1/kling/text_to_video, /api/v1/kling/image_to_video |
| 청구 단위 | second |
| 입력 매개변수 | aspect_ratio, callback_url, duration_seconds, enable_sound, first_frame_image_url, last_frame_image_url, mode, model, preserve_reference_video_audio, prompt, reference_image_urls, reference_video_type, reference_video_url |
| 최대 기간 | 5s |
| 종횡비 | 16:9, 9:16, 1:1 |
| 카탈로그 상태 | 운영 중 |
무료로 가입하고 대시보드에서 kling-o1용 API 키를 만드세요.
/api/v1/kling/image_to_video로 kling-o1 모델 ID와 매개변수를 포함한 POST 요청을 보내세요.
작업을 폴링하거나 콜백을 따라 완료된 kling-o1 결과를 가져오세요.
aspect_ratio, duration_seconds, enable_sound, first_frame_image_url, last_frame_image_url 포함 11개 문서화된 파라미터를 설정할 수 있습니다.
2개의 공개 endpoint를 제공합니다: text_to_video, image_to_video.
비동기 태스크는 완료 알림을 위한 콜백 URL을 수락합니다.
second 기준으로 측정되며 구독 없이 이용 가능합니다.
modeGeneration mode. (std, pro)
promptVideo description; reference media with matching numbered markers.
aspect_ratioOutput aspect ratio. (16:9, 9:16, 1:1)
callback_urlWebhook URL for async notifications.
enable_soundSound generation must remain disabled.
duration_secondsDuration in seconds. (5)
reference_video_urlPublic HTTP(S) MP4 or MOV reference video URL; cannot be combined with last_frame_image_url.
last_frame_image_urlPublic HTTP(S) JPG, JPEG, or PNG final-frame image URL; cannot be combined with reference_image_urls or reference_video_url.
reference_image_urlsOrdered public HTTP(S) JPG, JPEG, or PNG reference image URLs; cannot be combined with last_frame_image_url.
reference_video_typeUse the video as a base edit or feature reference. (base, feature)
first_frame_image_urlPublic HTTP(S) JPG, JPEG, or PNG first-frame image URL.
preserve_reference_video_audioPreserve the reference video's original audio.
prompt에서 바로 쓸 수 있는 짧은 클립을 생성합니다.
여러 방향을 빠르게 테스트합니다.
개발 도구에 모델 컨텍스트를 제공해 영상 asset을 만들 수 있습니다.
quickstart에 표시된 모델 ID를 전달하세요.
네. 호출 또는 단위 기준으로 측정됩니다.