Kling V2.5 Turbo Pro Text to Video
kwaivgi/kling-video/v2.5-turbo/pro/text-to-videoKling V2.5 Turbo Pro Text to Video by Kuaishou turns a text prompt into a 5 or 10 second 1080p video.
Modell testen
Playground
Was möchten Sie als Nächstes tun?
Beispiele
Wählen Sie ein Beispiel aus, um seine Eingaben und das Ergebnis in den Playground zu laden.
- Ergebnis öffnen ↗
Eingabe
{ "prompt": "A noble lord walks among his people, his presence a comforting reassurance. He greets them with a gentle smile, embodying their hopes and earning their respect through simple interactions. The atmosphere is intimate and sincere, highlighting the bond between the leader and community." }
Kling V2.5 Turbo Pro Text to Video
Kling V2.5 Turbo Pro text-to-video: fast, low-cost 5 or 10 second clips without audio.
Fields
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Up to 2,500 characters. |
aspect_ratio | 16:9 / 9:16 / 1:1 | 16:9 | Output frame shape. |
duration | 5 / 10 | 5 | Output length in seconds. |
Billing
$0.07 per output second.
| Output | Price |
|---|---|
| 5s (default) | $0.35 |
| 10s | $0.70 |
Failed runs are not charged.
Prompting
- Describe subject, action, camera move, and light in order.
Limits
- Clips are 5 or 10 seconds; no audio.
Also on SandBase
Other V2.5 Turbo endpoints: kwaivgi/kling-video/v2.5-turbo/pro/image-to-video, kwaivgi/kling-video/v2.5-turbo/standard/image-to-video.
Jetzt loslegen
Senden Sie Ihre erste Anfrage
Senden Sie dieses Modell über die SandBase Unified Run API.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"model": "kwaivgi/kling-video/v2.5-turbo/pro/text-to-video",
"prompt": "A noble lord walks among his people, his presence a comforting reassurance. He greets them with a gentle smile, embodying their hopes and earning their respect through simple interactions. The atmosphere is intimate and sincere, highlighting the bond between the leader and community.",
"duration": 5,
"aspect_ratio": "16:9"
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
status=$(printf '%s' "$result" | jq -r .status)
case "$status" in completed|failed|timeout) break ;; esac
sleep 2
result=$(curl --fail-with-body --silent \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
"https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"2. Authentifizierung
Erstellen Sie einen SandBase API-Schlüssel und legen Sie ihn in Ihrer Serverumgebung fest. Alle Anfragen verwenden Bearer-Authentifizierung.
export SANDBASE_API_KEY="YOUR_API_KEY"Bewahren Sie den Schlüssel auf dem Server auf. Geben Sie ihn nicht in Browser-Code preis und committen Sie ihn nicht in ein Repository.
3. Queue
Anfrage senden
POST an /v1/run mit dieser Modell-ID und ihren Eingaben. Das obige Anfragebeispiel umfasst Übermittlung und Polling.
Anfragestatus und Ergebnis abrufen
Verwenden Sie die zurückgegebene Run-ID zum Polling, bis der Status completed, failed oder timeout ist. Lesen Sie die Ausgabe erst nach completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"4. Dateien
Gehostete Dateien
Übergeben Sie eine öffentlich zugängliche Date-URL im Bild-, Video- oder Audiofeld des Modells. Unterstützte Formate und Limits werden neben jedem Playground-Eingabefeld angezeigt.
Bilder hochladen
Verwenden Sie im Playground bei unterstützten Bildfeldern die Steuerung zum Hochladen oder Ersetzen. Video-URL-Felder akzeptieren ein gehostetes Fahrvideo; sie implizieren keine Unterstützung für Video-Uploads.
5. Schema
Eingabe
durationinteger
The duration of the generated video in seconds
Standard: 5
Mögliche Werte: 5, 10
aspect_ratiostring
The aspect ratio of the generated image.
Standard: "16:9"
Mögliche Werte: "16:9", "9:16", "1:1"
{
"model": "kwaivgi/kling-video/v2.5-turbo/pro/text-to-video",
"prompt": "A noble lord walks among his people, his presence a comforting reassurance. He greets them with a gentle smile, embodying their hopes and earning their respect through simple interactions. The atmosphere is intimate and sincere, highlighting the bond between the leader and community.",
"duration": 5,
"aspect_ratio": "16:9"
}Ausgabe
Ein abgeschlossener Run stellt sein Ergebnis in der Ausgabe bereit. Das Folgende ist das gespeicherte Beispiel des Modells, keine neue Generierung.
[
{
"poster": "https://static.sandbase.ai/examples/posters/6745db0544bae13b5430.jpg",
"source": "Kling AI official schema mirror",
"source_url": "https://kling.ai/document-api/guides/get-started/overview",
"url": "https://static.sandbase.ai/examples/8d3a79d0-77d6-4bf4-9990-308622c1c6eb/output/582937a0-d99b-41b1-807d-a69396ebad8d.mp4"
}
]