Music & Audio / MiniMax

MiniMax localized example text## Overview

MiniMax (Speech to Text)audio file, supported 20 and, can return, or / when, and SRT / WebVTTlocalized example text.

endpointPath, Request / field MiniMax (v1 endpoint).complete,Base URL and API Key can, localized example text.

localized example textDescription
Modelasr-1.0
Method:audio, Request return
audioFormatwav / aiff / flac / alac(m4a) / mp3 / aac / opus / ogg
audioLimitDurationexceeds 500 seconds, file exceeds 50MB
return Formatjson ()/verbose_json (, when, )/srt / vtt
localized example textaudioDuration, Failure

Base URL: https://mm-internal-cn.leonecloud.com/minimax


Authentication

with endpoint in Request in API Key:```
Authorization: Bearer {YOUR_API_KEY}


---

## and| localized example text| localized example text|
|----|--------|
| return| supported,`stream=true` return 400|
| Format| `srt` / `vtt`,|
| trace_id | localized example text`trace_id` (Errorlocalized example text`request_id`), when provide|
| Billing Method | Requestwhen 500 seconds, complete after audioDuration,|

> as 500 seconds, can use 500 secondsaudio, return 402.

---

## Quick Start

**localized example text**
```bash

curl -X POST "https://mm-internal-cn.leonecloud.com/minimax/v1/speech_to_text" \
-H "Authorization: Bearer your_api_key_here" \
-F "model=asr-1.0" \
-F "file=@meeting.mp3"


**localized example text+ when ( in )**
```bash

curl -X POST "https://mm-internal-cn.leonecloud.com/minimax/v1/speech_to_text" \
-H "Authorization: Bearer your_api_key_here" \
-H "language: zh" \
-F "model=asr-1.0" \
-F "response_format=verbose_json" \
-F "timestamp_level=word" \
-F "file=@meeting.mp3"


**SRT**
```bash

curl -X POST "https://mm-internal-cn.leonecloud.com/minimax/v1/speech_to_text" \
-H "Authorization: Bearer your_api_key_here" \
-F "model=asr-1.0" \
-F "response_format=srt" \
-F "file=@meeting.mp3" \
-o meeting.srt


**Python**
```python

import requests

with open("meeting.mp3", "rb") as f:
resp = requests.post(
"https://mm-internal-cn.leonecloud.com/minimax/v1/speech_to_text",
headers={"Authorization": "Bearer your_api_key_here", "language": "zh"},
data={"model": "asr-1.0", "response_format": "verbose_json"},
files={"file": f},
timeout=600,
)
resp.raise_for_status()
result = resp.json()
print(result["text"], result["duration"])


> curl`-F` or requests`files=` when will`multipart/form-data` and boundary,`Content-Type`.

---

## endpointDescription

**POST** `/v1/speech_to_text`

### Requestlocalized example text| localized example text| Required | Description |
|----|------|------|
| Authorization | Yes | `Bearer {YOUR_API_KEY}` |
| Content-Type | Yes | `multipart/form-data` |
| language | No | (BCP-47 ).If omittedor, Values|

`language` Values:

| localized example text| localized example text| localized example text| localized example text| localized example text| localized example text| localized example text| localized example text|
|----|------|----|------|----|------|----|------|
| `zh` | in| `yue` | localized example text| `en` | localized example text| `ja` | localized example text|
| `ko` | localized example text| `th` | localized example text| `vi` | localized example text| `id` | localized example text|
| `ms` | localized example text| `fil` | localized example text| `ar` | localized example text| `tr` | localized example text|
| `fr` | localized example text| `de` | localized example text| `es` | localized example text| `it` | localized example text|
| `pt` | localized example text| `pl` | localized example text| `ru` | localized example text| `uk` | localized example text|

### Parameter| Parameter | Type | Required | Description |
|------|------|------|------|
| model | string | Yes | localized example text`asr-1.0` |
| file | file | Yes | audiofile, Requirements|
| response_format | string | No | return Format, default`json`.Optional `json` / `verbose_json` / `srt` / `vtt` |
| timestamp_level | string | No | when, only`verbose_json` / `srt` / `vtt` localized example text.If omittedor`sentence` as (default);`word` as in,.`json` when|
| stream | boolean | No | supported`false` (default), localized example text`true` return 400|

### audioRequirements

| localized example text| Requirements |
|----|------|
| Format | wav / aiff / flac / alac(m4a) / mp3 / aac / opus / ogg; supported no PCM|
| Duration | exceeds 500 seconds, return 400, will|
| size| exceeds 50MB, return 413|

> height or.not height audio (500 seconds 48kHz WAV 92MB), recommended 16kHz, or mp3 / aac / opus etc.Format, localized example text.

---

## localized example text### json (default)

`Content-Type: application/json`

```json

