Claude

Anthropic: Claude Opus 4.6

Chat
anthropic/claude-opus-4.6

Opus 4.6 是 Anthropic 面向编码和长期专业任务的高能力模型,适合跨完整工作流运行的代理场景。它在大型代码库、复杂重构、多阶段调试和持续知识工作中更可靠,能够在长输出和长会话中保持上下文连贯。

1M context window
128K max output tokens
Released: 2026-02-05
Protocols:OpenAIAnthropic
Capabilities:VisionFunction CallingReasoningPrompt CachingPDF Input

About

Opus 4.6 is Anthropic’s strongest model for coding and long-running professional tasks. It is built for agents that operate across entire workflows rather than single prompts, making it especially effective for large codebases, complex refactors, and multi-step debugging that unfolds over time. The model shows deeper contextual understanding, stronger problem decomposition, and greater reliability on hard engineering tasks than prior generations.Beyond coding, Opus 4.6 excels at sustained knowledge work. It produces near-production-ready documents, plans, and analyses in a single pass, and maintains coherence across very long outputs and extended sessions. This makes it a strong default for tasks that require persistence, judgment, and follow-through, such as technical design, migration planning, and end-to-end project execution.

Pricing1.5折

TypeHaoAI PriceOfficial ReferenceRate
输入 Token$0.75/M$5/M0.15x · 节省 85%
输出 Token$3.75/M$25/M0.15x · 节省 85%
缓存读取$0.075/M$0.5/M0.15x · 节省 85%
缓存写入$0.938/M$6.25/M0.15x · 节省 85%
缓存写入 5 分钟$0.938/M$6.25/M0.15x · 节省 85%
缓存写入 1 小时$1.5/M$10/M0.15x · 节省 85%

Code Examples

import anthropic

client = anthropic.Anthropic(
    base_url="https://api.hao.ai/anthropic",
    api_key="YOUR_HAOAI_API_KEY",
)

message = client.messages.create(
    model="anthropic/claude-opus-4.6",
    max_tokens=1024,
    messages=[
        {"role": "user", "content": "Hello!"}
    ],
)

print(message.content[0].text)

Related Models