# Transcribe audio
URL: https://docs.munito.ai/api/createTranscription

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.

```json
{
  "operationId": "createTranscription",
  "summary": "Transcribe audio",
  "tags": [
    "Audio"
  ],
  "parameters": [
    {
      "name": "munito-service-tier",
      "in": "header",
      "description": "priority, standard or flex. The response names the tier that is billed; see x-ratelimit-over-limit. See [Service tiers](https://docs.munito.ai/service-tiers).",
      "schema": {
        "type": "string",
        "enum": [
          "priority",
          "standard",
          "flex"
        ],
        "default": "standard"
      }
    }
  ],
  "description": "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`.\n\n- Send one file of WAV, MP3, FLAC, OGG, WebM, MP4 or M4A audio, at most 25 MB and 60 minutes long.\n- Munito cuts a recording longer than 30 seconds at its quietest points, transcribes the clips, and joins their text in order.\n- `response_format` is `json` (the default) or `text`. Timestamps, word log probabilities and streaming are not available.\n\nThe 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.",
  "requestBody": {
    "required": true,
    "content": {
      "multipart/form-data": {
        "schema": {
          "type": "object",
          "required": [
            "file",
            "model"
          ],
          "properties": {
            "file": {
              "type": "string",
              "format": "binary",
              "description": "The audio file: WAV, MP3, FLAC, OGG, WebM, MP4 or M4A, at most 25 MB and 60 minutes."
            },
            "model": {
              "type": "string",
              "description": "An audio model from GET /models, such as `google/gemma-4-12b`."
            },
            "language": {
              "type": "string",
              "description": "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": {
              "type": "string",
              "description": "Names and terms to spell correctly, at most 2,000 characters."
            },
            "response_format": {
              "type": "string",
              "enum": [
                "json",
                "text"
              ],
              "description": "`json` gives the text and the token usage. `text` gives the plain text."
            },
            "temperature": {
              "type": "number",
              "description": "Sampling temperature from 0 to 1. Omit it for 0."
            }
          }
        },
        "example": {
          "file": "speech.mp3",
          "model": "google/gemma-4-12b",
          "language": "en"
        }
      }
    }
  },
  "responses": {
    "200": {
      "description": "The text of the recording. With `response_format: text`, the body is the plain text.",
      "headers": {
        "x-request-id": {
          "description": "The id that Munito makes for each request. Quote it to support. OpenAI sends the same header.",
          "schema": {
            "type": "string"
          }
        },
        "munito-region": {
          "description": "The jurisdiction that served the request.",
          "schema": {
            "type": "string"
          }
        },
        "munito-service-tier": {
          "description": "priority, standard or flex. The response names the tier that is billed; see x-ratelimit-over-limit.",
          "schema": {
            "type": "string"
          }
        },
        "x-ratelimit-over-limit": {
          "description": "yes when the request exceeded a rate limit and ran on spare capacity: a free seat of its own tier, or the flex band for background work and OCR. Fireworks sends the same header.",
          "schema": {
            "type": "string"
          }
        },
        "x-ratelimit-limit-requests": {
          "description": "",
          "schema": {
            "type": "string"
          }
        },
        "x-ratelimit-remaining-requests": {
          "description": "",
          "schema": {
            "type": "string"
          }
        },
        "x-ratelimit-reset-requests": {
          "description": "",
          "schema": {
            "type": "string"
          }
        },
        "x-ratelimit-limit-tokens": {
          "description": "",
          "schema": {
            "type": "string"
          }
        },
        "x-ratelimit-remaining-tokens": {
          "description": "",
          "schema": {
            "type": "string"
          }
        },
        "x-ratelimit-reset-tokens": {
          "description": "",
          "schema": {
            "type": "string"
          }
        },
        "x-ratelimit-limit-input-tokens": {
          "description": "",
          "schema": {
            "type": "string"
          }
        },
        "x-ratelimit-remaining-input-tokens": {
          "description": "",
          "schema": {
            "type": "string"
          }
        },
        "x-ratelimit-reset-input-tokens": {
          "description": "",
          "schema": {
            "type": "string"
          }
        },
        "x-ratelimit-limit-output-tokens": {
          "description": "",
          "schema": {
            "type": "string"
          }
        },
        "x-ratelimit-remaining-output-tokens": {
          "description": "",
          "schema": {
            "type": "string"
          }
        },
        "x-ratelimit-reset-output-tokens": {
          "description": "",
          "schema": {
            "type": "string"
          }
        }
      },
      "content": {
        "application/json": {
          "example": {
            "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
            }
          }
        },
        "text/plain": {
          "schema": {
            "type": "string",
            "example": "The invoice is due on 14 November, and the total is 1,250 euros."
          }
        }
      }
    },
    "400": {
      "description": "The request is outside the contract: an unknown field, a format other than `json` or `text`, timestamps, streaming, a language that is not supported, a model without audio, or a file that does not decode."
    },
    "413": {
      "description": "The file is larger than 25 MB."
    },
    "504": {
      "description": "The transcription did not finish in time. Send a shorter recording."
    }
  }
}
```

# Shared API schemas
{
  "securitySchemes": {
    "BearerAuth": {
      "type": "http",
      "scheme": "bearer",
      "description": "Your Munito API key."
    },
    "ApiKeyAuth": {
      "type": "apiKey",
      "in": "header",
      "name": "x-api-key",
      "description": "Your Munito API key."
    }
  }
}