Sand AISand AI MAGI-2MAGI-2 est maintenant sur SandBase : vidéo 1080p avec audio natifEssayer maintenant

Kling Video to Audio

kwaivgi/kling-video/video-to-audio

Kling 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
Route de production

Essayer le modèle

Bac à sable

Ouvrir le Playground
Entrée
Video file or URL to add sound to. Only .mp4 and .mov, up to 100 MB, 3–20 seconds long.
Optional sound effect description, up to 200 characters.
Optional background music description, up to 200 characters.
Enhances detailed sound effects for immersive ASMR-style content.
SortiePrêt

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

FieldTypeDefaultNotes
videovideo file or URL, required—.mp4 or .mov, up to 100 MB, 3–20 s.
sound_effect_promptstring, up to 200 chars—Optional, up to 200 characters.
background_music_promptstring, up to 200 chars—Optional, up to 200 characters.
asmr_modebooleanfalseStronger detail for close-up sounds.

Output

FieldNotes
urlMP3 soundtrack.
video_urlThe input video with the new audio.

Billing

$0.035 per video.

RequestPrice
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.

API de production
point de terminaison Unified Run API
https://api.sandbase.ai/v1/run
ID du modèle
kwaivgi/kling-video/video-to-audio
# 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"
01

Schéma d'entrée

4 paramètres · 1 obligatoires · 3 facultatifs

ParamètreTypeObligatoireDescription
videostringObligatoireVideo file or URL to add sound to. Only .mp4 and .mov, up to 100 MB, 3–20 seconds long.
asmr_modebooleanFacultatifEnhances detailed sound effects for immersive ASMR-style content. · Par défaut : false
sound_effect_promptstringFacultatifOptional sound effect description, up to 200 characters. · Longueur max. : 200
background_music_promptstringFacultatifOptional background music description, up to 200 characters. · Longueur max. : 200
02

Schéma de sortie

ChampTypeDescription
idstringIdentifiant unique de la tâche de génération
statusstringStatut de la tâche : pending, running, completed, failed, timeout
modelstringModèle utilisé pour la génération
outputsarrayTableau des éléments de sortie
outputs[].urlstringURL de l'artefact généré
outputs[].content_typestringType MIME (par ex. image/png, video/mp4)
errorobject | nullDétails de l'erreur en cas d'échec, null en cas de succès
error.typestringCode de type d'erreur lisible par machine
error.messagestringDescription 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.

  1. Envoyer : faites un POST vers /v1/run et lisez le id renvoyé.
  2. Interroger : faites un GET sur /v1/run/{id} jusqu’à ce que le statut soit completed, failed ou timeout.
  3. Récupérer : lisez outputs dans la réponse terminée.

Choisissez votre modèle

Comparer les modèles

Tous les modèles d’image et de vidéo
ModèleTypePrix par défautLancement
KwaiVGIAudio$0.04 / exécution9 oct. 2025
KwaiVGIVidéo$0.47 / exécution16 nov. 2026
KwaiVGIVidéo$0.47 / exécution16 nov. 2026
KwaiVGIVidéo$0.47 / exécution16 nov. 2026
KwaiVGIVidéo$2.52 / exécution16 nov. 2026
KwaiVGIVidéo$8.46 / exécution21 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.