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

API キーのグループで利用できるモデルは [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/ja/api-reference/endpoint/responses-openai.md)


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