Skip to main content
POST
Create transcription

Authorizations

Authorization
string
header
required

API key as bearer token in Authorization header

Body

Speech-to-text request input. Accepts a JSON body with input_audio containing base64-encoded audio.

input_audio
object
required

Base64-encoded audio to transcribe

Example:
model
string
required

STT model identifier

Example:

"openai/whisper-large-v3"

language
string

ISO-639-1 language code (e.g., "en", "ja"). Auto-detected if omitted.

Example:

"en"

provider
object

Provider-specific passthrough configuration

response_format
enum<string>

Output format. "json" (default) returns { text, usage }. "verbose_json" additionally returns task, language, duration, and segment-level timestamps; only supported by OpenAI-compatible providers.

Available options:
json,
verbose_json
Example:

"json"

temperature
number<double>

Sampling temperature for transcription

Example:

0

timestamp_granularities
enum<string>[]

Timestamp detail levels to include when response_format is "verbose_json". "segment" returns segment-level timestamps; "word" additionally returns word-level timestamps in the words array. Ignored unless response_format is "verbose_json".

A timestamp detail level for verbose_json transcription responses.

Available options:
word,
segment
Example:

Response

Transcription result

STT response containing transcribed text and optional usage statistics

text
string
required

The transcribed text

Example:

"Hello, this is a test of OpenAI speech-to-text transcription. The weather is sunny today and the temperature is around 72 degrees."

duration
number<double>

Duration of the input audio in seconds, present when response_format is verbose_json

Example:

9.2

language
string

Detected or forced language, present when response_format is verbose_json

Example:

"english"

segments
object[]

Timestamped transcript segments, present when response_format is verbose_json

task
string

The task performed, present when response_format is verbose_json

Example:

"transcribe"

usage
object

Aggregated usage statistics for the request

Example:
words
object[]

Timestamped words, present when the provider returns word-level timestamps