Kling Create Voice
kwaivgi/kling-video/create-voiceKling 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.
- Harga dasar
- $0.04USD / run
- Eksekusi
- async
- Jenis model
- audio
- Field input
- 1
Coba model ini
Playground
Output Anda akan muncul di sini
Lengkapi input, lalu klik Run.
Kartu model
Spesifikasi
Harga
- Harga dasar
- $0.04 / run
Konteks & modalitas
- Input
- Didefinisikan oleh skema
- Output
- audio
Kemampuan
- Chat
- Tidak didukung
- Vision
- Tidak didukung
- Penalaran
- Tidak didukung
- Output terstruktur
- Tidak didukung
- Pemanggilan fungsi
- Tidak didukung
- Input audio
- Tidak didukung
Akses
- Penyedia
- KwaiVGI
- Model ID
- kwaivgi/kling-video/create-voice
- Eksekusi
- async
- Base URL
- https://api.sandbase.ai
- API
- Unified Run API
- Endpoint
- /v1/run
README 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
| Field | Type | Default | Notes |
|---|---|---|---|
voice_url | audio file or URL, required | โ | .mp3/.wav audio or .mp4/.mov video, 5โ30 seconds, one speaker, no background noise. |
Output
| Field | Notes |
|---|---|
voice_id | Custom voice ID for Kling video generation. |
url | Preview clip of the voice, when the route returns one. |
Billing
$0.035 per voice created.
| Request | Price |
|---|---|
| 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.
Mulai membangun
Kirim permintaan pertama Anda
Endpoint yang kompatibel dengan OpenAI dengan autentikasi dan pelacakan penggunaan terpadu.
# 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"Skema Input
1 parameter ยท 1 wajib ยท 0 opsional
| Parameter | Tipe | Wajib | Deskripsi |
|---|---|---|---|
voice_url | string | Wajib | Voice sample file or URL: .mp3/.wav audio or .mp4/.mov video, 5-30 seconds of clean speech from a single speaker. |
Skema Output
| Field | Tipe | Deskripsi |
|---|---|---|
id | string | Pengidentifikasi unik untuk tugas generasi |
status | string | Status tugas: pending, running, completed, failed, timeout |
model | string | Model yang digunakan untuk generasi |
outputs | array | Array item output |
outputs[].url | string | URL artefak yang dihasilkan |
outputs[].content_type | string | Tipe MIME (mis. image/png, video/mp4) |
error | object | null | Detail error jika gagal, null jika berhasil |
error.type | string | Kode jenis error yang dapat dibaca mesin |
error.message | string | Deskripsi error yang dapat dibaca manusia |
Alur Kerja Asinkron
Model ini berjalan secara asinkron. Kirim permintaan, lalu polling untuk hasilnya.
- Kirim: POST ke /v1/run dan baca
idyang dikembalikan. - Polling: GET /v1/run/{id} sampai status menjadi
completed,failed, atautimeout. - Ambil: baca
outputsdari response yang selesai.
Pilih model Anda
Bandingkan model
| Model | Tipe | Harga default | Rilis |
|---|---|---|---|
Kling Create VoiceModel ini KwaiVGI | Audio | $0.04 / run | 16 Des 2025 |
KwaiVGI | Video | $0.47 / run | 16 Nov 2026 |
KwaiVGI | Video | $0.47 / run | 16 Nov 2026 |
KwaiVGI | Video | $0.47 / run | 16 Nov 2026 |
KwaiVGI | Video | $2.52 / run | 16 Nov 2026 |
KwaiVGI | Video | $8.46 / run | 21 Okt 2026 |
Pertanyaan
FAQ
Bagaimana cara memanggil KwaiVGI Kling Create Voice melalui SandBase?
Buat kunci API SandBase, lalu kirim permintaan dengan model ID "kwaivgi/kling-video/create-voice" ke Unified Run API (/v1/run) di https://api.sandbase.ai. Contoh permintaan di halaman ini menunjukkan payload yang tepat.
Apakah saya memerlukan akun KwaiVGI terpisah?
Tidak. Satu kunci API dan saldo SandBase memberi Anda akses ke KwaiVGI Kling Create Voice dan model lain di katalog; Anda tidak perlu mendaftar ke KwaiVGI secara terpisah.
