用途
用于把输入文本合成为语音。请求
- Method:
POST - URL:
https://api.hubto.ai/v1/audio/speech - Auth:
Authorization: Bearer YOUR_API_KEY - Content-Type:
application/json
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
文本转语音接口。
POSThttps://api.hubto.ai/v1/audio/speechAuthorization: Bearer YOUR_API_KEYapplication/json{
"model": "gpt-5.4-tts",
"voice": "alloy",
"input": "欢迎使用 HubTo。"
}
curl https://api.hubto.ai/v1/audio/speech \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "gpt-5.4-tts",
"voice": "alloy",
"input": "欢迎使用 HubTo。"
}'