AGTCloud API Docs
GuidesAPI ReferenceIntegrations and resourcesUpdate and help
AudioMiMo

Speech recognition

Convert audio to text with MiMo, with complete or streaming results.

Submit one audio clip and receive a transcript in Chat Completions format. Supports non-streaming JSON and SSE streaming, with no task creation or polling. For model IDs, see MiMo model guide.

POST/v1/chat/completions

Submit one MP3 or WAV clip and receive a transcript. Supports complete JSON and SSE deltas, with no polling.

Authorization

bearerAuth
AuthorizationBearer <token>

Use Bearer your-api-key in the Authorization Header.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

Audio input

ItemRequirement
AudioOne MP3 or WAV clip, encoded as Base64; the encoded Base64 must not exceed 10 MB
Data URLSet input_audio.data to data:audio/wav;base64,BASE64_AUDIO; for MP3, use audio/mpeg or audio/mp3. format is optional, but must match the MIME type when supplied
Raw Base64Set input_audio.data to the encoded data and specify format: "wav" or format: "mp3"
Languageasr_options.language defaults to auto; you can also specify zh or en

In Try it, select a local audio file to encode it as Base64 and populate the request. The file is submitted in the same JSON request.

Read results

ModeHandling
Non-streamingRead the complete transcript from choices[].message.content
StreamingSet stream: true, parse each SSE data: event, and append choices[].delta.content in order; stop at data: [DONE]
Finish reasonstop means normal completion; length means the length limit was reached; content_filter means content filtering
Usageusage.seconds is the input audio duration in seconds; read token counts from the corresponding usage fields

Streaming still requires submitting the entire audio clip at once before receiving text deltas. It is not a real-time session that continuously uploads microphone audio.

Official references