Audio Speech API quick reference
POST /v1/audio/speechgpt-4o-mini-tts-2025-12-15gpt-4o-mini-ttstts-1tts-1-hdmodel: speech modelinput: text to synthesize (max 4096 characters)voice: built-in voice nameinstructions: optional style directions (not supported for tts-1 or tts-1-hd)response_format: mp3, opus, aac, flac, wav, or pcmspeed: 0.25 to 4.0alloy, ash, ballad, cedar, coral, echo, fable, marin, nova, onyx, sage, shimmer, versemp3.pcm is raw 24 kHz 16-bit little-endian samples (no header).wav includes a header (better for quick playback).