> ## 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: model for advanced coding, agents, and complex analysis. Request examples and parameters for MixRoute.

Claude Opus 4.5 is a model for advanced coding, agents, and complex analysis from Anthropic.

Call `claude-opus-4-5-20251101` through MixRoute's OpenAI-compatible Chat Completions API at `/v1/chat/completions`.

<Info>
  The Messages API route can be unavailable on some upstream channels. If `/v1/messages` returns `Operation not allowed`, use `/v1/chat/completions` with the same model ID and the OpenAI request format shown below.
</Info>

## Key capabilities

* OpenAI-compatible - Chat Completions request and response format
* Streaming - Incremental output through SSE
* System prompts - Use a message with `role: "system"`
* Tool use - Use OpenAI-compatible tool definitions

## Quick example

### OpenAI-compatible 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="Streaming">
    ```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>

## Parameters

### OpenAI-compatible API

| Parameter | Type | Required | Description |
| - | - | - | - |
| `model` | string | Yes | Must be `claude-opus-4-5-20251101`. |
| `messages` | array | Yes | Conversation messages with role and content. |
| `max_tokens` | integer | No | Maximum generated tokens. |
| `stream` | boolean | No | Enable SSE streaming. Default: false. |
| `temperature` | number | No | Sampling temperature when supported by the model. |
| `top_p` | number | No | Nucleus sampling threshold when supported. |
| `stop` | string \| array | No | Sequences that stop generation. |
| `tools` | array | No | OpenAI-compatible tool definitions. |


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