Skip to main content
POST
Transcribe audio

Authorizations

Authorization
string
header
required

Enter the API key with the Bearer: prefix, e.g. "Bearer "

Path Parameters

workspaceID
string
required

The workspace ID used for billing and routing.

Pattern: ^[a-f0-9]{24}$

Body

model
string
required

The speech-to-text model to use.

The model must be one of the speech-to-text models supported by the API.

Example:

"openai/whisper-1"

input_audio
object
required

Audio data provided as a Base64-encoded string.

This object is used for JSON requests. Multipart requests should provide the audio through the file field instead.

language
string

The language of the input audio.

Must be a two-letter ISO-639-1 language code.

If omitted, the model may automatically detect the language.

Required string length: 2
Example:

"en"

response_format
enum<string>
default:json

The format of the transcription response.

json returns the standard transcription response.

verbose_json returns additional transcription information, such as language, duration, and timestamp information when supported by the selected model.

Available options:
json,
verbose_json
Example:

"json"

temperature
number<float>

Sampling temperature used during transcription.

Values must be between 0 and 1.

Required range: 0 <= x <= 1
Example:

0

timestamp_granularities
enum<string>[]

Specifies the timestamp granularities to include in the transcription response.

Supported values are word and segment.

Available options:
word,
segment
Example:

Response

Successfully transcribed the audio.

Transcription result returned by the speech-to-text model.

The exact fields may vary depending on the selected response_format and the capabilities of the selected model.

text
string

The transcribed text.

Example:

"Hello, this is a transcription test."

task
string

The transcription task.

Example:

"transcribe"

language
string

Detected or requested language.

Example:

"english"

duration
number<float>

Duration of the input audio in seconds.

Example:

3.52

segments
object[]

Transcription segments with timing information.

Available when supported by the selected model and when requested through timestamp_granularities.