Speechbase
Providers

OpenAI

OpenAI text-to-speech through the Speechbase gateway — gpt-4o-mini-tts, tts-1, and tts-1-hd.

Prefixopenai
Default modelgpt-4o-mini-tts
Provider keyConnect under Provider Keys

Route to OpenAI by prefixing the model with openai/. Omit the model and pass openai alone to use the default, gpt-4o-mini-tts.

Models

ModelStreamingAudio tagsTimestampsMax input
gpt-4o-mini-ttsYesYesGateway-generated4096
tts-1YesGateway-generated4096
tts-1-hdYesGateway-generated4096

Usage

curl -X POST https://api.speechbase.ai/v1/audio/speech \
  -H "Authorization: Bearer $SPEECHBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "mode": "inline",
    "model": "openai/gpt-4o-mini-tts",
    "voice": "alloy",
    "text": "Hello from Speechbase!",
    "output": "mp3"
  }' --output hello.mp3

Built-in voices: alloy, ash, ballad, coral, echo, fable, nova, onyx, sage, shimmer, verse. The older tts-1 and tts-1-hd models don't support ballad or verse.

Steering delivery

gpt-4o-mini-tts accepts an instructions provider option that shapes tone, pacing, and emotion:

{
  "mode": "inline",
  "model": "openai/gpt-4o-mini-tts",
  "voice": "coral",
  "text": "Your order has shipped.",
  "providerOptions": {
    "instructions": "Speak in a warm, upbeat customer-support tone."
  }
}

Provider options

Anything in providerOptions is forwarded to the OpenAI speech API unchanged, using OpenAI's own field names (for example speed or response_format).

On this page