Utwórz Kling 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.
Zanim go wywołasz
- Utrzymuj
promptzwięzły i bezpośredni - Zacznij od
durationmiędzy 3 a 10 sekundami - Traktuj
callback_urliexternal_task_idjako opcjonalne elementy pomocnicze integracji, a nie kluczowe wymagania
Przepływ zadania
Prześlij zadanie audio
Odpytuj zadanie
Zapisz wynik audio
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.