---
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-frontend-v2-927501783998.us-east4.run.app/models/anthropic/anthropic-claude-sonnet-4.6/api.md
canonical: https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/anthropic/anthropic-claude-sonnet-4.6/api.md
type: product
component: Playground/LLM/Index
generated_at: 2026-05-13T10:52:54.574092Z
---

Anthropic: Claude Sonnet 4.6
---

 [LLMs.txt](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/anthropic-claude-sonnet-4.6/llms.txt) [.md](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/anthropic/anthropic-claude-sonnet-4.6.md)

anthropic-claude-sonnet-4.6 anthropic Closed Source Model $9.000000 / call

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-frontend-v2-927501783998.us-east4.run.app/models?feature=llmaster)

[OG](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/openai-gpt-4o-search-preview)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [OpenAI: GPT-4o Search Preview

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/openai-gpt-4o-search-preview)

[N3](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/nim-meta-llama-3.1-70b-instruct)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [nim/meta/llama-3.1-70b-instruct

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/nim-meta-llama-3.1-70b-instruct)

[DR](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/deepseek-ai-DeepSeek-R1-Distill-Qwen-1.5B)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [DeepSeek R1 Distill Qwen 1.5B

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/deepseek-ai-DeepSeek-R1-Distill-Qwen-1.5B)

[ML](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/meta-llama-llama-guard-4-12b)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Meta: Llama Guard 4 12B

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/meta-llama-llama-guard-4-12b)

[H3](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/Hcompany-Holo3-35B-A3B)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [Holo3 35B A3b

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/Hcompany-Holo3-35B-A3B)

[ML](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/togethercomputer-meta-llama-3.1-8B-Instruct-AWQ-INT4)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [Meta Llama 3.1 8B Instruct Awq Int4

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/togethercomputer-meta-llama-3.1-8B-Instruct-AWQ-INT4)

[Q3](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/Qwen-Qwen3-30B-A3B)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [Qwen3 30B A3b

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/Qwen-Qwen3-30B-A3B)

[![Gemini 2.5 Flash Image Preview ](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/97c6f065-57f9-45b0-a190-08e5f97f70a8.png)](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/google/gemini-2.5-flash-image-preview)[Google](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/google)

 [Gemini 2.5 Flash Image Preview

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/google/gemini-2.5-flash-image-preview)

[XM](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/xiaomi-mimo-v2.5)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Xiaomi: MiMo-V2.5

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/xiaomi-mimo-v2.5)

[AC](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/alfredpros-codellama-7b-instruct-solidity)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [AlfredPros: CodeLLaMa 7B Instruct Solidity

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/alfredpros-codellama-7b-instruct-solidity)

[MV](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/mistralai-voxtral-small-24b-2507)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Mistral: Voxtral Small 24B 2507

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/mistralai-voxtral-small-24b-2507)

[MS](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/mistralai-Magistral-Small-2506)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [Magistral Small 2506

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/mistralai-Magistral-Small-2506)

[DR](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/deepseek-deepseek-r1-distill-qwen-32b)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [DeepSeek: R1 Distill Qwen 32B

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/deepseek-deepseek-r1-distill-qwen-32b)

[QP](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/Qwen-Qwen3.6-Plus)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [Qwen3.6 Plus

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/Qwen-Qwen3.6-Plus)

[OG](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/openai-gpt-4-turbo)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [OpenAI: GPT-4 Turbo

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/openai-gpt-4-turbo)

[![gpt-oss-20b](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/8b2f0440-52cc-4f41-93eb-d31006ad71e2.webp)](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/openai/gpt-oss-20b)[Open Ai](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/openai)

 [gpt-oss-20b

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/openai/gpt-oss-20b)

[Q1](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/Qwen-Qwen2.5-1.5B-Instruct)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [Qwen2.5 1.5B Instruct

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/Qwen-Qwen2.5-1.5B-Instruct)

[DD](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/deepseek-deepseek-chat)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [DeepSeek: DeepSeek V3

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/deepseek-deepseek-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.6CategoryLLM ModelsTaskText GenerationPrice$9.000000 per million tokensAddedFebruary 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-frontend-v2-927501783998.us-east4.run.app/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>
```

View the [full API documentation](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/anthropic/anthropic-claude-sonnet-4.6/api) for SDKs, code examples in Python, JavaScript, and more.

### 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-frontend-v2-927501783998.us-east4.run.app/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-frontend-v2-927501783998.us-east4.run.app/anthropic-claude-sonnet-46) [Browse LLM Models](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models?feature=llmaster) [More from Anthropic](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router) [View Pricing](https://modelslab-frontend-v2-927501783998.us-east4.run.app/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-05-13*