OpenAI: GPT-4o mini TTS
openai/gpt-4o-mini-tts
active
tts
1 provider
OpenAI's newest, most reliable text-to-speech model; steerable via instructions (accent, emotion, intonation, speed, tone, whispering).
AuthorOpenAI
Languages1 languages
VoicesLoading...
Response formatsMP3 · Opus · AAC · FLAC · WAV · PCM
Statusactive
Providers
Different providers can host the same model. Choose one provider when you need a fixed backend, or let routing select among them.
ProviderSlugPer 1M tokensLatencyiFor TTS, latency is measured as time to first byte of audio. For STT, latency is measured as time to first token.ModesUptime
OpenAI
6 params
openai
$12
—
Synchronous
Supported languages
1 languages
English
en
Voices
Features
Text to speech
Generates spoken audio from text input.
text_to_speech
Streaming
Supports streaming audio output.
streaming
Synchronous
Synthesizes speech from fully-submitted text in a single synchronous request.
synchronous
Steerable voice
Voice can be steered via natural-language instructions (accent, emotion, tone, speed).
steerable_voice
Code
ElevenLabs SDK streaming TTS
Routes the ElevenLabs SDK through allmodels and streams the audio response.
import { ElevenLabsClient } from "elevenlabs";
const client = new ElevenLabsClient({
apiKey: process.env.ALLMODELS_API_KEY,
baseUrl: "https://api.allmodels.io/el"
});
const stream = await client.textToSpeech.stream("voice_id", {
text: "I'm sorry, Dave. I'm afraid I can't do that.",
modelId: "openai/gpt-4o-mini-tts",
outputFormat: "mp3_44100_128"
}, {
queryParams: {
provider: {
"only": [
"openai"
]
}
}
});
const reader = stream.getReader();
for (;;) {
const { done, value } = await reader.read();
if (done) break;
// Write value to your response, file, or audio playback pipeline.
}
