価格:対応するTTSプロバイダーに基づいて課金されます
Request
Body Params application/json
{
"text": "生活就像海洋,只有意志坚强的人才能到达彼岸",
"provider": "openai",
"voice": "alloy"
}
Request Code Samples
curl --location --request POST 'https://api.302.ai/302/v2/audio/tts?webhook&run_async=true' \
--header 'Authorization: Bearer sk-mfYQzy0XTFfz4P16vRE4gFrKK1Nly4TozsMqbbb9PSiJUvFO' \
--header 'Content-Type: application/json' \
--data-raw '{
"text": "生活就像海洋,只有意志坚强的人才能到达彼岸",
"provider": "openai",
"voice": "alloy"
}'
Responses
application/json {
"task_id": "cdc70175-11b4-4fe7-a179-27e637557cff",
"status": "pending",
"created_at": "2025-08-20T10:43:53.026393Z"
}
Modified at 2025-09-01 07:14:32