Anthropic: Claude Sonnet 5
Sonnet 5 is Anthropic's most capable Sonnet-class model, with frontier performance across coding, agents, and professional work. It supports adaptive thinking with selectable reasoning effort levels (low, medium, high, max,...
This model is available through the OpenSIAI OpenAI-compatible API for chat completions and compatible application workflows.
Why It Looks Great
- text+image+file->text architecture for Text, Image, file to Text workloads
- 1000000 context window for long prompts, document analysis, and multi-turn workflows
- Vision input support for image understanding and multimodal tasks
- Function calling and tool-use support for agentic application workflows
- Structured output support for JSON responses and schema-constrained generation
- Reasoning controls available through supported parameters
Key Features
- Context Window: 1000000 tokens
- Max Input: 872000 tokens
- Max Output: 128000 tokens
- Vision: Supported
- Function Calling: Supported
- Structured Outputs: Supported
- Image Generation: Not listed
- Audio Input: Not listed
- Supported Parameters: include_reasoning, max_completion_tokens, max_tokens, reasoning, reasoning_effort, response_format, stop, structured_outputs, tool_choice, tools, verbosity
Specifications
| Specification | Value |
|---|---|
| Provider | anthropic |
| Model Type | Chat Completions model |
| Architecture | text+image+file->text |
| Context Window | 1000000 tokens |
| Max Input | 872000 tokens |
| Max Output | 128000 tokens |
| Input | Text, Image, file |
| Output | Text |
| Vision | Supported |
| Function Calling | Supported |
| Structured Outputs | Supported |
| Release Date | July 1, 2026 |
How to Use
- Write your prompt - describe the task, provide context, and specify the desired output format.
- Submit - the model processes your request and returns the response.
API Integration
Base URL: https://llm.opensi.com.ai/v1 API Endpoint: chat/completions Model ID: anthropic/claude-sonnet-5
API Usage
Python SDK
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://llm.opensi.com.ai/v1"
)
response = client.chat.completions.create(
model="anthropic/claude-sonnet-5",
messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)cURL
curl https://llm.opensi.com.ai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "anthropic/claude-sonnet-5",
"messages": [{"role": "user", "content": "Hello!"}]
}'Notes
- Model: anthropic/claude-sonnet-5
- Provider: anthropic