GPT-4o mini TTS API

openai/gpt-4o-mini-tts
GPT-4o-mini-TTS leverages the GPT-4o mini transformer-based architecture, optimized for speech synthesis.
Output
Released
Jan 5, 2026

Overview

Overview

GPT-4o-mini-TTS is a state-of-the-art text-to-speech (TTS) model built on the GPT-4o mini architecture. It transforms text into high-quality, realistic speech featuring natural intonation and expressiveness. The model offers robust multilingual support and customizable voice parameters, making it ideal for diverse TTS applications.

Technical Specifications

  • Model Type: Based on GPT-4o mini architecture optimized for text-to-speech
  • Style Control: Customizable tone, emotion, pacing, accent via prompt instructions
  • Delivery Modes: Supports synchronous and streaming audio generation

Performance Benchmarks

  • Realistic voice quality with natural prosody and intonation tested on standard TTS datasets
  • Low latency enabling real-time interaction with average streaming delay under 100ms
  • High intelligibility scores across 40+ international languages
  • Voice customization parameters result in expressive and emotionally varied outputs
  • Robust multilingual performance validated in noisy and accented speech synthesis environments

Key Features

  • Converts text to speech with natural, human-like intonation
  • Supports 11 built-in voices spanning multiple styles and genders
  • Covers more than 40 languages and dialects (according to Whisper language list)
  • Adjustable accent, emotion, intonation, speed, and timbre settings
  • Outputs audio in MP3, WAV, OPUS, FLAC, PCM, and other formats
  • Enables real-time speech synthesis and streaming audio support
  • Multi-language support with seamless voice switching

API Pricing

  • $0.00078 per 1K characters

Use Cases

  • Voice assistants and conversational agents requiring natural multilingual speech
  • Audiobook and e-learning content generation with adjustable emotion and pace
  • Accessibility tools for visually impaired users needing realistic speech output
  • Real-time communication aids and live broadcast voice synthesis
  • Custom voice branding and multimedia voiceover production

Code Sample

Comparison with Other Models

vs Google WaveNet: Google WaveNet offers extremely high-fidelity audio but lacks GPT-4o-mini’s broad language and customization flexibility. GPT-4o-mini-TTS enables adjustable emotional intonation and real-time streaming, which WaveNet generally does not support.

vs OpenAI Whisper TTS: Whisper TTS focuses primarily on speech recognition with limited TTS development, while GPT-4o-mini-TTS specializes in expressive, multi-language speech synthesis with multiple voice options.

vs Amazon Polly: Amazon Polly provides many voices and languages but is less flexible in real-time streaming and fine control of emotional parameters compared to GPT-4o-mini-TTS. GPT-4o-mini-TTS offers richer customization and open domain adaptability.

vs Microsoft Azure TTS: Azure TTS delivers competitive quality but may have higher latency. GPT-4o-mini-TTS excels in low-latency streaming and supports a larger number of languages and voice customizations.

API Integration

Accessible via AI/ML API. Documentation: available here.

Uptime and performance

  • Uptime (24h): 40.0%
  • Uptime (7d): 84.0%
  • Availability (24h): 12.0%
  • Error rate (24h): 88.0%

Measured on the AI/ML API gateway across live traffic. Figures are medians unless stated. Last updated 2026-10-12.

Use cases

  • Voice assistants and conversational agents requiring natural multilingual speech
  • Audiobook and e-learning content generation with adjustable emotion and pace
  • Accessibility tools for visually impaired users needing realistic speech output
  • Real-time communication aids and live broadcast voice synthesis
  • Custom voice branding and multimedia voiceover production

‍

How to use GPT-4o mini TTS API

Install any OpenAI-compatible SDK, point it at api.aimlapi.com/v1, and set the model to openai/gpt-4o-mini-tts.
import requests

r = requests.post(
    "https://api.aimlapi.com/v1/tts",
    headers={"Authorization": "Bearer " + AIMLAPI_KEY},
    json={
      "model": "openai/gpt-4o-mini-tts",
      "text": "Hello from AI/ML API",
      "voice": "alloy"
    },
)
print(r.json()["audio"])  # URL to the generated audio
const r = await fetch("https://api.aimlapi.com/v1/tts", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "model": "openai/gpt-4o-mini-tts",
    "text": "Hello from AI/ML API",
    "voice": "alloy"
  }),
});
const { audio } = await r.json();
console.log(audio); // URL to the generated audio
curl -X POST https://api.aimlapi.com/v1/tts \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"openai/gpt-4o-mini-tts","text":"Hello from AI/ML API","voice":"alloy"}'

# the JSON response contains "audio" — a URL to the generated speech

OpenAI-compatible — swap the base URL and it works with your existing SDK.

GPT-4o mini TTS API Pricing

TypePrice
Input
$0.6 / 1M characters
Output

GPT-4o mini TTS vs other models

ModelInputOutputContextBest for
$0.6 / 1M characters
Speech synthesis
$100 / 1M characters
$130 / 1M
Speech synthesis
$100 / 1M characters
$0.13 / 1M tokens
Speech synthesis
$60 / 1M characters
$0.078 / 1M tokens
Speech synthesis
$10 / 1M characters
$0.013 / 1M tokens
Speech synthesis

Frequently asked questions

GPT-4o mini TTS takes text as input and returns audio.

GPT-4o mini TTS became available on January 5, 2026.

GPT-4o mini TTS is priced at input $0.78 / 1M characters.

GPT-4o mini TTS was built by OpenAI.

Send a request to https://api.aimlapi.com/v1/tts with openai/gpt-4o-mini-tts as the model id.

Yes. GPT-4o mini TTS is served through AI/ML API, so the same key and endpoint format used for other models applies.

It accepts up to 2000 input tokens per request.

Start building with GPT-4o mini TTS

Get API Key
1000+ models, one API.