> ## 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.

# GPT-4o Transcribe Diarize

> GPT-4o Transcribe Diarize: speech transcription model with speaker diarization. Request examples and parameters for MixRoute.

GPT-4o Transcribe Diarize is a speech transcription model with speaker diarization from OpenAI.

Call `gpt-4o-transcribe-diarize` 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
* Speaker diarization - Labels who spoke in each segment
* Segment timestamps - Returns start and end times for each speaker turn

## 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=gpt-4o-transcribe-diarize" \
      -F "response_format=diarized_json" \
      -F "chunking_strategy=auto"
    ```
  </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="gpt-4o-transcribe-diarize",
            file=audio_file,
            response_format="diarized_json",
            chunking_strategy="auto",
        )

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

## Parameters

| Parameter           | Type             | Required | Description                                               |
| ------------------- | ---------------- | -------- | --------------------------------------------------------- |
| `file`              | file             | Yes      | Audio file uploaded as multipart form data.               |
| `model`             | string           | Yes      | Must be `gpt-4o-transcribe-diarize`.                      |
| `language`          | string           | No       | Input language code when supported.                       |
| `prompt`            | string           | No       | Optional text that guides transcription.                  |
| `response_format`   | string           | Yes      | Set to diarized\_json to return speaker-labeled segments. |
| `chunking_strategy` | string \| object | No       | Use auto or provide a custom audio chunking strategy.     |
