cURL
curl --request POST \ --url https://alltoken.aatest.online/v1/audio/speech \ --header 'Authorization: <authorization>' \ --header 'Content-Type: application/json' \ --data ' { "model": "<string>", "voice": "<string>", "input": "<string>" } '
{ "audio": {} }
文本转语音接口。
{ "model": "gpt-4o-mini-tts", "voice": "alloy", "input": "欢迎使用 AllTokens。" }