Skip to main content
POST
Typescript

Overview

Transcribe audio files to text using speech-to-text models. Supports multiple audio formats including mp3, mp4, wav, and more. Note: OpenAI only endpoint.

Usage Examples

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

multipart/form-data
file
file
required
model
string
required
language
string | null
prompt
string | null
response_format
string | null
temperature
number | null

Response

Successful Response

Represents a verbose json transcription response returned by model, based on the provided input.

Fields:

  • language (required): str
  • duration (required): float
  • text (required): str
  • words (optional): list[TranscriptionWord]
  • segments (optional): list[TranscriptionSegment]
  • usage (optional): TranscriptTextUsageDuration
language
string
required

The language of the input audio.

duration
number
required

The duration of the input audio.

text
string
required

The transcribed text.

words
TranscriptionWord · object[]

Extracted words and their corresponding timestamps.

segments
TranscriptionSegment · object[]

Segments of the transcribed text and their corresponding details.

usage
TranscriptTextUsageDuration · object

Usage statistics for models billed by audio input duration.

Last modified on March 10, 2026