> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mixroute.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Whisper 1

> Whisper 1: speech-to-text model. Request examples and parameters for MixRoute.

Whisper 1 is a speech-to-text model from OpenAI.

Call `whisper-1` through MixRoute using the endpoint shown below.

## Key capabilities

* Speech-to-text - Transcribe an uploaded audio file
* Multipart upload - Sends the source file as form data
* Output formats - Supports model-specific response formats

## Quick example

<Tabs>
  <Tab title="cURL">
    ```bash theme={null}
    curl "https://api.mixroute.ai/v1/audio/transcriptions" \
      -H "Authorization: Bearer YOUR_API_KEY" \
      -F "file=@speech.wav" \
      -F "model=whisper-1"
    ```
  </Tab>

  <Tab title="Python">
    ```python theme={null}
    from openai import OpenAI

    client = OpenAI(api_key="YOUR_API_KEY", base_url="https://api.mixroute.ai/v1")

    with open("speech.wav", "rb") as audio_file:
        transcript = client.audio.transcriptions.create(
            model="whisper-1",
            file=audio_file,
        )

    print(transcript.text)
    ```
  </Tab>
</Tabs>

## Parameters

| Parameter | Type | Required | Description |
| - | - | - | - |
| `file` | file | Yes | Audio file uploaded as multipart form data. |
| `model` | string | Yes | Must be `whisper-1`. |
| `language` | string | No | Input language code when supported. |
| `prompt` | string | No | Optional text that guides transcription. |
| `response_format` | string | No | Transcription response format. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.