Skip to main content
POST
/
openai
/
deployments
/
{deployment-id}
/
audio
/
transcriptions
Azure OpenAI Compatible Audio Transcription
curl --request POST \
  --url http://localhost:8080/openai/deployments/{deployment-id}/audio/transcriptions \
  --header 'Content-Type: multipart/form-data' \
  --form 'model=<string>' \
  --form 'language=<string>' \
  --form 'prompt=<string>' \
  --form 'response_format=<string>' \
  --form 'file_format=<string>' \
  --form file=@example-file
{
  "text": "<string>",
  "logprobs": [
    {
      "token": "<string>",
      "log_prob": 123
    }
  ],
  "usage": {
    "prompt_tokens": 123,
    "completion_tokens": 123,
    "total_tokens": 123
  }
}

Path Parameters

deployment-id
string
required

Azure deployment ID

Body

multipart/form-data
model
string
required

Model to use for transcription in 'provider/model' format

file
file
required

Audio file to transcribe

language
string

Language of the input audio

prompt
string

Optional text to guide the model's style or continue a previous audio segment

response_format
string

Format of the transcript output

file_format
string

The format of the audio file

Response

200 - application/json

Transcription result

text
string
logprobs
object[]
usage
object