Skip to content

Transcriptions (OpenAI Native Format)

Transcribe audio into text in the same language. See also Text to Speech, Translations, and the Gemini native format.

Endpoint

POST /v1/audio/transcriptions

Upload the audio file using multipart/form-data.

Request parameters

ParameterTypeRequiredDescription
filefileYesAudio file (mp3 / wav / m4a, etc.)
modelstringYesRecognition model, e.g. whisper-1
languagestringNoAudio language (ISO-639-1), improves accuracy
response_formatstringNojson (default) / text / srt / vtt
temperaturenumberNoSampling temperature, default 0

Request example

bash
curl https://ai.youqi.tech/v1/audio/transcriptions \
  -H "Authorization: Bearer sk-YOUR_API_KEY" \
  -F file="@audio.mp3" \
  -F model="whisper-1"

Response example

json
{ "text": "This is the transcribed text." }

TIP

Use multipart/form-data for the binary upload, not JSON.