Text-to-Audio(テキスト音響効果生成)
Request
Body Params application/json
{
"prompt": "ad eiusmod cillum irure mollit",
"duration": 3,
"type": "text-to-audio"
}
Request Code Samples
curl --location --request POST 'https://api.302.ai/klingai/v1/audio/text-to-audio' \
--header 'Authorization: Bearer sk-mfYQzy0XTFfz4P16vRE4gFrKK1Nly4TozsMqbbb9PSiJUvFO' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "ad eiusmod cillum irure mollit",
"duration": 3,
"type": "text-to-audio"
}'
Responses
application/json Modified at 2025-08-26 02:19:20