---
title: Anthropic: Claude Sonnet 4.5 | Text Generation | ModelsLab
description: Hybrid reasoning large language model excelling in long-duration autonomous coding, multi-agent coordination, and complex tool use with a 200K token.
url: https://modelslab.com/models/anthropic/anthropic-claude-sonnet-4.5.md
canonical: https://modelslab.com/models/anthropic/anthropic-claude-sonnet-4.5.md
type: product
component: Playground/LLM/Index
generated_at: 2026-06-03T20:22:49.200101Z
---

Anthropic: Claude Sonnet 4.5
---

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

Anthropic: Claude Sonnet 4.5
---

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.5

anthropic anthropic-claude-sonnet-4.5

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/NousResearch: Hermes 2 Pro - Llama-3 8B

nousresearch-hermes-2-pro-llama-3-8b

From $0.14/M tokens](https://modelslab.com/models/open_router/nousresearch-hermes-2-pro-llama-3-8b)

[#### open\_router/Nex AGI: DeepSeek V3.1 Nex N1

nex-agi-deepseek-v3.1-nex-n1

From $0.32/M tokens](https://modelslab.com/models/open_router/nex-agi-deepseek-v3.1-nex-n1)

[#### open\_router/Google: Gemma 3 27B

google-gemma-3-27b-it

From $0.12/M tokens](https://modelslab.com/models/open_router/google-gemma-3-27b-it)

[#### open\_router/DeepSeek: DeepSeek V3 0324

deepseek-deepseek-chat-v3-0324

From $0.48/M tokens](https://modelslab.com/models/open_router/deepseek-deepseek-chat-v3-0324)

[#### open\_router/Cohere: Command A

cohere-command-a

From $6.25/M tokens](https://modelslab.com/models/open_router/cohere-command-a)

[#### deepseek/DeepSeek R1 Distill Qwen 1.5B

deepseek-ai-DeepSeek-R1-Distill-Qwen-1.5B

From $0.18/M tokens](https://modelslab.com/models/deepseek/deepseek-ai-DeepSeek-R1-Distill-Qwen-1.5B)

[#### deepseek/DeepSeek R1 Distill Qwen 14B

deepseek-ai-DeepSeek-R1-Distill-Qwen-14B

From $1.60/M tokens](https://modelslab.com/models/deepseek/deepseek-ai-DeepSeek-R1-Distill-Qwen-14B)

[#### open\_router/Qwen: Qwen3 235B A22B Instruct 2507

qwen-qwen3-235b-a22b-2507

From $0.09/M tokens](https://modelslab.com/models/open_router/qwen-qwen3-235b-a22b-2507)

[#### open\_router/OpenAI: GPT-4o (2024-05-13)

openai-gpt-4o-2024-05-13

From $10.00/M tokens](https://modelslab.com/models/open_router/openai-gpt-4o-2024-05-13)

[#### qwen/Qwen QwQ-32B

Qwen-QwQ-32B

From $1.20/M tokens](https://modelslab.com/models/qwen/Qwen-QwQ-32B)

[#### byteplus/Seed 1.8

seed-1.8

From $3.00/M tokens](https://modelslab.com/models/byteplus/seed-1.8)

[#### open\_router/NVIDIA: Nemotron 3 Nano 30B A3B

nvidia-nemotron-3-nano-30b-a3b

From $0.13/M tokens](https://modelslab.com/models/open_router/nvidia-nemotron-3-nano-30b-a3b)

[#### open\_router/Qwen: Qwen3.6 Flash

qwen-qwen3.6-flash

From $0.66/M tokens](https://modelslab.com/models/open_router/qwen-qwen3.6-flash)

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

google-gemini-3.1-flash-lite

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

[#### open\_router/DeepSeek: DeepSeek V3.1

deepseek-deepseek-chat-v3.1

From $0.50/M tokens](https://modelslab.com/models/open_router/deepseek-deepseek-chat-v3.1)

[#### open\_router/Z.ai: GLM 4.7

z-ai-glm-4.7

From $1.07/M tokens](https://modelslab.com/models/open_router/z-ai-glm-4.7)

[#### open\_router/MoonshotAI Kimi Latest

moonshotai-kimi-latest

From $2.05/M tokens](https://modelslab.com/models/open_router/moonshotai-kimi-latest)

[#### arcee\_ai/Arcee AI Coder-Large

arcee-ai-coder-large

From $0.65/M tokens](https://modelslab.com/models/arcee_ai/arcee-ai-coder-large)

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.5
---

Claude Sonnet 4.5 is Anthropic’s most advanced Sonnet model to date, optimized for real-world agents and coding workflows. It delivers state-of-the-art performance on coding benchmarks such as SWE-bench Verified, with...

### Technical Specifications

Model IDanthropic-claude-sonnet-4.5

CategoryLLM Models

TaskText Generation

Price$9 per million tokens

AddedNovember 3, 2025

### 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.5 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.5",
        "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.5 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.5](https://modelslab.com/anthropic-claude-sonnet-45) [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.5 FAQ
---

### What is Anthropic: Claude Sonnet 4.5?

Claude Sonnet 4.5 is Anthropic’s most advanced Sonnet model to date, optimized for real-world agents and coding workflows. It delivers state-of-the-art performance on coding benchmarks such as SWE-bench Verified, with...

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

You can integrate Anthropic: Claude Sonnet 4.5 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.5" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation.

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

Anthropic: Claude Sonnet 4.5 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.5 model ID?

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

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

Yes, ModelsLab offers a free tier that lets you try Anthropic: Claude Sonnet 4.5 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*