跳到正文
语音合成OpenAI

GPT-4o mini TTS

OpenAI’s GPT-4o mini TTS: text to speech in eleven voices, with instructions for tone and pace.

模型 ID
openai/gpt-4o-mini-tts
Endpoint
POST /v1/audio/speech

价格

一次调用的费用,与官方价格并列:即模型厂商针对相同模型和相同设置公布的标价。

适用于Minu官方价格相比官方价格
所有请求每分钟$0.00375$0.015便宜 75%

语音合成按生成的音频时长计费,每次响应后扣费。未生成音频的请求不收费。

官方价格是模型厂商针对相同模型和相同设置公布的标价,按我们目录中的记录列出。价格可能变动,当前价格请以厂商自己的价格页面为准。

请求示例

官方 OpenAI SDK 可直接使用:将 baseURL 设为 https://api.minu.ai/v1,并使用您的 Minu 密钥。响应即为音频文件。

curl https://api.minu.ai/v1/audio/speech \
  -H "Authorization: Bearer $MINU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-4o-mini-tts",
    "voice": "alloy",
    "input": "Your order has shipped and will arrive on Friday."
  }' \
  --output speech.mp3

输入参数

发送包含 model、input(文本)和 voice 的 JSON 请求体,voice 为以下之一:alloy, ash, ballad, coral, echo, fable, nova, onyx, sage, shimmer, verse。instructions、response_format 和 speed 为可选项。