---
title: Anthropic Claude Sonnet Latest | Text Generation | ModelsLab
description: Build with Anthropic Claude Sonnet Latest API by ~anthropic. Text generation, chat, code, and reasoning. Pay-per-use. Free tier.
url: https://modelslab.com/models/~anthropic/anthropic-claude-sonnet-latest/api.md
canonical: https://modelslab.com/models/~anthropic/anthropic-claude-sonnet-latest/api.md
type: product
component: Playground/LLM/Index
generated_at: 2026-04-28T11:15:16.260652Z
---

Anthropic Claude Sonnet Latest
---

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

anthropic-claude-sonnet-latest ~anthropic Closed Source Model $9.000000 / call

Anthropic Claude Sonnet Latest
---

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 Latest

~anthropic anthropic-claude-sonnet-latest

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)

[BE](https://modelslab.com/models/open_router/baidu-ernie-4.5-21b-a3b)[Open Router](https://modelslab.com/models/open_router)

 [Baidu: ERNIE 4.5 21B A3B

Closed Source Model](https://modelslab.com/models/open_router/baidu-ernie-4.5-21b-a3b)

[QQ](https://modelslab.com/models/open_router/qwen-qwen-vl-plus)[Open Router](https://modelslab.com/models/open_router)

 [Qwen: Qwen VL Plus

Closed Source Model](https://modelslab.com/models/open_router/qwen-qwen-vl-plus)

[CV](https://modelslab.com/models/together_ai/deepcogito-cogito-v1-preview-qwen-14B)[Together AI](https://modelslab.com/models/together_ai)

 [Cogito V1 Preview Qwen 14B

Closed Source Model](https://modelslab.com/models/together_ai/deepcogito-cogito-v1-preview-qwen-14B)

[QQ](https://modelslab.com/models/open_router/qwen-qwen3-235b-a22b-2507)[Open Router](https://modelslab.com/models/open_router)

 [Qwen: Qwen3 235B A22B Instruct 2507

Closed Source Model](https://modelslab.com/models/open_router/qwen-qwen3-235b-a22b-2507)

[ZG](https://modelslab.com/models/open_router/z-ai-glm-4.5v)[Open Router](https://modelslab.com/models/open_router)

 [Z.ai: GLM 4.5V

Closed Source Model](https://modelslab.com/models/open_router/z-ai-glm-4.5v)

[QQ](https://modelslab.com/models/open_router/qwen-qwen3-8b)[Open Router](https://modelslab.com/models/open_router)

 [Qwen: Qwen3 8B

Closed Source Model](https://modelslab.com/models/open_router/qwen-qwen3-8b)

[Q7](https://modelslab.com/models/together_ai/Qwen-Qwen2.5-7B)[Together AI](https://modelslab.com/models/together_ai)

 [Qwen2.5 7B

Closed Source Model](https://modelslab.com/models/together_ai/Qwen-Qwen2.5-7B)

[G4](https://modelslab.com/models/together_ai/google-gemma-4-26B-A4B-it)[Together AI](https://modelslab.com/models/together_ai)

 [Gemma 4 26B A4b It

Closed Source Model](https://modelslab.com/models/together_ai/google-gemma-4-26B-A4B-it)

[OO](https://modelslab.com/models/open_router/openai-o3)[Open Router](https://modelslab.com/models/open_router)

 [OpenAI: o3

Closed Source Model](https://modelslab.com/models/open_router/openai-o3)

[MM](https://modelslab.com/models/open_router/mistralai-mistral-small-2603)[Open Router](https://modelslab.com/models/open_router)

 [Mistral: Mistral Small 4

Closed Source Model](https://modelslab.com/models/open_router/mistralai-mistral-small-2603)

[Q1](https://modelslab.com/models/together_ai/Qwen-Qwen3-1.7B-Base)[Together AI](https://modelslab.com/models/together_ai)

 [Qwen3 1.7B Base

Closed Source Model](https://modelslab.com/models/together_ai/Qwen-Qwen3-1.7B-Base)

[AA](https://modelslab.com/models/open_router/arcee-ai-spotlight)[Open Router](https://modelslab.com/models/open_router)

 [Arcee AI: Spotlight

Closed Source Model](https://modelslab.com/models/open_router/arcee-ai-spotlight)

[ML](https://modelslab.com/models/open_router/meta-llama-llama-3-70b-instruct)[Open Router](https://modelslab.com/models/open_router)

 [Meta: Llama 3 70B Instruct

Closed Source Model](https://modelslab.com/models/open_router/meta-llama-llama-3-70b-instruct)

[![GPT 5.2](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/2bdd00f4-1692-49d8-a562-72cb1753d0ff.png)](https://modelslab.com/models/openai/gpt-5.2)[Open Ai](https://modelslab.com/models/openai)

 [GPT 5.2

Closed Source Model](https://modelslab.com/models/openai/gpt-5.2)

[MM](https://modelslab.com/models/open_router/mistralai-mistral-large-2512)[Open Router](https://modelslab.com/models/open_router)

 [Mistral: Mistral Large 3 2512

Closed Source Model](https://modelslab.com/models/open_router/mistralai-mistral-large-2512)

[AN](https://modelslab.com/models/open_router/amazon-nova-premier-v1)[Open Router](https://modelslab.com/models/open_router)

 [Amazon: Nova Premier 1.0

Closed Source Model](https://modelslab.com/models/open_router/amazon-nova-premier-v1)

[TD](https://modelslab.com/models/open_router/tngtech-deepseek-r1t2-chimera)[Open Router](https://modelslab.com/models/open_router)

 [TNG: DeepSeek R1T2 Chimera

Closed Source Model](https://modelslab.com/models/open_router/tngtech-deepseek-r1t2-chimera)

[ZG](https://modelslab.com/models/open_router/z-ai-glm-4.5)[Open Router](https://modelslab.com/models/open_router)

 [Z.ai: GLM 4.5

Closed Source Model](https://modelslab.com/models/open_router/z-ai-glm-4.5)

About Anthropic Claude Sonnet Latest
---

Anthropic Claude Sonnet Latest is a text generation AI model by ~Anthropic available on ModelsLab. Access Anthropic Claude Sonnet Latest through our API with pay-per-use pricing and no minimum commitments.

### Technical Specifications

Model IDanthropic-claude-sonnet-latestCategoryLLM ModelsTaskText GenerationPrice$9.000000 per million tokensAddedApril 27, 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 Latest 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-latest",
        "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.com/models/~anthropic/anthropic-claude-sonnet-latest/api) for SDKs, code examples in Python, JavaScript, and more.

### Pricing

Anthropic Claude Sonnet Latest 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

[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 Latest FAQ
---

### What is Anthropic Claude Sonnet Latest?

Anthropic Claude Sonnet Latest is a text generation AI model by ~Anthropic available on ModelsLab. Access it through our API with pay-per-use pricing and no minimum commitments.

### How do I use the Anthropic Claude Sonnet Latest API?

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

### How much does Anthropic Claude Sonnet Latest cost?

Anthropic Claude Sonnet Latest 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 Latest model ID?

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

### Does Anthropic Claude Sonnet Latest have a free tier?

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