models/OpenAI/TTS-1

TTS-1

audio-tts

OpenAI's text-to-speech model optimized for real-time use with low latency.

slug · openai/tts-1provider · OpenAIfamily · released · 2026-04-13

Quickstart

curl https://api.aigateway.sh/v1/audio/speech \
  -H "Authorization: Bearer $AIGATEWAY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"openai/tts-1","voice":"alloy","input":"Hello world."}'

Capabilities

Strengths

  • Natural speech synthesis

Use cases

VoiceoversIVRAudiobooks

Pricing

Per 1K chars$0.015
You pay pass-through · 5% applied at credit top-up, not per-call.
Try in playground →CompareAPI referenceSee usage ranking →

Collections

More audio models →More from OpenAIFrontier models →Free-tier models →
API schema

Call TTS-1 from any OpenAI SDK

POST https://api.aigateway.sh/v1/audio/speech·Content-Type: application/json·Auth: Bearer sk-aig-...

Request body

json
{
  "model": "openai/tts-1",
  "input": "Hello from AIgateway.",
  "voice": "alloy",
  "format": "mp3",        // mp3 | wav | flac | opus
  "speed": 1.0
}

Response

json
// Binary audio stream in the requested format (mp3 by default).
// Content-Type: audio/mpeg  (or audio/wav, audio/flac, audio/opus)
// Read the response body directly to a file.

Quickstart

from openai import OpenAI
client = OpenAI(base_url="https://api.aigateway.sh/v1", api_key="sk-aig-...")

r = client.audio.speech.create(model="openai/tts-1", voice="alloy", input="Hello world.")
r.stream_to_file("out.mp3")

Errors

401authentication_errorInvalid or missing API key
402insufficient_creditsWallet empty (PAYG only)
404not_foundUnknown model or endpoint
429rate_limit_errorOver per-minute limit — see Retry-After header
500server_errorUpstream provider failed (retryable)
503service_unavailableUpstream saturated (retryable)
Full docs →API reference →OpenAPI spec →llms.txt →