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

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

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

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

## 核心能力

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

## 快速範例

**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"
```

**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",
        file=audio_file,
    )

print(transcript.text)
```

## 參數

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


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