Audio Transcription
Convert audio into text — ideal for meetings, interviews, voice messages, and media content processing.
Workflow
POST /v1/audio/transcriptions
Endpoint
moss-transcribe-1.0
Model
Create an API Key
Open the API Key management platform, create an API Key, and save it as an environment variable. Do not write the API Key into client-side code or commit it to a repository.
Example export MOSS_API_KEY="<your-api-key>"Prepare the request input
Set
modeltomoss-transcribe-1.0and provide the audio to transcribe (file,file_id,url, oraudio_url).file / file_id / url / audio_url: audio to transcribe model: moss-transcribe-1.0 response_format: json / text, etc.
request.json { "model": "moss-transcribe-1.0", "file_id": "<file_id>", "response_format": "json" }Send your first request
Send a request to
POST /v1/audio/transcriptions; a synchronous request returns the transcription result directly.curl https://api.mosi.cn/v1/audio/transcriptions \ -H "Authorization: Bearer $MOSS_API_KEY" \ -H "Content-Type: application/json" \ -d @request.jsonRetrieve the result
A synchronous request returns the transcription result directly. If you pass
async=true, the endpoint first returns atask_id, which you then use to query the transcription task.Query the transcription task curl https://api.mosi.cn/v1/audio/transcriptions/$TASK_ID \ -H "Authorization: Bearer $MOSS_API_KEY"Verify success
Success indicator: you obtain the transcribed text.