Claude Haiku 4.5 是当前 Claude 产品线中的速度档;Anthropic 称它为「具备接近前沿智能的最快模型」。
- 输入
- 文本 图像 $1/M
- 输出
- 文本 $5/M
- 缓存读取
- $0.1/M
- 上下文
- 200K
- 对比 GPT-4o
- 便宜约 80%
- 知识截止
- 2025-02
Benchmark 成绩
供应商公布: Alibaba (Qwen) Anthropic ByteDance Google Moonshot OpenAI Tencent Z.ai
价格在同类中的位置
价格在 68 个同类模型中的位置
这条线标出该模型的价格在 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 参数;早先轮次的思考块会被剥离,只保留最后一个;不支持交错思考,beta 请求头虽被接受但会被忽略 |
| 参数 | reasoning_effort |
| 取值 | minimal · low · medium · high 这是网关侧的参数,实际以上方的供应商映射为准 |
模型
| 模态 | 文本 + 图像 → 文本 |
|---|
- 具备接近前沿智能的最快 Claude
- 支持扩展思考(非自适应)
- 200k 上下文 / 64k 最大输出
一条提示词,经网关实测
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 计数暴露出的隐藏思考计费差额。
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 效率。
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),以及结构化输出路径的差异。
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)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://synthorai.io/v1",
apiKey: "sk-syn-...",
});
const resp = await client.chat.completions.create({
model: "claude-haiku-4-5",
messages: [{ role: "user", content: "Summarize this diff" }],
});
console.log(resp.choices[0].message.content);curl https://synthorai.io/v1/chat/completions \
-H "Authorization: Bearer sk-syn-..." \
-H "Content-Type: application/json" \
-d '{
"model": "claude-haiku-4-5",
"messages": [{"role": "user", "content": "Hello"}]
}'package main
import (
"context"
"fmt"
"github.com/openai/openai-go/v3"
"github.com/openai/openai-go/v3/option"
)
func main() {
client := openai.NewClient(
option.WithBaseURL("https://synthorai.io/v1"),
option.WithAPIKey("sk-syn-..."),
)
resp, _ := client.Chat.Completions.New(context.TODO(), openai.ChatCompletionNewParams{
Model: "claude-haiku-4-5",
Messages: []openai.ChatCompletionMessageParamUnion{
openai.UserMessage("Summarize this diff"),
},
})
fmt.Println(resp.Choices[0].Message.Content)
}import com.openai.client.OpenAIClient;
import com.openai.client.okhttp.OpenAIOkHttpClient;
import com.openai.models.chat.completions.*;
OpenAIClient client = OpenAIOkHttpClient.builder()
.baseUrl("https://synthorai.io/v1")
.apiKey("sk-syn-...")
.build();
ChatCompletion resp = client.chat().completions().create(
ChatCompletionCreateParams.builder()
.model("claude-haiku-4-5")
.addUserMessage("Summarize this diff")
.build());
System.out.println(resp.choices().get(0).message().content().orElse(""));关于 Claude Haiku 4.5
- 它是现役 Claude 模型中延迟最低、价格最低的一款,提供 200K token 上下文窗口、最高 64K 输出 token、扩展思考支持、视觉输入、工具调用和提示词缓存。
- Anthropic 自己的选型指南把它的负载列为实时应用、大批量智能处理、仍需较强推理的成本敏感部署,以及子智能体任务,并把它作为一条明确以效率优先的采用路径的起点:从这里开始,只在具体的能力缺口迫使你升级时才升级。
- 它的思考模型是旧的那一套,移植提示词时这一点很重要。
- 它只支持扩展思考,需要显式的 token 预算,该预算必须高于 1,024 且低于响应上限;自适应思考类型会返回错误,也没有 effort 参数。
- 交错思考同样不受支持。
- 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 的输入价为 $1/百万 token,输出价为 $5/百万 token。这就是供应商官网价,平台不加价。缓存命中的输入 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 key 就能调用网关上的全部模型。
Claude Haiku 4.5 的知识截止日期是什么时候?
Claude Haiku 4.5 的知识截止日期是 2025-02,以供应商官方文档为准(核对于 2026-07-09)。
相关模型
对比
本页的每个数值都照录自供应商自己的文档(链接见上),并标有核对日期。价格是在整个目录范围内比较的;各家供应商定义不一样的规格项,只说明差异,不画图对比。这里没有任何一项是我们自己测的,也不打分。