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

# Codex Mini

> Codex Mini | 文本与推理

文本与推理 · `codex-mini`

使用此完整 MixRoute 模型 ID 选择路由。

`POST /v1/responses`

请在 [MixRoute 模型市场](https://console.mixroute.ai/models) 核对密钥分组的可用性。列入目录不代表渠道已开放。

> [!WARNING]
>
> 此请求格式要求当前 MixRoute 分组已启用该模型的计费配置。如返回 `model_price_error`，请联系 MixRoute 支持；修改提示词不能开通渠道。

## 快速示例

运行前请设置 `MIXROUTE_API_KEY`。

```bash theme={null}
curl --fail-with-body --request POST 'https://api.mixroute.ai/v1/responses' \
  --header "Authorization: Bearer $MIXROUTE_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "codex-mini",
  "input": "Reply with OK only.",
  "max_output_tokens": 128
}'
```

从返回的消息中提取 `output_text` 文本块。

## 参数

| 字段 | 说明 |
| - | - |
| `model` | `codex-mini`. 使用上面列出的完整模型 ID。 |
| `input` | 输入文本。 |

## API 参考

* [Responses](https://mixroute.ai/docs/zh-Hans/api-reference/endpoint/responses-openai.md)


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