> ## 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-5.4 Nano

> GPT-5.4 Nano：面向簡單高吞吐任務的低成本推理模型。

GPT-5.4 Nano 是 OpenAI 成本最低的 GPT-5.4 級模型，適合分類、擷取、排序與高吞吐子 Agent。

透過以下介面在 MixRoute 呼叫 `gpt-5.4-nano`。

## 核心能力

* 400K 上下文：支援較大的輸入上下文
* 最大輸出 128K：適合長結構化結果
* 推理控制：支援 none、low、medium、high 與 xhigh
* 雙介面：支援 Responses 與 Chat Completions

## 快速範例

**cURL**

```bash theme={null}
curl "https://api.mixroute.ai/v1/responses" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "gpt-5.4-nano",
  "input": "分類這個請求並回傳簡短的 JSON 結果。",
  "reasoning": {"effort": "low"},
  "max_output_tokens": 256
}'
```

**Python**

```python theme={null}
from openai import OpenAI

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

response = client.responses.create(
    model="gpt-5.4-nano",
    input="分類這個請求並回傳簡短的 JSON 結果。",
    reasoning={"effort": "low"},
    max_output_tokens=256,
)

print(response.output_text)
```

## 參數

| 參數 | 類型 | 必填 | 說明 |
| - | - | - | - |
| `model` | string | 是 | 固定為 `gpt-5.4-nano`。 |
| `input` | string \| array | 是 | 文字或結構化 Responses 輸入。 |
| `max_output_tokens` | integer | 否 | 最大輸出 Token 數。 |
| `reasoning` | object | 否 | 推理設定，包括 effort。 |
| `stream` | boolean | 否 | 啟用 SSE 串流輸出。 |
| `tools` | array | 否 | 模型可以使用的工具。 |

## 廠商資料

* [OpenAI GPT-5.4 Nano 模型頁面](https://developers.openai.com/api/docs/models/gpt-5.4-nano)


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