Skip to content
Dashboard

TTS-1

TTS-1 is OpenAI's text-to-speech model optimized for real-time use, converting text into natural-sounding audio across built-in voices and multiple output formats at low latency.

Speech
index.ts
import { experimental_generateSpeech as generateSpeech } from 'ai';
import { gateway } from '@ai-sdk/gateway';
import { writeFile } from 'node:fs/promises';
const result = await generateSpeech({
model: gateway.speechModel('openai/tts-1'),
text: 'Hello from the Vercel AI Gateway!',
voice: 'alloy',
});
await writeFile('speech.mp3', result.audio.uint8Array);

Playground

Try out TTS-1 by OpenAI. Usage is billed to your team at API rates. Free users (those who haven't made a payment) get $5 of credits every 30 days.

openai logo
Text
The text the model will read aloud.
Voice
openai logo

Your generated audio will appear here

Providers

Route requests across multiple providers. Copy a provider slug to set your preference. Visit the docs for more info. Using a provider means you agree to their terms, listed under Legal.

Provider
Input
Capabilities
ZDR
No Training
Release Date
OpenAI
Legal:Terms
Privacy
$15/M chars
11/06/2023

More models by OpenAI

Model
Context
Latency
Throughput
Input
Output
Cache
Web Search
Capabilities
Providers
ZDR
No Training
Release Date
1.1M
3.6s
90tps
$5/M
$30/M
Read:
$0.5/M
Write:
$6.25/M
$10/K
+ input costs
+4
azure logo
openai logo
07/09/2026
1.1M
0.9s
161tps
$1/M
$6/M
Read:
$0.1/M
Write:
$1.25/M
$10/K
+ input costs
+4
azure logo
openai logo
07/09/2026
1M
0.5s
136tps
$5/M
$30/M
Read:
$0.5/M
Write:
$10/K
+ input costs
+4
azure logo
bedrock logo
openai logo
04/24/2026
400K
1.0s
139tps
$0.75/M
$4.50/M
Read:$0.07/M
Write:
$10/K
+ input costs
+4
azure logo
openai logo
03/17/2026
1.1M
3.0s
91tps
$2.50/M
$15/M
Read:
$0.25/M
Write:
$10/K
+ input costs
+4
azure logo
openai logo
03/05/2026
400K
3.9s
161tps
$0.25/M
$2/M
Read:$0.03/M
Write:
$14/K
+ input costs
+4
azure logo
openai logo
08/07/2025

About TTS-1

TTS-1 debuted on November 6, 2023 at OpenAI's first DevDay, alongside GPT-4 Turbo and the DALL-E 3 API. The release included two variants: TTS-1, optimized for real-time use, and tts-1-hd, optimized for audio quality.

The model ships with built-in voices, including alloy, echo, fable, onyx, nova, and shimmer, each with a distinct character. Output formats cover MP3, Opus, AAC, and FLAC, and playback speed is adjustable from 0.25x to 4x. Pricing is per character of input text, which keeps cost estimation simple: count the characters in your script.

Through AI Gateway, you call TTS-1 with the AI SDK's generateSpeech function. The result returns audio data you can save, serve, or play directly, all behind AI Gateway's authentication, observability, and spend controls.

What To Consider When Choosing a Provider

  • Configuration: Audio support on AI Gateway is in beta. Speech generation runs through the AI SDK's generateSpeech function, where you set the text, a voice such as alloy, and an output format. If you're producing narration or other polished audio rather than interactive responses, tts-1-hd trades some speed for higher audio quality.
  • Zero Data Retention: AI Gateway does not currently support Zero Data Retention for this model. See the documentation for models that support ZDR.
  • Authentication: AI Gateway authenticates requests using an API key or OIDC token. You do not need to manage provider credentials directly.

When to Use TTS-1

Best for

  • Interactive voice responses: Low-latency speech for apps where speed beats studio polish
  • Accessibility features: Reading interfaces that speak content on demand
  • Request-time audio: Notifications, IVR prompts, and short-form clips generated as needed
  • Voice output prototyping: Testing spoken interfaces before committing to a realtime stack

Consider alternatives when

  • Polished audio production: tts-1-hd delivers higher audio quality when latency is negotiable
  • Two-way voice conversation: The gpt-realtime family handles live speech-to-speech directly
  • Audio-first workflows: gpt-4o-transcribe and whisper-1 cover the transcription direction

Conclusion

TTS-1 is the fast, economical way to give your app a voice through AI Gateway. Use TTS-1 for interactive and request-time speech, and switch to tts-1-hd when the audio itself is the deliverable.