Skip to main content
POST
Transcribes an uploaded audio file. This endpoint uses multipart/form-data, not JSON.

Endpoint

Headers

Authorization
string
required
API key using the format Bearer $YELU_API_KEY.
Content-Type
string
required
multipart/form-data with a generated boundary. Let curl, Fetch, or your HTTP library set this header; do not write the boundary manually.

Request body

file
file
required
Audio file to transcribe. Accepted formats and maximum size depend on the selected model and deployment limits.
model
string
required
An audio-transcription model ID available to your account, such as whisper-1 when enabled.
language
string
ISO 639-1 language code such as en. Supplying the correct language can improve latency and accuracy.
prompt
string
Optional context that guides spelling, terminology, or continuation. Do not use it as a security control.
response_format
string
default:"json"
json, text, srt, verbose_json, or vtt, subject to model support.
temperature
number
default:"0"
Sampling temperature supported by the transcription model.
timestamp_granularities[]
string[]
word or segment timestamps for compatible models and verbose responses.

Response

For response_format=json, the response contains the transcript:
text
string
required
Transcribed text.
Verbose formats can include language, duration, words, or segments. Text, SRT, and VTT formats return non-JSON bodies.
openAsBlob is available in Node.js 20 and later. Do not set Content-Type manually for multipart requests; Fetch adds the required boundary.

Error codes

Last modified on July 13, 2026