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.
- Prix de base
- $0.04USD / exécution
- Exécution
- async
- Type de modèle
- audio
- Champs d'entrée
- 4
Essayer le modèle
Bac à sable
Votre sortie apparaîtra ici
Complétez les entrées, puis cliquez sur Exécuter.
Fiche modèle
Spécifications
Tarification
- Prix de base
- $0.04 / exécution
Contexte et modalités
- Entrée
- Défini par le schéma
- Sortie
- audio
Fonctionnalités
- Chat
- Non pris en charge
- Vision
- Non pris en charge
- Raisonnement
- Non pris en charge
- Sortie structurée
- Non pris en charge
- Appel de fonction
- Non pris en charge
- Entrée audio
- Non pris en charge
Accès
- Fournisseur
- KwaiVGI
- ID du modèle
- kwaivgi/kling-video/video-to-audio
- Exécution
- async
- URL de base
- https://api.sandbase.ai
- API
- Unified Run API
- Point de terminaison
- /v1/run
README de l'API
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.
Commencer à construire
Envoyez votre première requête
Point de terminaison compatible OpenAI avec authentification unifiée et suivi de l'utilisation.
# 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"Schéma d'entrée
4 paramètres · 1 obligatoires · 3 facultatifs
| Paramètre | Type | Obligatoire | Description |
|---|---|---|---|
video | string | Obligatoire | Video file or URL to add sound to. Only .mp4 and .mov, up to 100 MB, 3–20 seconds long. |
asmr_mode | boolean | Facultatif | Enhances detailed sound effects for immersive ASMR-style content. · Par défaut : false |
sound_effect_prompt | string | Facultatif | Optional sound effect description, up to 200 characters. · Longueur max. : 200 |
background_music_prompt | string | Facultatif | Optional background music description, up to 200 characters. · Longueur max. : 200 |
Schéma de sortie
| Champ | Type | Description |
|---|---|---|
id | string | Identifiant unique de la tâche de génération |
status | string | Statut de la tâche : pending, running, completed, failed, timeout |
model | string | Modèle utilisé pour la génération |
outputs | array | Tableau des éléments de sortie |
outputs[].url | string | URL de l'artefact généré |
outputs[].content_type | string | Type MIME (par ex. image/png, video/mp4) |
error | object | null | Détails de l'erreur en cas d'échec, null en cas de succès |
error.type | string | Code de type d'erreur lisible par machine |
error.message | string | Description de l'erreur lisible par l'humain |
Flux de travail asynchrone
Ce modèle s’exécute de manière asynchrone. Envoyez une requête, puis interrogez le résultat.
- Envoyer : faites un POST vers /v1/run et lisez le
idrenvoyé. - Interroger : faites un GET sur /v1/run/{id} jusqu’à ce que le statut soit
completed,failedoutimeout. - Récupérer : lisez
outputsdans la réponse terminée.
Choisissez votre modèle
Comparer les modèles
| Modèle | Type | Prix par défaut | Lancement |
|---|---|---|---|
Kling Video to AudioCe modèle KwaiVGI | Audio | $0.04 / exécution | 9 oct. 2025 |
KwaiVGI | Vidéo | $0.47 / exécution | 16 nov. 2026 |
KwaiVGI | Vidéo | $0.47 / exécution | 16 nov. 2026 |
KwaiVGI | Vidéo | $0.47 / exécution | 16 nov. 2026 |
KwaiVGI | Vidéo | $2.52 / exécution | 16 nov. 2026 |
KwaiVGI | Vidéo | $8.46 / exécution | 21 oct. 2026 |
Questions
FAQ
Comment appeler KwaiVGI Kling Video to Audio via SandBase ?
Créez une clé API SandBase, puis envoyez des requêtes avec l’identifiant de modèle "kwaivgi/kling-video/video-to-audio" à Unified Run API (/v1/run) sur https://api.sandbase.ai. Les exemples de requêtes sur cette page montrent la charge utile exacte.
Ai-je besoin d’un compte KwaiVGI distinct ?
Non. Une seule clé API SandBase et un seul solde vous donnent accès à KwaiVGI Kling Video to Audio et aux autres modèles du catalogue ; vous n’avez pas besoin de créer un compte KwaiVGI séparément.
