Create a transcription
Transcribe audio into text with the OpenAI-compatible Yelu Audio Transcriptions API.
POST
Transcribes an uploaded audio file. This endpoint uses
Verbose formats can include language, duration, words, or segments. Text, SRT, and VTT formats return non-JSON bodies.
multipart/form-data, not JSON.
Endpoint
Headers
API key using the format
Bearer $YELU_API_KEY.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
Audio file to transcribe. Accepted formats and maximum size depend on the selected model and deployment limits.
An audio-transcription model ID available to your account, such as
whisper-1 when enabled.ISO 639-1 language code such as
en. Supplying the correct language can improve latency and accuracy.Optional context that guides spelling, terminology, or continuation. Do not use it as a security control.
json, text, srt, verbose_json, or vtt, subject to model support.Sampling temperature supported by the transcription model.
word or segment timestamps for compatible models and verbose responses.Response
Forresponse_format=json, the response contains the transcript:
Transcribed text.
Error codes
Last modified on July 13, 2026