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

# Claude Opus 4.1

> Call Anthropic's Claude Opus 4.1 via OpenAI-compatible interface — the most capable Claude model for complex reasoning and research.

Claude Opus 4.1 is Anthropic's most capable and intelligent model, available through Starrise AI via OpenAI-compatible interface. It delivers top-tier performance on the most demanding tasks, including complex research, advanced coding, mathematical reasoning, and deep analysis.

## Key Capabilities

* **OpenAI-compatible** — Drop-in replacement for the OpenAI SDK, no other code changes needed
* **Best-in-class reasoning** — Highest accuracy on complex multi-step problems
* **Advanced coding** — Expert at large-scale code generation, debugging, and architecture design
* **Long context** — Supports large document processing and multi-turn conversations
* **Streaming** — Real-time token streaming via SSE
* **Research-grade** — Ideal for tasks requiring maximum intelligence and thoroughness

## Quick Example

```bash cURL theme={null}
curl https://dayu.cdn-fly.com/v1/messages \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-opus-4-1",
    "messages": [
      { "role": "user", "content": "Explain quantum entanglement in simple terms." }
    ]
  }'
```

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

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://dayu.cdn-fly.com/v1"
)

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

print(response.choices[0].message.content)
```

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

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://dayu.cdn-fly.com/v1"
)

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

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

## Parameters

| Parameter | Type | Required | Description |
| - | - | - | - |
| `model` | string | Yes | Fixed value: `claude-opus-4-1` |
| `messages` | array | Yes | Array of `{ role, content }` objects |
| `max_tokens` | integer | No | Maximum number of tokens to generate |
| `temperature` | float | No | `0`–`2`, controls randomness, default `1` |
| `stream` | boolean | No | Enable SSE streaming, default `false` |
| `top_p` | float | No | Nucleus sampling threshold, default `1` |
| `stop` | string / array | No | Sequences where generation stops |

> **[API Reference](/en/api-reference/introduction)**
>
> View the interactive API Playground for Claude Opus 4.1.


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