Anthropic

Claude Opus 4.7

anthropic/claude-opus-4.7
/v1/chat/completions/v1/messages/v1/responses/v1beta/models/*/v1/models/*

Opus 4.7 是 Anthropic Opus 系列的下一代产品,专为长时间运行的异步代理而设计。它在 Opus 4.6 的编码和代理功能优势基础上,显著提升了复杂多步骤任务的性能,并在扩展工作流中实现了更可靠的代理执行。对于任务随时间展开的异步代理管道(例如大型代码库、多阶段调试和端到端项目编排),Opus 4.7 尤为有效。

输入 / 输出模态
文本 · 图像 至 文本
参考输入 / 输出价格
输入¥35输出¥175每百万 Token
上下文长度
1M
收录时间
2026年4月17日

供应通道与价格

供应通道输入 /M输出 /M缓存读取 /M上下文最大输出详情
Amazon Bedrock¥35¥175¥3.51M128K
Vertex¥35¥175¥3.51M128K
Google Vertex¥35¥175¥3.51M128K

Amazon Bedrock

延迟
1.89s
吞吐量
50 tokens/s
上下文
1M

价格

输入
¥35/M tokens
输出
¥175/M tokens
缓存
¥3.5/M tokens
缓存写入(1 小时)
¥70/M tokens
缓存写入(5 分钟)
¥43.75/M tokens

其他价格

cache write
¥43.75
cache read
¥3.5
cache write price 5m
¥43.75
cache write price 1h
¥70

规格

上下文
1M
最大输出
128K
支持的 API
/v1/chat/completions/v1/messages/v1/responses/v1beta/models/*/v1/models/*

Vertex

延迟
5.82s
吞吐量
2 tokens/s
上下文
1M

价格

输入
¥35/M tokens
输出
¥175/M tokens
缓存
¥3.5/M tokens
缓存写入(1 小时)
¥70/M tokens
缓存写入(5 分钟)
¥43.75/M tokens

其他价格

cache write
¥43.75
cache read
¥3.5
cache write price 5m
¥43.75
cache write price 1h
¥70

规格

上下文
1M
最大输出
128K
支持的 API
/v1/chat/completions/v1/messages/v1/responses/v1beta/models/*/v1/models/*

Google Vertex

延迟
5.03s
吞吐量
107 tokens/s
上下文
1M

价格

输入
¥35/M tokens
输出
¥175/M tokens
缓存
¥3.5/M tokens
缓存写入(1 小时)
¥70/M tokens
缓存写入(5 分钟)
¥43.75/M tokens

其他价格

cache write
¥43.75
cache read
¥3.5
cache write price 5m
¥43.75
cache write price 1h
¥70

规格

上下文
1M
最大输出
128K
支持的 API
/v1/chat/completions/v1/messages/v1/responses/v1beta/models/*/v1/models/*

Claude Opus 4.7 的示例代码与 API 说明

Modelmesh 会帮你在不同服务提供商之间规范化处理请求和响应,为你统一接口。

Modelmesh 提供了兼容 OpenAI 的 Completion API,可连接 300 多款模型与服务提供商,既可直接调用,也可通过 OpenAI SDK 调用。此外,还提供了一些第三方 SDK。

在以下示例中,Modelmesh 专用的请求头属于可选项。若你配置了这些请求头,你的应用就能出现在 Modelmesh 的排行榜上。

支持的接口点击接口可切换下方示例
/v1/chat/completions
from openai import OpenAI API_KEY = "$SSY_API_KEY" client = OpenAI( base_url="https://router.shengsuanyun.com/api/v1", api_key=API_KEY, ) try: completion = client.chat.completions.create( model="anthropic/claude-opus-4.7", messages=[{"role": "user", "content": "9.11 和 9.8 哪个数更大?"}], temperature=0.6, top_p=0.7, stream=True, ) response_text = "" for chunk in completion: if chunk.choices and chunk.choices[0].delta.content is not None: content = chunk.choices[0].delta.content print(content, end="", flush=True) response_text += content except Exception as error: print(f"Request failed: {error}")
                
              

相关模型