Audio Transcription
Transcribe audio files to text using the OpenAI-compatible/v1/audio/transcriptions endpoint.
- Python
- Node.js
- cURL
Transcription Parameters
Word-Level Timestamps
Audio Translation
Translate audio from any language into English text:- Python
- cURL
Text-to-Speech
Convert text to natural-sounding speech:- Python
- Node.js
- cURL
TTS Parameters
Available Voices
Audio Chat (Multimodal Models)
Some models accept audio directly as a chat message input and can respond with spoken audio. Use the standard chat completions endpoint withinput_audio content parts.
Audio Input
Send audio alongside text in a chat message:- Python
- Node.js
Supported Input Audio Formats
Audio Output
Request spoken audio as part of the model response:audio field with base64-encoded audio:
Streaming Audio Output
Audio output can be streamed for real-time playback:Supported Models
Speech-to-Text
Text-to-Speech
Audio Chat
UseGET /v1/models?output_modalities=audio to discover models supporting audio output.
Token Pricing
Audio tokens are tracked separately inusage.prompt_tokens_details:
Audio tokens are priced differently from text tokens. Check
usage.cost in the response for the actual charge for each request.