Text to Audio
Użyj API Kling Text to Audio w CometAPI, aby konwertować prompty tekstowe na audio z kontrolą stylu głosu, opcjami długości i wyjściem gotowym do streamingu.
Użyj tego endpointu, aby wygenerować krótki klip audio z promptu tekstowego za pomocą 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.
Zanim wywołasz endpoint
- Utrzymuj
promptzwięzły i bezpośredni - Zacznij od
durationw zakresie od 3 do 10 sekund - Traktuj
callback_urliexternal_task_idjako opcjonalne pomocniki integracyjne, a nie podstawowe wymagania
Przepływ zadania
Prześlij zadanie audio
Odpytuj zadanie
Autoryzacje
Bearer token authentication. Use your CometAPI key.
Treść
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.