Kling
Tekst naar audio
Gebruik de Kling Text to Audio API in CometAPI om tekstprompts om te zetten in audio met stemstijlinstellingen, duuropties en uitvoer die klaar is voor streaming.
POST
Create a Kling text-to-audio task
Gebruik dit eindpunt om een korte audioclip te genereren op basis van een tekstprompt via Kling.
Voordat je het aanroept
- Houd
promptbeknopt en direct - Begin met
durationtussen 3 en 10 seconden - Beschouw
callback_urlenexternal_task_idals optionele integratiehulpmiddelen, niet als kernvereisten
Taakverloop
Poll de taak
Ga verder met Individual Queries via het Kling audio query-pad totdat de taak een terminale status bereikt.
Autorisaties
Bearer token authentication. Use your CometAPI key.
Body
application/json
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.