新用戶 免費註冊,送 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 請求未指定時生效
可關閉 支援
思考行為 工具呼叫之間的推理一律出現在 thinking 區塊中,無需 beta header;display 預設為 omitted,因此除非把 display 設為 summarized,否則回傳的 thinking 區塊中 thinking 欄位為空;較早輪次的 thinking 區塊會保留在上下文中並按輸入計費。
參數 reasoning_effort
取值 minimal · low · medium · high 閘道側參數面——以上方廠商映射為準

模型

模態 文字 + 影像 → 文字
  • 預設 1M 上下文
  • effort 預設為 high
  • fast mode 以研究預覽形式提供
  • 支援會話中途的 system 訊息
  • 可快取提示詞的最小長度降至 1,024 token
  • 高解析度影像輸入

依據 Anthropic 官方文件 ↗

單一提示詞 — 經由閘道測量

提示詞 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 輸出、自適應思考與視覺能力,另外還有電腦使用,以及 4.7 引入的高解析度影像輸入。
  • 自適應思考在未請求時是關閉的,但只有在某一輪次確實需要時才會觸發推理,Anthropic 表示這在相同力度下比 4.7 浪費更少的思考 token;力度在所有介面上都預設為 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 金鑰 算算你的成本 →