Kling Video to Audio
kwaivgi/kling-video/video-to-audioKling Video to Audio generates sound effects and background music for a 3–20 second video and returns both the MP3 soundtrack and the video with the new audio.
- Grundpreis
- $0.04USD / Ausführung
- Ausführung
- async
- Modelltyp
- audio
- Eingabefelder
- 4
Modell testen
Playground
Ihre Ausgabe wird hier angezeigt
Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.
Modellkarte
Spezifikationen
Preisgestaltung
- Basispreis
- $0.04 / Ausführung
Kontext & Modalitäten
- Eingabe
- Schema-definiert
- Ausgabe
- audio
Funktionen
- Chat
- Nicht unterstützt
- Vision
- Nicht unterstützt
- Reasoning
- Nicht unterstützt
- Strukturierte Ausgabe
- Nicht unterstützt
- Function Calling
- Nicht unterstützt
- Audioeingabe
- Nicht unterstützt
Zugriff
- Anbieter
- KwaiVGI
- Modell-ID
- kwaivgi/kling-video/video-to-audio
- Ausführung
- async
- Basis-URL
- https://api.sandbase.ai
- API
- Unified Run API
- Endpunkt
- /v1/run
API-README
Kling Video to Audio
Kling Video to Audio adds sound effects and background music to a 3–20 second video.
Fields
| Field | Type | Default | Notes |
|---|---|---|---|
video | video file or URL, required | — | .mp4 or .mov, up to 100 MB, 3–20 s. |
sound_effect_prompt | string, up to 200 chars | — | Optional, up to 200 characters. |
background_music_prompt | string, up to 200 chars | — | Optional, up to 200 characters. |
asmr_mode | boolean | false | Stronger detail for close-up sounds. |
Output
| Field | Notes |
|---|---|
url | MP3 soundtrack. |
video_url | The input video with the new audio. |
Billing
$0.035 per video.
| Request | Price |
|---|---|
| One video | $0.035 |
| 10 videos | $0.35 |
Failed runs are not charged.
Prompting
- Describe sound effects and music separately; leave both empty to let Kling infer them from the video.
Also on SandBase
Related: sonilo/1.1/video-to-sound-effects, sonilo/1.1/video-to-music.
Jetzt loslegen
Senden Sie Ihre erste Anfrage
OpenAI-kompatibler Endpunkt mit einheitlicher Authentifizierung und Nutzungsnachverfolgung.
# 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/video-to-audio",
"video": "https://static.sandbase.ai/examples/kwaivgi/kling-video/video-to-audio/output_url_0.mp4",
"asmr_mode": false,
"sound_effect_prompt": "Car tires screech as they accelerate in a drag race",
"background_music_prompt": "intense car race"
}
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"Eingabeschema
4 Parameter · 1 erforderlich · 3 optional
| Parameter | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
video | string | Erforderlich | Video file or URL to add sound to. Only .mp4 and .mov, up to 100 MB, 3–20 seconds long. |
asmr_mode | boolean | Optional | Enhances detailed sound effects for immersive ASMR-style content. · Standard: false |
sound_effect_prompt | string | Optional | Optional sound effect description, up to 200 characters. · Maximale Länge: 200 |
background_music_prompt | string | Optional | Optional background music description, up to 200 characters. · Maximale Länge: 200 |
Ausgabeschema
| Feld | Typ | Beschreibung |
|---|---|---|
id | string | Eindeutige Kennung für den Generierungsauftrag |
status | string | Status des Auftrags: pending, running, completed, failed, timeout |
model | string | Verwendetes Modell für die Generierung |
outputs | array | Array von Ausgabeelementen |
outputs[].url | string | URL des generierten Artefakts |
outputs[].content_type | string | MIME-Typ (z. B. image/png, video/mp4) |
error | object | null | Fehlerdetails bei Fehlschlag, bei Erfolg null |
error.type | string | Maschinenlesbarer Fehler-Typcode |
error.message | string | Menschenlesbare Fehlerbeschreibung |
Asynchroner Workflow
Dieses Modell läuft asynchron. Senden Sie eine Anfrage und pollen Sie dann das Ergebnis.
- Senden: Per POST an /v1/run senden und das zurückgegebene
idlesen. - Pollen: GET /v1/run/{id}, bis der Status
completed,failedodertimeoutist. - Abrufen:
outputsaus der abgeschlossenen Antwort lesen.
Wählen Sie Ihr Modell
Modelle vergleichen
| Modell | Typ | Standardpreis | Veröffentlicht |
|---|---|---|---|
Kling Video to AudioDieses Modell KwaiVGI | Audio | $0.04 / Lauf | 9. Okt. 2025 |
KwaiVGI | Video | $0.47 / Lauf | 16. Nov. 2026 |
KwaiVGI | Video | $0.47 / Lauf | 16. Nov. 2026 |
KwaiVGI | Video | $0.47 / Lauf | 16. Nov. 2026 |
KwaiVGI | Video | $2.52 / Lauf | 16. Nov. 2026 |
KwaiVGI | Video | $8.46 / Lauf | 21. Okt. 2026 |
Fragen
FAQ
Wie rufe ich KwaiVGI Kling Video to Audio über SandBase auf?
Erstellen Sie einen SandBase API-Schlüssel und senden Sie dann Anfragen mit der Modell-ID "kwaivgi/kling-video/video-to-audio" an Unified Run API (/v1/run) unter https://api.sandbase.ai. Die Anfragebeispiele auf dieser Seite zeigen die exakte Nutzlast.
Benötige ich ein separates KwaiVGI-Konto?
Nein. Mit einem SandBase API-Schlüssel und Guthaben erhalten Sie Zugriff auf KwaiVGI Kling Video to Audio und die anderen Modelle im Katalog; Sie müssen sich nicht separat bei KwaiVGI registrieren.