{
"text": "Hello everyone, let me check the question.",
"duration": 9.102313,
"trace_id": "trace_20261127174701_ziqmqug5cxtb"
}


| field | Type | Description |
|------|------|------|
| text | string | localized example text|
| duration | number | audioDuration (seconds), Duration|
| trace_id | string | localized example text|

### verbose_json

`Content-Type: application/json`

```json

{
"text": "Hello everyone. Let me check the question.",
"duration": 12.744,
"n_speakers": 2,
"segments": [
{ "id": 0, "start": 0.1, "end": 1.66, "speaker": "S1", "text": "Hello everyone." },
{ "id": 1, "start": 2.0, "end": 6.1, "speaker": "S2", "text": "Let me check the question." }
],
"trace_id": "trace_20261127174701_ziqmqug5cxtb"
}


| field | Type | Description |
|------|------|------|
| text | string |, etc. with`segments[].text` when|
| duration | number | audioDuration (seconds), Duration|
| n_speakers | integer | localized example text|
| segments | array | when,`timestamp_level` localized example text|
| segments[].id | integer |,`0` localized example text|
| segments[].start / end | number | when (seconds)|
| segments[].speaker | string |,`S1`, `S2`, localized example text|
| segments[].text | string | ( / / )|
| trace_id | string | localized example text|

> defaultwhen, in will and.

### srt

`Content-Type: text/plain`

1
00:00:00,100 --> 00:00:01,660
Hello everyone.

2
00:00:02,000 --> 00:00:06,100
Let me check the question.


### vtt

`Content-Type: text/vtt`

WEBVTT

00:00:00.100 --> 00:00:01.660
Hello everyone.

00:00:02.000 --> 00:00:06.100
Let me check the question.


---

## ErrorFailurereturned when applicable HTTP Status Code,:```json
{
 "type": "error",
 "error": {
 "type": "bad_request_error",
 "message": "invalid params, audio duration 623.4s exceeds the limit of 500s (2013)",
 "http_code": "400"
 },
 "request_id": "trace_20261127174954_iepy9lttb5hz"
}

message Error Codes.

HTTP Status Codeerror.typeError CodesDescription
400bad_request_error2013Parameter: file, model supported, audio exceeds 500 seconds, audio no etc.
400bad_request_error2022Modelnot
401authorized_error1004Failure, API Key
402insufficient_balance_error1008Insufficient balance
413invalid_request_error—file exceeds 50MB
422unprocessable_entity_error1026audionot
429rate_limit_error1002, after
500server_error1000Error, after

FAQ

Q1: localized example text?

A: localized example textresponse_format asverbose_json, localized example textspeaker field, localized example textn_speakers localized example text.

Q2: / when?

A: response_format localized example textverbose_json (orsrt / vtt), andtimestamp_level asword.in,.

Q3: audioexceeds 500 seconds?

A: exceeds will return 400, will.audio 500 seconds,.

Q4: file exceeds 50MB?

A: 16kHz, or mp3 / aac / opus etc. Format,.

Q5: language?

A: localized example text.If omitted; audio as when,language can.

Q6: localized example text?Failurewill?

A: localized example textduration (audioDuration)localized example text.Requestwhen 500 seconds, complete after Duration,.Failure when.

Q7: Requestwhen when?

A: in Request complete, when audioDuration.recommendedwhen at least 10 minutes.


Technical Support

If you have any questions, please contact our technical support team.

Updated 2026-11-27