新帳號 免費註冊,送 10 次呼叫,最高 $1,免綁卡。

Claude Haiku 4.5

發布於 2025-10-15

chat程式碼工具呼叫圖像理解提示詞快取推理

Claude Haiku 4.5 是目前 Claude 產品線中的速度等級,Anthropic 把它描述為「具備接近前沿智慧的最快模型」。

輸入
文字 圖像 $1/M
輸出
文字 $5/M
快取讀取
$0.1/M
上下文
200K
相較 GPT-4o
便宜約 80%
知識截止
2025-02

Benchmark 成績

高於平均0 / 6
Claude Haiku 4.5 其他有成績的模型 其他模型平均 ★ 沒有模型分數更高
SWE-Bench Pro
39.5%
OSWorld-Verified
50.7%
GDPval-AA v2 Elo · 642-1171 據 Google 公布 · 2026-08-26
907
GDM-MRCR v2 (8-needle) 128k (average)
35.3%
CharXiv (RQ) no tools
61.7%

供應商公布: Alibaba (Qwen) Anthropic ByteDance Google Moonshot OpenAI Tencent Z.ai

價格在同類中的位置

價格在 68 個同類模型中的位置

輸入$1/M
$0.1 · Dola Seed 2.0 Mini GPT-5.4 Pro · $30
輸出$5/M
$0.275 · DeepSeek V4 Flash GPT-5.4 Pro · $180
快取讀取$0.1/M
$0.01 · Claude Haiku 5.5 GPT-5.4 Pro · $15

這條線標出這個模型的價格,在 Synthorai 的同類模型裡落在什麼位置;兩端分別是最便宜和最貴的模型。這裡列的是基礎價,批次、區域和快取寫入的折扣請見價格頁。

規格與限制

Token

上下文視窗(供應商規格) 200,000
最大輸出(供應商規格) 64,000
知識截止 2025-02
訓練資料截至 2025-07 知識截止 2025-02

提示詞快取

快取方式 顯式(需主動開啟)
最小前綴 4,096 供應商預設 1,024
存活時間 預設 5 分鐘,可選 1 小時
寫入成本 1.25x (5m) / 2x (1h)

思考

供應商參數 thinking.type "enabled" + budget_tokens
可接受的值 budget_tokens at least 1,024 and below max_tokens; "adaptive" returns 400
預設值 關閉,除非請求明確設定,否則不會思考 請求未指定時生效
可關閉 支援
思考行為 僅支援擴展思考,沒有 effort 參數;較早輪次的 thinking 區塊會被剝除,只保留最後一個;不支援交錯思考,beta header 雖被接受但會被忽略。
參數 reasoning_effort
參數值 minimal · low · medium · high 這是閘道的參數,實際以上方的供應商對應為準

模型

模態 文字 + 圖像 → 文字
  • 具備接近前沿智慧的最快 Claude
  • 支援擴展思考(非自適應)
  • 200k 上下文 / 64k 最大輸出

依據 Anthropic 官方文件 ↗

一段提示詞,經閘道實測

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

Claude Haiku 4.5 通過 · 3 sentences

# Why Your LLM Bill Doubled Reasoning models like o1 and o3 process queries through extended chains of thought before responding, consuming 5-10x more tokens internally than standard models while also charging higher per-token rates. This means both your input token usage and per-unit costs increased simultaneously—a compounding effect that easily doubles overall spend. Unless you've significantly reduced queries to other models or have very selective reasoning deployment, the math makes a doubling entirely predictable.

