Flexibele parameters
Configureer 11 gedocumenteerde parameters, waaronder aspect_ratio, duration_seconds, enable_sound, first_frame_image_url, last_frame_image_url.
Veelzijdige videogeneratie op basis van beeld- en videoreferenties
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": "Create a 10-second video of a person walking through an autumn forest, leaves falling, cinematic camera pan."
}'
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: "Create a 10-second video of a person walking through an autumn forest, leaves falling, cinematic camera pan.",
});
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":"Create a 10-second video of a person walking through an autumn forest, leaves falling, cinematic camera pan."}
)
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' => 'Create a 10-second video of a person walking through an autumn forest, leaves falling, cinematic camera pan.',
])
]);
$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":"Create a 10-second video of a person walking through an autumn forest, leaves falling, cinematic camera pan."});
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: "Create a 10-second video of a person walking through an autumn forest, leaves falling, cinematic camera pan."
)
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":"Create a 10-second video of a person walking through an autumn forest, leaves falling, cinematic camera pan."})
if err != nil { log.Fatal(err) }
task.Wait()
$ runapi generate \
--model kling-o1 \
--endpoint image_to_video \
--wait
18 versies beschikbaar
Kies een model en genereer binnen enkele seconden.
Kies een model en genereer binnen enkele seconden.
| Provider | Kuaishou |
| Model-ID | kling-o1 |
| Modaliteit | Video |
| Taaktypen | Asynchronous |
| API-eindpunt | /api/v1/kling/text_to_video, /api/v1/kling/image_to_video |
| Factureringseenheid | second |
| Invoerparameters | 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 |
| Maximale duur | 5s |
| Beeldverhoudingen | 16:9, 9:16, 1:1 |
| Catalogusstatus | Operationeel |
Meld je gratis aan en maak vanuit het dashboard een API-sleutel voor kling-o1.
Stuur een POST-verzoek naar /api/v1/kling/image_to_video met de model-ID kling-o1 en je parameters.
Poll de taak of volg de callback om het voltooide kling-o1-resultaat op te halen.
Configureer 11 gedocumenteerde parameters, waaronder aspect_ratio, duration_seconds, enable_sound, first_frame_image_url, last_frame_image_url.
Stelt 2 openbaar(e) endpoint(s) beschikbaar: text_to_video, image_to_video.
Asynchrone taken accepteren een callback-URL voor voltooiingsmeldingen.
Gemeten aan de hand van second, zonder abonnementsvereiste.
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.
Genereer clips voor productlanceringen en korte ads op basis van een tekstbriefing, waardoor je de productie van weken terugbrengt naar uren.
Zet lesmateriaal om in geanimeerde uitlegvideo's op schaal, zonder camera of crew.
Maak virale short-form content voor social platforms direct vanuit een prompt.
Geef de model-ID door die in de quickstart wordt getoond.
Rate limits per key schalen mee met je usage tier. Bekijk de prijzenpagina voor de actuele limieten.
Ja — variant is een flag. Wissel door de modelparameter aan te passen.
Waar streaming beschikbaar is, streamt RunAPI end-to-end.
Open een issue in de publieke GitHub-repo of mail support.
We helpen je met enterprise-inrichting, integraties en technische vragen.
Neem contact op