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
价格在同类中的位置
价格在 60 个同类模型中的位置
这条线显示该模型的价格,在 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 最大输出
单个 Prompt —— 通过网关实测
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 支持提示词缓存(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)。
相关模型
对比
本页每个值都转录自厂商自己的文档(链接见上),并带有核对日期。价格在全目录范围内比较;各厂商定义不同的规格值,只说明差异而不作图表对比。此处没有任何由我们测量的数据,也不做评分。