輸出 106 tok 延遲 2.8 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 Haiku 4.5 通過 · 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 best = max(best, cur) else: cur = 1 return best ``` # Bug Explanation The original function has two related bugs stemming from incorrect initialization and loop logic. First, `best` and `cur` start at 0, which causes single-element lists to incorrectly return 0 instead of 1—a run of one identical element should have length 1. Second, `cur` is reset to 0 (not 1) when a mismatch occurs, causing the next matching pair to be undercounted. More critically, if the longest run ends at the last index, `best` is only updated *during* the loop when a mismatch is encountered; if no mismatch follows the final run, `best` never captures it. […]

輸出 310 tok 延遲 4.0 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 Haiku 4.5 通過 · 5/5 fields, guidance null

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

輸出 63 tok 延遲 1.6 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 Haiku 4.5 通過 · 123 words, 0 banned, 1 question

# Introducing Prompt Cache Across Providers We're excited to announce our latest API gateway feature: intelligent prompt caching that works across multiple AI providers. This powerful capability stores frequently used prompts and their contexts, dramatically reducing latency and API costs for your applications. By intelligently managing cached prompts across providers like OpenAI, Anthropic, and others, you can optimize your infrastructure without changing your code. Why wait for responses when cached results can be delivered instantly? The system automatically handles cache invalidation and updates, ensuring your applications always access current information while maintaining performance gains. With support for complex multi-turn conversations and dynamic content, this feature scales seamlessly with your business needs. […]

輸出 165 tok 延遲 3.0 s

是否遵守限制(字數上限、禁用詞清單、只能有一句問句)、文字風格的特徵,以及長度控制。

30 秒上手 Claude Haiku 4.5

相容 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-haiku-4-5",
    messages=[{"role": "user", "content": "Summarize this diff"}],
)
print(resp.choices[0].message.content)

關於 Claude Haiku 4.5

  • 它是現役 Claude 模型中延遲最低、價格也最低的一款,提供 200K token 上下文視窗、最高 64K 輸出 token、擴展思考支援、視覺輸入、工具呼叫與提示詞快取。
  • Anthropic 自己的選型指引把它的工作負載列為即時應用、大批量的智慧處理、仍然需要較強推理能力的成本敏感型部署,以及子智慧體任務;它同時錨定了一條明確以效率優先的採用路徑:先從這裡開始,只有在某個特定的能力缺口逼你升級的時候才往上走。
  • 它採用的是較舊的那一套思考機制,而這一點在移植 prompt 的時候很重要。
  • 它只支援擴展思考,並且需要一個明確的 token 預算,這個預算必須高於 1,024 而且低於回應上限;adaptive 這種思考型別會回傳錯誤,也沒有力度參數可以用。
  • 交錯思考同樣不受支援。
  • 相關的 beta 標頭會被接受,但會被忽略。
  • 提示詞快取要求的最小前綴為 4,096 token,是這個家族中最嚴格的,而且先前輪次的思考區塊會被剝離,而不是保留下來。
  • 結構化輸出已經正式發布,上下文視窗則固定為 200K,沒有長上下文的變體。
  • 這樣的特性組合適合大批量的聊天、分類,以及最看重回應速度的編碼助手。
  • Synthorai 透過其 OpenAI 相容 chat 端點提供 Claude Haiku 4.5,切換只需要改一個模型名稱。

常見問題

Claude Haiku 4.5 API 可以免費試用嗎?

可以,新帳號有 10 次試用呼叫和最高 $1 的免費額度,免綁卡。以輸入價 $1/M 計算,光是這筆額度就夠你對 Claude Haiku 4.5 發出約 125 次請求,每次約 8K token。

Claude Haiku 4.5 最擅長什麼?

最快且具備接近前沿的智慧、現役產品線中延遲與價格最低、擴展思考、視覺輸入與提示詞快取。完整介紹請見「關於」一節,內容取自供應商官方的發布說明。

Claude Haiku 4.5 的價格是多少?

在 Synthorai 上,Claude Haiku 4.5 的輸入價是每百萬 token $1,輸出價是每百萬 token $5。這就是供應商官網價,平台不加價。快取命中的輸入 token 以 $0.1/M 計費。

Claude Haiku 4.5 的上下文長度是多少?

Claude Haiku 4.5 的上下文長度(上下文視窗)是 200K token。單次回覆最多輸出 64,000 個 token。

Claude Haiku 4.5 支援提示詞快取(prompt caching)嗎?

支援,需主動開啟:以 cache_control 中斷點標記穩定前綴。快取命中的輸入 token 以 $0.1/M 計費(未命中為 $1/M);提示詞要有 4,096 個 token 以上的穩定前綴,才能命中快取(TTL 預設 5 分鐘,可選 1 小時)。 提示詞快取指南 →

如何開通 Claude Haiku 4.5?

把現有 OpenAI SDK 的 base_url 指向 "https://synthorai.io/v1",model 設為 "claude-haiku-4-5" 就可以了。一把 API 金鑰就能呼叫閘道上的所有模型。

Claude Haiku 4.5 的知識截止日期是什麼時候?

Claude Haiku 4.5 的知識截止日期為 2025-02,依據供應商官方文件(查核日期:2026-07-09)。

相關模型

比較

本頁每一個數值都摘錄自供應商自己的文件(連結見上方),並附上查核日期。價格是放在整個目錄裡比較;各家供應商定義不一樣的規格,只說明差異,不畫成圖表比較。這裡沒有任何數據是我們自己量測的,也不做評分。

取得 API 金鑰 算算你的成本 →