新人 免费注册,送 10 次调用,最高 $1,免绑卡。

Claude Opus 4.8

发布于 2026-05-28

chat代码推理工具调用图像理解提示词缓存

Claude Opus 4.8 是 Anthropic 面向复杂智能体编码与企业工作的 Opus 版本,直接构建于 Opus 4.7 之上。

输入
文本 图像 $5/M
输出
文本 $25/M
缓存读取
$0.5/M
上下文
1M
知识截止
2026-01

Benchmark 成绩

高于同侪均值无人分数更高82 / 12918 / 129
Claude Opus 4.8 其他被测模型 同侪均值 无人分数更高
SWE-Bench Pro
69.2%
BioMysteryBench hard
42.4%
OSWorld-Verified
83.4%
Cybergym
78.3%
HealthBench
52.4%
GDPval-AA v2 Elo · 642-1861
1593
Harvey Lab-AA
91.1%
GPQA Diamond
92%
Blueprint-Bench 2
14.5%
BrowseComp
84.3%
Video-MME (w. sub)
86%

厂商公布: Alibaba (Qwen) Anthropic ByteDance DeepSeek Google MiniMax Moonshot OpenAI Tencent Z.ai

价格在同类中的位置

价格在 60 个同类模型中的位置

输入$5/M
$0.05 · Qwen3 VL Flash GPT-5.4 Pro · $30
输出$25/M
$0.275 · DeepSeek V4 Flash GPT-5.4 Pro · $180
缓存读取$0.5/M
$0.0028 · DeepSeek V4 Flash GPT-5.4 Pro · $15

这条线显示该模型的价格,在 Synthorai 上同类模型里处于什么位置。两端标出了最便宜和最贵的那个。这里是基础价,批量、区域和缓存写入的折扣见价格页。

规格与限制

Token

上下文窗口(厂商规格) 1,000,000
最大输出(厂商规格) 128,000
知识截止 2026-01

提示词缓存

缓存方式 显式(需开启)
最低前缀 1,024
存活时间 默认 5 分钟,可选 1 小时
写入成本 1.25x (5m) / 2x (1h)

思考

厂商参数 thinking.type "adaptive" + output_config.effort
可选值 thinking.type adaptive · disabled; effort low · medium · high · xhigh · max; "enabled" returns 400
默认值 思考关闭;effort 为 high 请求未指定时生效
可关闭 支持
思考行为 工具调用之间的推理始终出现在思考块中,无需 beta 请求头;display 默认为 "omitted",因此除非设置 display "summarized",否则思考块返回时 thinking 字段为空;早先轮次的思考块会保留在上下文中并按输入计费
参数 reasoning_effort
取值 minimal · low · medium · high 网关侧参数面——以上方厂商映射为准

模型

模态 文本 + 图像 → 文本
  • 默认 1M 上下文
  • effort 默认为 high
  • fast mode 以研究预览形式提供
  • 支持会话中途的 system 消息
  • 可缓存提示词最小长度降至 1,024 token
  • 高分辨率图像输入

依据 Anthropic 官方文档 ↗

单个 Prompt —— 通过网关实测

提示词 Explain to a CFO, in exactly three sentences, why our LLM bill doubled after we enabled reasoning. 检查 恰好 3 句

Claude Opus 4.8 通过 · 3 sentences

Reasoning models generate a hidden "thinking" phase before producing their final answer, and we're billed for every one of those internal tokens even though they never appear in the user-facing output. Because this deliberation often runs several times longer than the answer itself, our token consumption per request grew substantially even though our request volume stayed flat. The upside is that this trade buys us materially higher accuracy on complex tasks, so the right question isn't just cost but whether the improved output quality justifies the per-query premium for each use case.

输出 162 tok 延迟 4.2 s

指令遵循(恰好三句,可数)、受众适配(面向 CFO 的语气),以及下方 token 计量所暴露的隐藏思考计费缺口。

提示词 This function is supposed to return the longest run of consecutive equal items, but callers report it is off by one on single-element inputs and misses runs that end at the last index. Fix it and explain the bug in one paragraph. 检查 修复通过测试

Claude Opus 4.8 通过 · 8/8 cases

## Fixed Function ```python def longest_run(xs): if not xs: return 0 best = 1 cur = 1 for i in range(1, len(xs)): if xs[i] == xs[i - 1]: cur += 1 else: cur = 1 best = max(best, cur) return best ``` ## Explanation of the Bug The original code counted **transitions between equal adjacent elements** rather than the **length of the run** itself. It initialized `best` and `cur` to `0` and incremented `cur` only when a match was found, so a run of length *N* recorded a count of *N-1* (e.g., a single element `[5]` never enters the loop and returns `0` instead of `1`, and `[5, 5]` returns `1` instead of `2`)—this is the off-by-one. […]

输出 495 tok 延迟 9.2 s

修复是否真的正确(可运行)、解释的信息密度,以及在一个边界明确的任务上的 token 效率。

提示词 Extract a JSON object with fields {company, quarter, revenue_usd_m, growth_pct, guidance} from this text. Use null for anything not stated; add no other fields. 检查 合法 JSON,schema 精确

