> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mixroute.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Claude Opus 4.5

> Claude Opus 4.5: 高度なコーディング、エージェント、複雑な分析向けのモデル。MixRouteでのリクエスト例とパラメータ。

Claude Opus 4.5は、高度なコーディング、エージェント、複雑な分析に対応するAnthropicのモデルです。

`/v1/chat/completions`にあるMixRouteのOpenAI互換Chat Completions APIを通じて`claude-opus-4-5-20251101`を呼び出します。

<Info>
  一部の上流チャネルではMessages APIルートを利用できない場合があります。`/v1/messages`が`Operation not allowed`を返した場合は、同じモデルIDと以下に示すOpenAIリクエスト形式で`/v1/chat/completions`を使用してください。
</Info>

## 主な機能

* OpenAI互換 - Chat Completionsのリクエスト・レスポンス形式
* ストリーミング - SSEによる逐次出力
* システムプロンプト - `role: "system"`を持つメッセージを使用
* ツール利用 - OpenAI互換のツール定義を使用

## 簡単な使用例

### OpenAI互換API

<Tabs>
  <Tab title="cURL">
    ```bash theme={null}
    curl "https://api.mixroute.ai/v1/chat/completions" \
      -H "Authorization: Bearer YOUR_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
      "model": "claude-opus-4-5-20251101",
      "messages": [
        {
          "role": "user",
          "content": "Explain quantum entanglement in simple terms."
        }
      ],
      "max_tokens": 256
    }'
    ```
  </Tab>

  <Tab title="Python">
    ```python theme={null}
    from openai import OpenAI

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

    response = client.chat.completions.create(
        model="claude-opus-4-5-20251101",
        messages=[{"role": "user", "content": "Explain quantum entanglement in simple terms."}],
        max_tokens=256,
    )

    print(response.choices[0].message.content)
    ```
  </Tab>

  <Tab title="ストリーミング">
    ```python theme={null}
    from openai import OpenAI

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

    stream = client.chat.completions.create(
        model="claude-opus-4-5-20251101",
        messages=[{"role": "user", "content": "Write a short poem about the sea."}],
        max_tokens=256,
        stream=True,
    )

    for chunk in stream:
        print(chunk.choices[0].delta.content or "", end="")
    ```
  </Tab>
</Tabs>

## パラメータ

### OpenAI互換API

| パラメーター | 型 | 必須 | 説明 |
| - | - | - | - |
| `model` | string | はい | `claude-opus-4-5-20251101`である必要があります。 |
| `messages` | array | はい | roleとcontentを含む会話メッセージ。 |
| `max_tokens` | integer | いいえ | 生成するトークンの最大数。 |
| `stream` | boolean | いいえ | SSEストリーミングを有効にします。デフォルト: false。 |
| `temperature` | number | いいえ | モデルが対応している場合のサンプリング温度。 |
| `top_p` | number | いいえ | 対応している場合のNucleusサンプリングのしきい値。 |
| `stop` | string \| array | いいえ | 生成を停止するシーケンス。 |
| `tools` | array | いいえ | OpenAI互換のツール定義。 |


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