> ## 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-4.1 Mini (2025-04-14)

> GPT-4.1 Mini (2025-04-14) | 文字生成

文字生成 · `gpt-4.1-mini-2025-04-14`

使用帶日期的完整 ID 固定版本，不會隨別名更新。

`POST /v1/chat/completions`

請在 [MixRoute 模型廣場](https://console.mixroute.ai/models) 確認金鑰分組的可用性。列入目錄不代表路由已開放。

## 快速範例

執行前請設定 `MIXROUTE_API_KEY`。

```bash theme={null}
curl --fail-with-body --request POST 'https://api.mixroute.ai/v1/chat/completions' \
  --header "Authorization: Bearer $MIXROUTE_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "gpt-4.1-mini-2025-04-14",
  "messages": [
    {
      "role": "user",
      "content": "Reply with OK only."
    }
  ],
  "max_tokens": 64
}'
```

從 `choices[0].message.content` 讀取文字。

## 參數

| 欄位 | 說明 |
| - | - |
| `model` | `gpt-4.1-mini-2025-04-14`. 使用上方列出的完整模型 ID。 |
| `messages` | 範例中的輸入對話。 |

## API 參考

* [Chat Completions](https://mixroute.ai/docs/zh-Hant/api-reference/endpoint/chat-openai.md)


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