Unlock exclusive introductory pricing for the newly launched Gemini 3.5 Flash.

Claude Sonnet 4.6 giảm giá 5% cho đến May 15, 2027 at 1:00 AM (UTC)

A

Claude Sonnet 4.6

Đầu vào:$2.4/M
Đầu ra:$12/M
Ngày phát hành:Oct 30, 2025

Claude Sonnet 4.6 is our most capable Sonnet model yet. It’s a full upgrade of the model’s skills across coding, computer use, long-context reasoning, agent planning, knowledge work, and design. Sonnet 4.6 also features a 1M token context window in beta.

Mới
Phổ biến
Sử dụng thương mại

Playground cho Claude Sonnet 4.6

Khám phá Playground của Claude Sonnet 4.6 — môi trường tương tác để kiểm tra mô hình và chạy truy vấn theo thời gian thực. Thử prompts, điều chỉnh tham số và lặp lại ngay lập tức để tăng tốc phát triển và xác thực các trường hợp sử dụng.

Technical specifications — Claude Sonnet 4.6

ItemClaude Sonnet 4.6 (public summary)
ProviderAnthropic
Model familySonnet (Claude v4.x family) — Sonnet 4.6 variant
Model id (canonical)claude-sonnet-4-6
Input typesText (primary). Limited/secondary support for structured tool/JSON I/O. Not positioned as a primary image-generation model.
Output typesText (natural language, structured JSON, code, and tool-call payloads)
Context window~200,000 tokens (approx.) — designed for multi-document and long-session coherence
Function-calling / tool useYes — structured tool invocation, JSON-constrained outputs, agent-style orchestration supported
MultimodalityLimited — Sonnet is focused on text and structured tool integration; not optimized for image generation.
Release note highlightsStability/improvements in long-context reasoning, lower-latency Sonnet variant tuned for speed–accuracy tradeoffs, improved instruction adherence.

What Is Claude Sonnet 4.6

Claude Sonnet 4.6 is the latest evolution of Anthropic’s Sonnet model line, designed to deliver near-Opus performance at a more accessible price point. It upgrades Sonnet from its earlier 4.5 iteration, bringing stronger instruction following, vastly expanded context support, improved coding and computer use skills, and broader multi-step reasoning abilities — all while maintaining pricing parity with Sonnet 4.5.

Unlike Opus models, which are flagship and optimized for heavy agentic workloads, Sonnet 4.6 targets developers and general knowledge work where broad capability and cost-effectiveness matter.

Main Features of Claude Sonnet 4.6

  • 1M Token Context Window (Beta): Sonnet 4.6 supports up to one million tokens of context in beta — roughly enough to ingest entire codebases, stacks of legal contracts, or multiple academic papers in a single request.
  • Improved Coding Performance: Compared with Sonnet 4.5, Sonnet 4.6 shows significant gains in real-world developer tasks and benchmarks like SWE-Bench Verified (~79.6% score reported), making it suitable for complex coding tasks.
  • Enhanced Computer Use: New levels of competency in tasks involving operating software (spreadsheets, multi-step web form workflows, etc.) approaching human-level performance on OSWorld-Verified tests.
  • Adaptive Thinking: The model incorporates enhanced reasoning strategies and can dynamically allocate internal computation to tackle complex problems step by step.
  • Stronger Instruction Following: Users report more consistency and precision in following detailed requests, with fewer hallucinations and better task completion.
  • Safety & Prompt Injection Resistance: Anthropic has improved robustness over Sonnet 4.5 in resisting prompt injection attacks and similar vulnerabilities.

Benchmark Performance of Claude Sonnet 4.6

EvaluationClaude Sonnet 4.6 (approx.)Notes
SWE-Bench Verified~79.6%Strong coding performance close to Opus-class.
OSWorld-Verified (Computer Use)~72.5%Near human-level task performance; powerful for workflows.
ARC-AGI-2~60.4%Reflects broad reasoning strength.

As a mid-tier model, Sonnet 4.6 narrows the performance gap with Opus models significantly, making it suitable for many tasks previously reserved for flagship class.

Claude Sonnet 4.6 vs Other Claude Models

ModelBest ForKey Differences
Claude Sonnet 4.6Balanced coding, reasoning, large contextsMassive context window beta, cost-efficient, strong for workflow tasks.
Claude Sonnet 4.5Mid-tier general tasksLower benchmarks, smaller context window before 4.6.
Claude Opus 4.6Deep reasoning & agentic codingStronger raw reasoning and agent capabilities; pricier.

Compared to Sonnet 4.5, the 4.6 release boosts contextual understanding and performance on office-style tasks; compared to Opus models, Sonnet sits slightly below in flagship reasoning power but often closer than expected in coding and general task benchmarks.


Limitations of Claude Sonnet 4.6

  • Beta Context Window: The 1M token context is currently in beta — adoption and stability may vary depending on API usage and plan.
  • Latency & Cost: Handling very large contexts increases computational cost and may introduce higher latency on API calls relative to smaller contexts.
  • Benchmark Granularity: While strong in reported tests, Sonnet may lag a bit behind Opus on the most complex reasoning or multidisciplinary benchmarks.

