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

# GPT-4o Mini Transcribe

> GPT-4o Mini Transcribe：語音轉文字模型。包含 MixRoute 呼叫範例與參數。

<link rel="alternate" hrefLang="en" href="https://mixroute.ai/docs/model-api/openai/gpt-4o-mini-transcribe" />

<link rel="alternate" hrefLang="zh-Hans" href="https://mixroute.ai/docs/zh-hans/model-api/openai/gpt-4o-mini-transcribe" />

<link rel="alternate" hrefLang="zh-Hant" href="https://mixroute.ai/docs/zh-hant/model-api/openai/gpt-4o-mini-transcribe" />

<link rel="alternate" hrefLang="ja" href="https://mixroute.ai/docs/ja/model-api/openai/gpt-4o-mini-transcribe" />

<link rel="alternate" hrefLang="x-default" href="https://mixroute.ai/docs/model-api/openai/gpt-4o-mini-transcribe" />

GPT-4o Mini Transcribe 是 OpenAI 推出的語音轉文字模型。

可使用下方端點透過 MixRoute 呼叫 `gpt-4o-mini-transcribe`。

## 核心能力

* 語音轉文字 - 轉錄上傳的音訊檔案
* 檔案上傳 - 透過 multipart form data 傳送音訊
* 輸出格式 - 支援模型對應的回應格式

## 快速範例

<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-mini-transcribe"
    ```
  </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-mini-transcribe",
            file=audio_file,
        )

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

## 參數

| 參數 | 類型 | 必填 | 說明 |
| - | - | - | - |
| `file` | file | 是 | 透過 multipart form data 上傳的音訊檔案。 |
| `model` | string | 是 | 固定為 `gpt-4o-mini-transcribe`。 |
| `language` | string | 否 | 模型支援時指定輸入語言代碼。 |
| `prompt` | string | 否 | 用於引導轉錄的可選文字。 |
| `response_format` | string | 否 | 轉錄回應格式。 |


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