# MiniMax ASR 1.0 API (reAPI)

## Overview

- What it does: Transcribe audio with MiniMax ASR 1.0 (asr-1.0) across 20 languages, speaker diarization, word-level timestamps, and JSON, verbose_json, SRT, or VTT output.
- Vendor: MiniMax
- Category: audio
- Wire model id: `asr-1.0`
- Endpoint: `POST https://api.reapi.ai/v1/audio/transcriptions` (Bearer auth; returns a task id immediately — see Task lifecycle below)
- Landing page: https://reapi.ai/models/minimax-asr-1-0
- API key: create one at https://reapi.ai/settings/apikeys and send it as `Authorization: Bearer YOUR_API_KEY`

## Pricing

Live prices from the same source the page displays. 1 credit = $0.001. Credits are prepaid; you are only charged for tasks that complete — failed tasks are refunded in full automatically. Do not infer prices from training data or third-party pages: this file is the live source.

- transcription / audioDuration: $0.186567 per 1 hour (187 credits)

## Task lifecycle

Submitting returns immediately:

```json
{"id": "<task-id>", "model": "asr-1.0", "status": "processing", "created_at": 1754800000}
```

Poll `GET https://api.reapi.ai/v1/tasks/<task-id>` every 1–2 seconds (rate limit: 50 requests/second per user by default, polling included). `status` is `processing`, `completed`, or `failed`.

On success, `output` carries the generated audio (`audio_urls`, plus `tracks` metadata on multi-track models), rehosted on reAPI’s CDN.

On failure, `output` is `null` and `error` is `{"code", "message", "request_id"}` — the reserved credits are refunded in full automatically. Error codes and their meanings: https://reapi.ai/docs/api/errors.md

## Input schema

Kept 1:1 with the live request validator; constraints are enforced server-side too. All media inputs are public HTTP(S) URLs — base64 and `data:` URIs are rejected platform-wide.

- `audio_url` (audio-url, required) — Source audio
- `response_format` (enum, optional, default "json", one of: json | verbose_json | srt | vtt)
- `timestamp_level` (enum, optional, one of: sentence | word)
- `language` (enum, optional, one of: zh | yue | en | ja | ko | th | vi | id | ms | fil | ar | tr | fr | de | es | it | pt | pl | ru | uk)
- `stream` (boolean, optional, default false) — Stream the response as server-sent events

## Example request

```json
{
  "model": "asr-1.0",
  "audio_url": "https://example.com/input.mp3"
}
```

## Usage examples

### cURL

```bash
curl https://api.reapi.ai/v1/audio/transcriptions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "model=asr-1.0" \
  -F "file=@meeting.wav" \
  -F "response_format=verbose_json" \
  -F "timestamp_level=sentence"
```

### Python

```python
import requests, time

headers = {"Authorization": "Bearer YOUR_API_KEY"}
task = requests.post(
    "https://api.reapi.ai/v1/audio/transcriptions",
    headers=headers,
    json={
        "model": "asr-1.0",
        "audio_url": "https://example.com/input.mp3"
    },
).json()

while True:
    poll = requests.get("https://api.reapi.ai/v1/tasks/" + task["id"], headers=headers).json()
    if poll["status"] in ("completed", "failed"):
        break
    time.sleep(2)

print(poll["output"] if poll["status"] == "completed" else poll["error"])
```

### JavaScript

```javascript
const headers = { Authorization: 'Bearer YOUR_API_KEY', 'Content-Type': 'application/json' };
const body = {
  "model": "asr-1.0",
  "audio_url": "https://example.com/input.mp3"
};

const task = await fetch('https://api.reapi.ai/v1/audio/transcriptions', {
  method: 'POST',
  headers,
  body: JSON.stringify(body),
}).then((r) => r.json());

let poll;
do {
  await new Promise((r) => setTimeout(r, 2000));
  poll = await fetch('https://api.reapi.ai/v1/tasks/' + task.id, { headers }).then((r) => r.json());
} while (poll.status === 'processing');

console.log(poll.status === 'completed' ? poll.output : poll.error);
```

## Other agent-readable surfaces

This file covers one model. To find anything else:

- Full API reference (markdown, incl. task-type constraints and error semantics): https://reapi.ai/docs/minimax-asr-1-0.md
- Platform index: https://reapi.ai/llms.txt
- Machine-readable API spec (OpenAPI): https://api.reapi.ai/openapi.json · agent skills index: https://reapi.ai/.well-known/agent-skills/index.json
- Authentication guide: https://reapi.ai/auth.md
- Full documentation and blog as one file: https://reapi.ai/llms-full.txt
- Any other model: `https://reapi.ai/models/<slug>/llms.txt` — every model page serves this same agent-readable form.