Claude Opus 4.8 通过 · 5/5 fields, guidance null

```json { "company": "Meridian Robotics", "quarter": "Q3", "revenue_usd_m": 412, "growth_pct": 11, "guidance": null } ```

输出 72 tok 延迟 1.8 s

schema 服从度(不臆造字段)、幻觉压力(guidance 明确被暂缓给出),以及结构化输出路径的差异。

提示词 Write a 120-word product announcement for an API gateway feature that caches prompts across providers. Forbidden words: "seamless", "unlock", "game-changer", "revolutionize", "empower". Exactly one sentence must be a question. 检查 120 词,0 个禁用词

Claude Opus 4.8 通过 · 121 words, 0 banned, 1 question

**Introducing Cross-Provider Prompt Caching** Today we're launching prompt caching directly within our API gateway, designed to cut latency and reduce your inference costs. When identical or overlapping prompts hit the gateway, cached responses are served instantly instead of being routed to the underlying model provider again. What makes this different from provider-specific caching? Our system works across OpenAI, Anthropic, Google, and any custom endpoint you configure, so you maintain one consistent cache regardless of which model handles a request. You control cache duration, invalidation rules, and scope through simple configuration settings. Teams running high-volume workloads can expect meaningful savings on repeated queries and faster response times for end users. Cross-provider prompt caching is available now for all customers on paid plans.

输出 258 tok 延迟 5.3 s

约束服从度(字数预算、禁用词表、唯一的那句问句)、文风指纹,以及长度控制。

30 秒用上 Claude Opus 4.8

OpenAI 兼容:换掉 base_url,SDK 不用改。POST /v1/chat/completions

from openai import OpenAI

client = OpenAI(
    base_url="https://synthorai.io/v1",
    api_key="sk-syn-...",
)

resp = client.chat.completions.create(
    model="claude-opus-4-8",
    messages=[{"role": "user", "content": "Summarize this diff"}],
    reasoning_effort="medium",
)
print(resp.choices[0].message.content)

关于 Claude Opus 4.8

  • 官方的新特性页面强调更好的长程智能体编码与改进的压缩恢复、更可靠的推理力度校准,以及更少被跳过的工具调用;Anthropic 还称它是更有效的协作者,修复了 4.7 上出现的注释冗长和工具调用问题。
  • 发布即有的新能力:可保留提示词缓存命中的会话中途 system 消息、降至 1,024 token 的缓存最小长度(此前为 2,048),以及输出速度最高提升 2.5 倍、按溢价费率计费的 fast-mode 研究预览。
  • 它拥有 1M token 上下文窗口、128K 输出、自适应思考和视觉能力,外加 computer use 和 4.7 引入的高分辨率图像输入。
  • 自适应思考默认关闭,除非主动请求,但只在某一轮确实需要时才触发推理,Anthropic 称在相同力度下它比 4.7 浪费更少的思考 token;effort 在所有接口上默认 high,并可达到 xhigh 和 max,编码与高自主度工作推荐使用 xhigh。
  • 它文档化的拒绝对象会返回一个类别和一段人类可读的说明,因此应用可以对不同类别的拒绝分别路由。
  • Anthropic 现已把它列入 Opus 5 一代之后的旧版模型。
  • Synthorai 通过开发者已在使用的 OpenAI 兼容端点提供它。

常见问题

Claude Opus 4.8 API 可以免费试用吗?

可以。新账号可获得 10 次试用调用和最高 $1 的免费额度,无需绑卡。按输入 $5/M 计算,仅这笔额度就足够对 Claude Opus 4.8 发起约 24 次 ~8K token 的请求。

Claude Opus 4.8 最擅长什么?

长程编码更好,压缩恢复改进、会话中途 system 消息保留缓存命中、fast-mode 预览,输出提速 2.5 倍。完整能力请见「关于」部分,内容取自厂商官方发布说明。

Claude Opus 4.8 的价格是多少?

在 Synthorai 上,Claude Opus 4.8 输入 $5/百万 token、输出 $25/百万 token,即厂商牌价,无平台加价。缓存命中的输入 token 按 $0.5/M 计费。

Claude Opus 4.8 支持提示词缓存(prompt caching)吗?

支持,需主动开启:用 cache_control 断点标记稳定前缀。缓存命中的输入 token 按 $0.5/M 计费(未命中 $5/M);提示词需有 1,024 token 以上的稳定前缀才能命中缓存(TTL 默认 5 分钟,可选 1 小时)。 Claude Opus 4.8 缓存指南 →

如何开通 Claude Opus 4.8?

把现有 OpenAI SDK 的 base_url 指向 "https://synthorai.io/v1",model 设为 "claude-opus-4-8" 即可。一把 API key 通用网关上的全部模型。

Claude Opus 4.8 的知识截止日期是什么时候?

Claude Opus 4.8 的知识截止日期为 2026-01,依据厂商官方文档(数据核验于 2026-07-09)。

相关模型

对比

本页每个值都转录自厂商自己的文档(链接见上),并带有核对日期。价格在全目录范围内比较;各厂商定义不同的规格值,只说明差异而不作图表对比。此处没有任何由我们测量的数据,也不做评分。

获取 API 密钥 算算你的成本 →