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

Kling Create Voice

kwaivgi/kling-video/create-voice

Kling Create Voice turns a 5-30 second voice sample into a reusable custom voice ID. Pass the returned voice_id in voice_ids of kwaivgi/kling-video/v2.6/pro/image-to-video to make generated characters speak in that voice.

Prix de base
$0.04USD / exécution
Exécution
async
Type de modèle
audio
Champs d'entrée
1
Route de production

Essayer le modèle

Bac à sable

Ouvrir le Playground
Entrée
Voice sample file or URL: .mp3/.wav audio or .mp4/.mov video, 5-30 seconds of clean speech from a single speaker.
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/create-voice
Exécution
async
URL de base
https://api.sandbase.ai
API
Unified Run API
Point de terminaison
/v1/run

README de l'API

Kling Create Voice

Kling Create Voice registers a custom voice from a 5–30 second sample of one clean speaker and returns a voice_id. Use it in voice_ids of kwaivgi/kling-video/v2.6/pro/image-to-video and reference it in the prompt as <<<voice_1>>>.

Fields

FieldTypeDefaultNotes
voice_urlaudio file or URL, required—.mp3/.wav audio or .mp4/.mov video, 5–30 seconds, one speaker, no background noise.

Output

FieldNotes
voice_idCustom voice ID for Kling video generation.
urlPreview clip of the voice, when the route returns one.

Billing

$0.035 per voice created.

RequestPrice
One voice$0.035
10 voices$0.35

Failed runs are not charged.

Also on SandBase

Related: kwaivgi/kling-video/v2.6/pro/image-to-video, kwaivgi/kling-tts.

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/create-voice
# 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/create-voice",
  "voice_url": "https://static.sandbase.ai/examples/kwaivgi/kling-video/create-voice/input_voice_url_0.wav"
}
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

1 paramètres · 1 obligatoires · 0 facultatifs

ParamètreTypeObligatoireDescription
voice_urlstringObligatoireVoice sample file or URL: .mp3/.wav audio or .mp4/.mov video, 5-30 seconds of clean speech from a single speaker.
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écution16 déc. 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 Create Voice via SandBase ?

Créez une clé API SandBase, puis envoyez des requêtes avec l’identifiant de modèle "kwaivgi/kling-video/create-voice" à 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 Create Voice et aux autres modèles du catalogue ; vous n’avez pas besoin de créer un compte KwaiVGI séparément.