Representative Use Cases of Claude Sonnet 4.6

  1. Large Codebase Assistance: Ideal for ingesting and reasoning about entire software systems, refactorings, or cross-file dependencies.
  2. Document & Research Synthesis: Useful for long-document analysis where context extends beyond typical limits.
  3. Workflow Automation: Solving multi-step computer tasks, such as spreadsheets and form automation.
  4. General Knowledge Work: Suitable for knowledge workers needing reliable instruction following and reasoning without the cost of flagship models.

How to access and use Claude Sonnet 4.6 API

Step 1: Sign Up for API Key

Log in to cometapi.com. If you are not our user yet, please register first. Sign into your CometAPI console. Get the access credential API key of the interface. Click “Add Token” at the API token in the personal center, get the token key: sk-xxxxx and submit.

Step 2: Send Requests to claude-sonnet-4-6 API

Select the “claude-opus-4-6” endpoint to send the API request and set the request body. The request method and request body are obtained from our website API doc. Our website also provides Apifox test for your convenience. Replace <YOUR_API_KEY> with your actual CometAPI key from your account. Where to call it:  Anthropic Messages format and Chat format.

Insert your question or request into the content field—this is what the model will respond to . Process the API response to get the generated answer.

Step 3: Retrieve and Verify Results

Process the API response to get the generated answer. After processing, the API responds with the task status and output data.

Câu Hỏi Thường Gặp

Giá cả cho Claude Sonnet 4.6

Khám phá mức giá cạnh tranh cho Claude Sonnet 4.6, được thiết kế để phù hợp với nhiều ngân sách và nhu cầu sử dụng khác nhau. Các gói linh hoạt của chúng tôi đảm bảo bạn chỉ trả tiền cho những gì bạn sử dụng, giúp dễ dàng mở rộng quy mô khi yêu cầu của bạn tăng lên. Khám phá cách Claude Sonnet 4.6 có thể nâng cao các dự án của bạn trong khi vẫn kiểm soát được chi phí.

ModelComet Price (USD / M Tokens)Official Price (USD / M Tokens)Discount
claude-sonnet-4-6
Đầu vào:$2.4/M
Đầu ra:$12/M
Đầu vào:$3/M
Đầu ra:$15/M
-20%

Mã mẫu và API cho Claude Sonnet 4.6

Truy cập mã mẫu toàn diện và tài nguyên API cho Claude Sonnet 4.6 để tối ưu hóa quy trình tích hợp của bạn. Tài liệu chi tiết của chúng tôi cung cấp hướng dẫn từng bước, giúp bạn khai thác toàn bộ tiềm năng của Claude Sonnet 4.6 trong các dự án của mình.

curl https://api.cometapi.com/v1/messages \
     --header "Authorization: Bearer $COMETAPI_KEY \
     --header "content-type: application/json" \
     --data \
'{
    "model": "claude-sonnet-4-6",
    "max_tokens": 1024,
    "messages": [
        {"role": "user", "content": "Hello, Claude"}
    ]
}'

cURL Code Example

curl https://api.cometapi.com/v1/messages \
     --header "Authorization: Bearer $COMETAPI_KEY \
     --header "content-type: application/json" \
     --data \
'{
    "model": "claude-sonnet-4-6",
    "max_tokens": 1024,
    "messages": [
        {"role": "user", "content": "Hello, Claude"}
    ]
}'

Python Code Example

import anthropic
import os

# Get your CometAPI key from https://api.cometapi.com/console/token, and paste it here
COMETAPI_KEY = os.environ.get("COMETAPI_KEY") or "<YOUR_COMETAPI_KEY>"
BASE_URL = "https://api.cometapi.com"

message = anthropic.Anthropic(
    base_url=BASE_URL,
    api_key=COMETAPI_KEY,
)
messages = message.messages.create(
    model="claude-sonnet-4-6",
    max_tokens=1024,
    messages=[{"role": "user", "content": "Hello, Claude"}],
)
print(messages.content[0].text)

JavaScript Code Example

import Anthropic from "@anthropic-ai/sdk";

// Get your CometAPI key from https://api.cometapi.com/console/token, and paste it here
const api_key = process.env.COMETAPI_KEY || "<YOUR_COMETAPI_KEY>";
const base_url = "https://api.cometapi.com";

const anthropic = new Anthropic({
  apiKey: api_key,
  baseURL: base_url,
});

const message = await anthropic.messages.create({
  model: "claude-sonnet-4-6",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Hello, Claude" }],
});
console.log(message.content[0].text);

Uptime

Tỷ lệ thành công của yêu cầu trong 30 ngày qua, phản ánh độ tin cậy của từng nhà cung cấp mô hình. CometAPI giám sát tất cả các nhà cung cấp được kết nối theo thời gian thực, 24/7.

RespondLIVE
3619msAvg. Response
UptimeLIVE
91.8%Avg. Uptime

Các phiên bản của Claude Sonnet 4.6

Lý do Claude Sonnet 4.6 có nhiều snapshot có thể bao gồm các yếu tố tiềm năng như: sự thay đổi đầu ra sau các bản cập nhật cần các snapshot cũ để đảm bảo tính nhất quán, cung cấp cho nhà phát triển thời gian chuyển tiếp để thích ứng và di chuyển, cũng như các snapshot khác nhau tương ứng với các endpoint toàn cầu hoặc khu vực nhằm tối ưu hóa trải nghiệm người dùng. Để biết chi tiết về sự khác biệt giữa các phiên bản, vui lòng tham khảo tài liệu chính thức.

Version
claude-sonnet-4-6