Transcribe audio
glm/glm-asr-2512Turn a short recording into text.
- second
- $0.00008
- GLM
- 5 min
Overview
Takes a short audio recording and returns what was said as text. The audio is sent as base64 and the gateway builds the upload for you, so no multipart handling is needed on the caller's side. Recordings must be brief and modest in size; longer material should be split and submitted in pieces. Billing counts the seconds of audio, measured from the recording itself when it carries a readable header and from the duration you declare otherwise.
The transcript, with the request id and the model that produced it.
Input
These go in the input object of the run request.
| Field | Type | Required | Description |
|---|---|---|---|
| audio_base64 | base64 | Yes | The recording, base64-encoded. |
| filename | string | No | A name for the uploaded file, which sets its extension. |
| content_type | string | No | Media type of the recording. |
| duration_seconds | number | No | Length of the recording, used for billing when the audio carries no readable header. |
| language | string | No | A language hint, forwarded with the upload. |
Requests up to 35 MB, audio up to 25 MB.
Example
A call that works, with your own key.
curl https://gateway.agentsky.dev/v1/run \
-H "authorization: Bearer $AGENTSKY_API_KEY" \
-H "content-type: application/json" \
-d '{"provider":"glm","endpoint":"glm-asr-2512","input":{"audio_base64":"UklGRiQAAABXQVZFZm10IBAAAAABAAEA...","filename":"meeting.wav","content_type":"audio/wav"}}'Pricing
$0.00008 per second on the default plan. Every run carries its price in the response.
