---
title: Anthropic: Claude Sonnet 4.6 | Text Generation | ModelsLab
description: Powerful LLM with 1M token context window (beta), 128K max output, 79.6% SWE-bench & 72.5% OSWorld scores for agentic coding, computer use, and.
url: https://modelslab.com/models/anthropic/anthropic-claude-sonnet-4.6.md
canonical: https://modelslab.com/models/anthropic/anthropic-claude-sonnet-4.6.md
type: product
component: Playground/LLM/Index
generated_at: 2026-06-03T20:22:50.251615Z
---

Anthropic: Claude Sonnet 4.6
---

 [LLMs.txt](https://modelslab.com/models/open_router/anthropic-claude-sonnet-4.6/llms.txt) [.md](https://modelslab.com/models/anthropic/anthropic-claude-sonnet-4.6.md)

Anthropic: Claude Sonnet 4.6
---

Choose a prompt below to get started or type your own message

 Explain quantum computing in simple terms

 Write a Python function to sort a list

 Create a marketing email for a SaaS product

 Compare REST vs GraphQL APIs

Send

### Anthropic: Claude Sonnet 4.6

anthropic anthropic-claude-sonnet-4.6

Copy model ID

PricingInput $3.00 / 1M tokens

Output $15.00 / 1M tokens

API EndpointsOpenAI Compatible

`https://modelslab.com/api/v7/llm/chat/completions`Endpoint

Anthropic Compatible

`https://modelslab.com/api/v7/llm/v1/messages`Messages

`https://modelslab.com/api/v7/llm/v1/messages/count_tokens`Count Tokens

`https://modelslab.com/api/v7/llm/v1/models`Models

Use with Claude Code

cURL Example

ParametersSystem MessageYou are a helpful AI assistant specialized in providing accurate and detailed responses.

Temperature0.7

Max Tokens1000

Top P0.9

Frequency Penalty0

Presence Penalty0

Model Info

Support

Related Models
---

Discover similar models you might be interested in

 [View all LLM Models](https://modelslab.com/models?feature=llmaster)

[#### open\_router/MoonshotAI: Kimi K2.5

moonshotai-kimi-k2.5

From $1.15/M tokens](https://modelslab.com/models/open_router/moonshotai-kimi-k2.5)

[#### open\_router/xAI: Grok 4.3

x-ai-grok-4.3

From $1.88/M tokens](https://modelslab.com/models/open_router/x-ai-grok-4.3)

[#### open\_router/xAI: Grok 4.20 Multi-Agent

x-ai-grok-4.20-multi-agent

From $4.00/M tokens](https://modelslab.com/models/open_router/x-ai-grok-4.20-multi-agent)

[#### open\_router/Google: Gemini 3.1 Flash Lite Preview

google-gemini-3.1-flash-lite-preview

From $0.88/M tokens](https://modelslab.com/models/open_router/google-gemini-3.1-flash-lite-preview)

[#### open\_router/DeepSeek: R1 Distill Qwen 32B

deepseek-deepseek-r1-distill-qwen-32b

From $0.29/M tokens](https://modelslab.com/models/open_router/deepseek-deepseek-r1-distill-qwen-32b)

[#### alibaba\_cloud/Qwen: Qwen3.5 397B A17B

qwen-qwen3.5-397b-a17b

From $2.10/M tokens](https://modelslab.com/models/alibaba_cloud/qwen-qwen3.5-397b-a17b)

[#### open\_router/Switchpoint Router

switchpoint-router

From $2.13/M tokens](https://modelslab.com/models/open_router/switchpoint-router)

[#### open\_router/ByteDance: UI-TARS 7B 

bytedance-ui-tars-1.5-7b

From $0.15/M tokens](https://modelslab.com/models/open_router/bytedance-ui-tars-1.5-7b)

[#### open\_router/Google: Gemini 2.5 Flash Lite Preview 09-2025

google-gemini-2.5-flash-lite-preview-09-2025

From $0.25/M tokens](https://modelslab.com/models/open_router/google-gemini-2.5-flash-lite-preview-09-2025)

[#### alibaba\_cloud/Qwen: Qwen3.5-122B-A10B

qwen-qwen3.5-122b-a10b

From $1.80/M tokens](https://modelslab.com/models/alibaba_cloud/qwen-qwen3.5-122b-a10b)

[#### open\_router/LiquidAI: LFM2-24B-A2B

liquid-lfm-2-24b-a2b

From $0.07/M tokens](https://modelslab.com/models/open_router/liquid-lfm-2-24b-a2b)

[#### open\_router/StepFun: Step 3.5 Flash

stepfun-step-3.5-flash

From $0.20/M tokens](https://modelslab.com/models/open_router/stepfun-step-3.5-flash)

[#### open\_router/Mancer: Weaver (alpha)

mancer-weaver

From $0.88/M tokens](https://modelslab.com/models/open_router/mancer-weaver)

[#### open\_router/Nous: Hermes 4 405B

nousresearch-hermes-4-405b

From $2.00/M tokens](https://modelslab.com/models/open_router/nousresearch-hermes-4-405b)

[#### open\_router/Qwen: Qwen3.5-35B-A3B

qwen-qwen3.5-35b-a3b

From $0.57/M tokens](https://modelslab.com/models/open_router/qwen-qwen3.5-35b-a3b)

[#### open\_router/AionLabs: Aion-1.0

aion-labs-aion-1.0

From $6.00/M tokens](https://modelslab.com/models/open_router/aion-labs-aion-1.0)

[#### open\_router/Qwen: Qwen Plus 0728

qwen-qwen-plus-2025-07-28

From $0.52/M tokens](https://modelslab.com/models/open_router/qwen-qwen-plus-2025-07-28)

[#### deepseek/DeepSeek V3-0324

deepseek-ai-DeepSeek-V3

From $0.48/M tokens](https://modelslab.com/models/deepseek/deepseek-ai-DeepSeek-V3)

Open Source Alternatives
---

Explore open-source models that offer similar capabilities with full transparency and flexibility

 [View all open source models](https://modelslab.com/models?feature=llm&provider=open-source-models)

[MU](https://modelslab.com/models/modelslab/uncensored-chat)[ModelsLab](https://modelslab.com/models/modelslab)

 [Modelslab: Uncensored Chat

Open Source Model](https://modelslab.com/models/modelslab/uncensored-chat)

About Anthropic: Claude Sonnet 4.6
---

Sonnet 4.6 is Anthropic's most capable Sonnet-class model yet, with frontier performance across coding, agents, and professional work. It excels at iterative development, complex codebase navigation, end-to-end project management with...

### Technical Specifications

Model IDanthropic-claude-sonnet-4.6

CategoryLLM Models

TaskText Generation

Price$9 per million tokens

AddedFebruary 20, 2026

### Key Features

- Chat completion and multi-turn conversation API
- Streaming response with token-by-token output
- Function calling and tool use support
- System prompts and role-based messaging
- JSON mode and structured output

### Quick Start

Integrate Anthropic: Claude Sonnet 4.6 into your application with a single API call. Get your API key from the [pricing page](https://modelslab.com/pricing) to get started.

PythonJavaScriptcURLPHP

```
<code>import requests
import json

url = "https://modelslab.com/api/v7/llm/chat/completions"

headers = {
    "Content-Type": "application/json"
}

data = {
        "model_id": "anthropic-claude-sonnet-4.6",
        "messages": [
            {
                "role": "user",
                "content": "Hello!"
            }
        ],
        "max_tokens": 1000,
        "key": "YOUR_API_KEY"
    }

try:
    response = requests.post(url, headers=headers, json=data)
    response.raise_for_status()  # Raises an HTTPError for bad responses (4XX or 5XX)
    result = response.json()
    print("API Response:")
    print(json.dumps(result, indent=2))
except requests.exceptions.HTTPError as http_err:
    print(f"HTTP error occurred: {http_err} - {response.text}")
except Exception as err:
    print(f"Other error occurred: {err}")</code>
```

### Pricing

Anthropic: Claude Sonnet 4.6 API costs $9.000000 per million tokens. Pay only for what you use with no minimum commitments. [View pricing plans](https://modelslab.com/pricing)

### Use Cases

- AI chatbots and virtual assistants
- Code generation and developer tools
- Content writing and copywriting automation
- Data analysis, summarization, and extraction

[Learn more about Anthropic: Claude Sonnet 4.6](https://modelslab.com/anthropic-claude-sonnet-46) [Browse LLM Models](https://modelslab.com/models?feature=llmaster) [More from Anthropic](https://modelslab.com/models/open_router) [View Pricing](https://modelslab.com/pricing)

Anthropic: Claude Sonnet 4.6 FAQ
---

### What is Anthropic: Claude Sonnet 4.6?

Sonnet 4.6 is Anthropic's most capable Sonnet-class model yet, with frontier performance across coding, agents, and professional work. It excels at iterative development, complex codebase navigation, end-to-end project management with...

### How do I use the Anthropic: Claude Sonnet 4.6 API?

You can integrate Anthropic: Claude Sonnet 4.6 into your application with a single API call. Sign up on ModelsLab to get your API key, then use the model ID "anthropic-claude-sonnet-4.6" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation.

### How much does Anthropic: Claude Sonnet 4.6 cost?

Anthropic: Claude Sonnet 4.6 costs $9.000000 per million tokens. ModelsLab uses pay-per-use pricing with no minimum commitments. A free tier is available to get started.

### What is the Anthropic: Claude Sonnet 4.6 model ID?

The model ID for Anthropic: Claude Sonnet 4.6 is "anthropic-claude-sonnet-4.6". Use this ID in your API requests to specify this model.

### Does Anthropic: Claude Sonnet 4.6 have a free tier?

Yes, ModelsLab offers a free tier that lets you try Anthropic: Claude Sonnet 4.6 and other AI models. Sign up to get free API credits and start building immediately.

---

*This markdown version is optimized for AI agents and LLMs.*

**Links:**
- [Website](https://modelslab.com)
- [API Documentation](https://docs.modelslab.com)
- [Blog](https://modelslab.com/blog)

---
*Generated by ModelsLab - 2026-06-04*