Transcribe audio

POST /audio/transcriptions

Turn speech into text with an audio model, in the request format of OpenAI's speech to text API. Set the OpenAI SDK base URL to https://api.munito.ai/inference/v1 and call audio.transcriptions.create.

  • Send one file of WAV, MP3, FLAC, OGG, WebM, MP4 or M4A audio, at most 25 MB and 60 minutes long.
  • Munito cuts a recording longer than 30 seconds at its quietest points, transcribes the clips, and joins their text in order.
  • response_format is json (the default) or text. Timestamps, word log probabilities and streaming are not available.

The answer bills input and output tokens at the chat prices of the model. One second of audio is 25 input tokens, and usage gives the audio tokens apart from the text tokens of the instructions.

POST
/audio/transcriptions

Authorization

AuthorizationBearer <token>

Your Munito API key.

In: header

Header Parameters

munito-service-tier?string

priority, standard or flex. The response names the tier that is billed; see x-ratelimit-over-limit.

Default"standard"

Value in

  • "priority"
  • "standard"
  • "flex"

Request Body

multipart/form-data

TypeScript Definitions

Use the request body type in TypeScript.

file*file

The audio file: WAV, MP3, FLAC, OGG, WebM, MP4 or M4A, at most 25 MB and 60 minutes.

Formatbinary
model*string

An audio model from GET /models, such as google/gemma-4-12b.

language?string

The language of the audio as an ISO 639-1 code, such as en or de. Omit it to keep the language of the audio.

prompt?string

Names and terms to spell correctly, at most 2,000 characters.

response_format?string

json gives the text and the token usage. text gives the plain text.

Value in

  • "json"
  • "text"
temperature?number

Sampling temperature from 0 to 1. Omit it for 0.

Response Body

curl -X POST "https://example.com/audio/transcriptions" \
  -F file="speech.mp3" \
  -F model="google/gemma-4-12b" \
  -F language="en"
{
  "text": "The invoice is due on 14 November, and the total is 1,250 euros.",
  "usage": {
    "type": "tokens",
    "input_tokens": 412,
    "input_token_details": {
      "text_tokens": 87,
      "audio_tokens": 325
    },
    "output_tokens": 19,
    "total_tokens": 431
  }
}