Claude

Anthropic: Claude Opus 4.6

Chat
anthropic/claude-opus-4.6

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

1M 上下文窗口
128K 最大输出 token
发布日期: 2026-02-05
支持的协议:OpenAIAnthropic
能力:视觉函数调用推理提示缓存PDF 输入

介绍

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.

定价1.5折

类型HaoAI 价格官方参考价倍率
输入 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%

代码示例

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)

相关模型