语音合成
发送文本并接收上游生成的音频。
POST
/v1/audio/speechscope · audio_tts请求示例#
curl "https://www.ackddos.store/v1/audio/speech" \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "your-public-model",
"input": "欢迎使用网关。",
"voice": "alloy",
"response_format": "mp3"
}' \
--output speech.mp3使用音频合成模型映射。voice 与 response_format 由上游支持,兼容字段名是 response_format。响应为音频数据,客户端按 Content-Type 保存或播放,不应作为 JSON 解码。
用量限制#
Token 限额密钥与 Token 限额套餐不支持此端点;请求、并发和用户/租户配额仍适用。