> ## Documentation Index
> Fetch the complete documentation index at: https://docs.myrouter.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# GLM Audio to Text

Transcribes audio files to text using the GLM-ASR-2512 model, with multi-language transcription support.

## Request Headers

<ParamField header="Content-Type" type="string" required={true}>
  Enum: `application/json`
</ParamField>

<ParamField header="Authorization" type="string" required={true}>
  Bearer authentication format: Bearer \{\{API Key}}.
</ParamField>

## Request Body

<ParamField body="file" type="string" required={true}>
  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
</ParamField>

<ParamField body="prompt" type="string">
  For long text scenarios, you can provide previous transcription results as context. Recommended to be under 8000 characters.
</ParamField>

<ParamField body="hotwords" type="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
</ParamField>

## Response

<ResponseField name="text" type="string" required={false}>
  The complete transcribed content of the audio
</ResponseField>
