curl -X POST https://api.orthogonal.com/v1/run \
-H 'Authorization: Bearer orth_live_••••' \
-H 'Content-Type: application/json' \
-d '{
"api": "zai",
"path": "/api/paas/v4/audio/transcriptions",
"method": "POST",
"body": {
"file_base64": "",
"model": "",
"stream":
}
}'
{
"success": true,
"data": {
"id": "202611210706149088f9254d7f4938",
"text": "#",
"usage": { … },
"created": 1795215975,
"request_id": "202611210706149088f9254d7f4938"
}
}
A real response, recorded when Orthogonal checked this endpoint.
$0.001308per call
Every call costs the same.
You aren't charged for failed calls. A wallet payment for a failed call is refunded.
About this endpoint
Use the [GLM-ASR-2512](/guides/audio/glm-asr-2512) model to transcribe audio files into text, supporting multiple languages and real-time streaming transcription.
Body parameters
filestringThe audio file to be transcribed (.wav / .mp3, at most 25 MB and 30 seconds). Send either file or file_base64.file_base64stringBase64 encoded audio file. Only one of file_base64 or file needs to be provided (if both are provided, file takes precedence).modelrequiredstringThe model ID to invoke.promptstringIn long text scenarios, you can provide previous transcription results as context. Recommended to be less than 8000 characters.hotwordsstringHotword list to improve recognition accuracy for domain-specific vocabulary. Format example: ["person_name","place_name"]. Recommended not to exceed 100 items.streambooleanThis parameter should be set to false or omitted when using synchronous calls. It indicates that the model returns all content at once after generating all content. Default is false. If set to true, the model will return generated content in chunks via standard Event Stream. When the Event Stream ends, a data: [DONE] message will be returned.request_idstringPassed by the user side, needs to be unique; used to distinguish each request, 6–64 characters. If not provided by the user side, the platform will generate one by default.user_idstringUnique ID for the end user, 6–128 characters. Avoid using sensitive information.Response types
idTask IDstringcreatedRequest creation time, as a Unix timestamp in seconds.integerrequest_idPassed by the client, must be unique. A unique identifier to distinguish each request. If not provided by the client, the platform will generate one by default.stringmodelModel namestringtextThe complete transcribed content of the audio.stringMore from Z.ai
- Web page readerPOST/api/paas/v4/reader$0.0109 per callFixed
- Agent taskPOST/api/v1/agentsFrom $0.763 per 1M tokens · varies by agentResponse-based · up to $1.09
- Chat completionPOST/api/paas/v4/chat/completionsFrom $0.0327 per 1M tokens · varies by modelResponse-based · up to $2.228749
- Async image generationPOST/api/paas/v4/async/images/generations$0.01635 per callFixed
- Web searchPOST/api/paas/v4/web_search$0.0109 per callFixed
- Image/video job resultGET/api/paas/v4/async-result/{id}Free
- Token countPOST/api/paas/v4/tokenizer$0.000109 per callFixed
- Video generationPOST/api/paas/v4/videos/generations$0.218 per callFixed
- Agent job resultPOST/api/v1/agents/async-resultFree
- Document OCR parsingPOST/api/paas/v4/layout_parsing$0.0327 per 1M tokensResponse-based · up to $0.00981
- Slides conversation exportPOST/api/v1/agents/conversationFree
- Image generationPOST/api/paas/v4/images/generations$0.01635 per callFixed