MAI-Transcribe 2.5 API

Speech-to-text (MAI-Transcribe 2.5): 60 languages with automatic language detection, word/segment timestamps and speaker diarization. Billed by audio duration: 1 minute = 1000 tokens. Sync POST /v1/audio/transcriptions.

Try online · Get an API key · Read the docs

Capabilities

Model
Audio
API model
mai-transcribe-2.5
Endpoints
POST /v1/audio/transcriptions
Parameters
model, file

Current pricing

Pricing varies by request parameters.

Gallery examples

No published examples for this model yet.

Explore the prompt gallery

Quick start

cURL

curl --fail-with-body https://www.zzai.app/v1/audio/transcriptions \
  -H "Authorization: Bearer $SEEDANCE_API_KEY" \
  -F "model=mai-transcribe-2.5" \
  -F "[email protected]"

Python

import os
import requests

with open("audio.mp3", "rb") as audio:
    response = requests.post(
        "https://www.zzai.app/v1/audio/transcriptions",
        headers={"Authorization": "Bearer " + os.environ["SEEDANCE_API_KEY"]},
        data={"model": "mai-transcribe-2.5"},
        files={"file": ("audio.mp3", audio, "audio/mpeg")},
        timeout=120,
    )
response.raise_for_status()
print(response.json()["text"])

JavaScript

import { readFile } from 'node:fs/promises';

const form = new FormData();
form.set('model', 'mai-transcribe-2.5');
form.set('file', new Blob([await readFile('audio.mp3')], { type: 'audio/mpeg' }), 'audio.mp3');
const response = await fetch('https://www.zzai.app/v1/audio/transcriptions', {
  method: 'POST',
  headers: { Authorization: 'Bearer ' + process.env.SEEDANCE_API_KEY },
  body: form,
});
if (!response.ok) throw new Error(await response.text());
console.log((await response.json()).text);

Frequently asked questions

How do I call this model?

Create an API key, choose the model name below, and send a request to the documented OpenAI-compatible endpoint. Final billing follows the current price and usage parameters.