创建语音 gpt-4o-mini-tts
POST https://aiapi.winfull.top/v1/audio/speech 官方文档:https://platform.openai.com/docs/guides/text-to-speech
请求参数
Authorization 在 Header 添加参数 Authorization ,其值为在 Bearer 之后拼接 Token 示例: Authorization: Bearer ******************** Body 参数application/json 生成代码 示例
{
"model": "gpt-4o-mini-tts",
"input": "The quick brown fox jumped over the lazy dog.",
"voice": "alloy"
}请求示例代码
Shell JavaScript Java Swift Go PHP Python HTTP C C# Objective-C Ruby OCaml Dart R 请求示例请求示例 Shell JavaScript Java Swift cURLcURL-WindowsHttpiewgetPowerShell
curl --location --request POST 'https://aiapi.winfull.top/v1/audio/speech' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "gpt-4o-mini-tts",
"input": "The quick brown fox jumped over the lazy dog.",
"voice": "alloy"
}'返回响应
🟢200成功 application/json生成代码 Body 生成代码 示例
{}修改于 2025-08-29 04:07:29
