Current compatibility
Realtime WebSocket transcription is not part of this preview. File
transcription waits for the complete upload and returns one response. Speech
generation streams raw audio bytes, not Server-Sent Events.
Transcribe an audio file
The transcription endpoint accepts one audio file asmultipart/form-data.
Files may be up to 25 MB and must be FLAC, MP3/MPEG/MPGA, MP4/M4A, OGG, WAV,
or WebM.
json. Use response_format=verbose_json to
request language, duration, and segment metadata. Word or segment
timestamps are available only with verbose_json:
Stream text-to-speech
The speech endpoint begins returning raw audio while synthesis is still in progress. Read the response body as a byte stream instead of waiting for a prediction or parsing JSON. The current preview profile supports:response_format is omitted, it defaults to mp3. The response
Content-Type identifies the returned audio:
- MP3:
audio/mpeg - PCM:
audio/pcmwith its sample rate and channel parameters
X-Execution-ID for support and billing
correlation. When the provider supplies one, X-Generation-Id is included as
well.
Validation and errors
Both endpoints use the OpenAI-compatible error envelope. Unsupported models, voices, formats, and fields return400 before a provider request is sent.
Common statuses include:
Supply API keys only as
Authorization: Bearer .... Query-string API keys
are rejected so credentials do not leak into URLs or access logs.