kling
テキストから音声へ
CometAPI の Kling Text to Audio API を使用して、テキストプロンプトを音声スタイル制御、再生時間オプション、ストリーミング対応出力付きの音声に変換します。
POST
Create a Kling text-to-audio task
このエンドポイントを使用すると、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.
呼び出す前に
promptは簡潔で直接的にしてくださいdurationは 3〜10 秒の範囲から始めてくださいcallback_urlとexternal_task_idは必須要件ではなく、任意の連携補助機能として扱ってください
タスクの流れ
タスクをポーリング
タスクが終了状態に達するまで、Kling 音声クエリパスを使用して Individual Queries を続けてください。
承認
Bearer token authentication. Use your CometAPI key.
ボディ
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.