Skip to main content
POST
/
v3
/
glm-asr
GLM Audio to Text
curl --request POST \
  --url https://api.myrouter.ai/v3/glm-asr \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "file": "<string>",
  "prompt": "<string>",
  "hotwords": [
    {}
  ]
}
'
{
  "text": "<string>"
}
Transcribes audio files to text using the GLM-ASR-2512 model, with multi-language transcription support.

Request Headers

Content-Type
string
required
Enum: application/json
Authorization
string
required
Bearer authentication format: Bearer {{API Key}}.

Request Body

file
string
required
URL or Base64 encoded string of the audio file to transcribe. Supported audio formats: .wav / .mp3. Specifications: file size ≤ 25 MB, audio duration ≤ 30 seconds
prompt
string
For long text scenarios, you can provide previous transcription results as context. Recommended to be under 8000 characters.
hotwords
array
Hotword list to improve recognition accuracy for domain-specific vocabulary. Format example: [“person name”, “place name”]. Recommended not to exceed 100 entries.Array length: 0 - 100

Response

text
string
The complete transcribed content of the audio