Text ke Audio
Gunakan Kling Text to Audio API di CometAPI untuk mengonversi prompt teks menjadi audio dengan kontrol gaya suara, opsi durasi, dan output yang siap untuk streaming.
Gunakan endpoint ini untuk menghasilkan klip audio singkat dari prompt teks melalui Kling.Documentation Index
Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt
Use this file to discover all available pages before exploring further.
Sebelum memanggilnya
- Jaga agar
prompttetap ringkas dan langsung - Mulai dengan
durationantara 3 dan 10 detik - Perlakukan
callback_urldanexternal_task_idsebagai bantuan integrasi opsional, bukan persyaratan inti
Alur tugas
Poll tugas
Otorisasi
Bearer token authentication. Use your CometAPI key.
Body
Text prompt describing the audio to generate. Max 200 characters.
Duration of the generated audio in seconds. Range: 3.0–10.0, supports one decimal place.
Optional user-defined task ID for your own tracking. Does not replace the system-generated task ID. Must be unique per account.
Webhook URL for task status notifications. The server sends a callback when the task status changes.