
Claude Fable 5.2 API
claude-fable-5-2Claude Fable 5.2 是 Anthropic 2026 年 11 月 9 日发布的 Fable 5.1 继任者,也是它目前对外开放的能力最强的模型。在 APIMODELS 上输入 $4.80、输出 $24.00 每 1M token,比 Anthropic 官方 $8 / $40 低 40%;缓存读 $0.12、缓存写 $6.00,5 分钟和 1 小时两种 TTL 同价(官方分别是 $0.20、$10、$16)。官方这次把挂牌价从 Fable 5.1 的 $10 / $50 下调了 20%,并称输出速度最多快 30%。按 Anthropic 发布表,智能体编码上它同时领先 Fable 5.1 和 Opus 5.5:FrontierCode 2.0 49.1%(xhigh effort;Fable 5.1 32.4%、Opus 5.5 45.5%),FrontierSWE v2 69.9%(56.3%、62.3%);长链路与知识工作上:Terminal-Bench-Science 0.1 74.6%(52.6%、58.7%),Remote Labor Index 41.3%(17.9%、21.3%),带工具的 Humanity's Last Exam 74.2%(65.6%、67.7%),不用工具的 Chartography 73.4%(44.8%、64.4%)。它也不是每项都第一:AutomationBench 上 Gemini 4 Carbon 是 53.9%,高于它的 51.4%。Anthropic 还给了一个成本口径:high effort 下它在 FrontierCode 上追平 Opus 5.5 的最好成绩,单任务成本约为后者一半;两者在我们这里都是官方六折,这个比例在 APIMODELS 上同样成立。规格:100 万 token 上下文、128K 最大输出,文字和图片输入。思考常开,用 output_config.effort 控制深浅(low 到 max,默认 high);temperature、top_p、top_k 和 budget_tokens 在上游已被取消,我们直接丢掉、不往上游发。Anthropic 对这个模型不接受强制调用工具(tool_choice 为 any 或指定工具),APIMODELS 会改成 tool_choice auto 并在指令里点名要调的工具,结构化输出也走这条路;不支持 assistant 预填。官方的安全防护会拒绝大部分高风险的网络安全任务(比如渗透测试、写漏洞利用),这类请求会返回 stop_reason refusal。一个 key 即可通过 /v1/messages(Claude Code、Anthropic SDK、Cursor)或 OpenAI 兼容的 /v1/chat/completions 调用,失败的请求不收钱。
API Documentation
View complete API reference with all parameters and examples.
Advanced Features
Streaming
Enable real-time streaming responses with Server-Sent Events.
{
"model": "claude-fable-5-2",
"stream": true,
"max_tokens": 1024,
"messages": [...]
}Function Calling (Tools)
Enable Claude to use tools and call functions.
{
"model": "claude-fable-5-2",
"max_tokens": 1024,
"tools": [{
"name": "get_weather",
"description": "Get current weather for a location",
"input_schema": {
"type": "object",
"properties": {
"location": {"type": "string", "description": "City name"}
},
"required": ["location"]
}
}],
"tool_choice": {"type": "auto"},
"messages": [{"role": "user", "content": "What's the weather in Tokyo?"}]
}PDF Support
Analyze PDF documents by sending them as base64 encoded content.
{
"model": "claude-fable-5-2",
"max_tokens": 1024,
"messages": [{
"role": "user",
"content": [{
"type": "document",
"source": {
"type": "base64",
"media_type": "application/pdf",
"data": "<base64_encoded_pdf>"
}
}, {
"type": "text",
"text": "Summarize this document."
}]
}]
}Structured Output (JSON Schema)
Get structured JSON responses that match your schema.
{
"model": "claude-fable-5-2",
"max_tokens": 1024,
"output_format": {
"type": "json_schema",
"schema": {
"type": "object",
"properties": {
"name": {"type": "string"},
"age": {"type": "integer"}
},
"required": ["name", "age"]
}
},
"messages": [{"role": "user", "content": "Extract info: John is 30 years old"}]
}Web Search
Enable Claude to search the web for up-to-date information.
{
"model": "claude-fable-5-2",
"max_tokens": 1024,
"tools": [{
"type": "web_search_20250305",
"name": "web_search",
"max_uses": 5
}],
"messages": [{"role": "user", "content": "What's the latest news about AI?"}]
}API Parameters Reference
| Parameter | Type | Required | Description |
|---|---|---|---|
| model | string | Yes | Model identifier (e.g., claude-fable-5-2) |
| messages | array | Yes | Array of message objects with role and content |
| max_tokens | integer | Yes | Maximum tokens in the response (1 - 128000) |
| system | string | No | System prompt to set context |
| stream | boolean | No | Enable streaming responses (SSE) |
| temperature | number | No | Sampling temperature (0.0 - 1.0) |
| top_p | number | No | Nucleus sampling threshold (0.0 - 1.0) |
| top_k | integer | No | Top-k sampling (0 - infinity) |
| stop_sequences | array | No | Sequences that stop generation |
| tools | array | No | Function calling tools definition |
| tool_choice | object | No | Tool selection strategy (auto/any/tool) |
| thinking | object | No | Enable extended thinking mode |
| output_format | object | No | Structured output with JSON schema |
Full API Documentation
View complete API reference with streaming, thinking, and more.
Pricing
Billing: Cost = (input_tokens * input_price + output_tokens * output_price) / 1,000,000
官方六折
$4.80 / $24.00 每 1M token,Anthropic 官方 $8 / $40;缓存读 $0.12、写 $6.00
Fable 5.2 跑分
Anthropic:FrontierSWE v2 69.9%(Fable 5.1 为 56.3%),Terminal-Bench-Science 74.6%(52.6%),Remote Labor Index 41.3%(17.9%)
Fable 5.2 对比 Opus 5.5
FrontierCode 2.0 49.1% 对 45.5%,带工具的 Humanity's Last Exam 74.2% 对 67.7%;追平 Opus 5.5 最好编码成绩时单任务成本约一半
更快、误拦更少
Anthropic:输出比 Fable 5.1 快最多 30%,安全分类器拦截少约 55%
100 万上下文、128K 输出
文本与图像输入;请求参数与 Fable 5.1 相同,切换只改模型名
思考常开
用 effort 控制深浅(low 到 max,默认 high);强制调用工具会改为 auto 加指令执行
关于 Claude Fable 5.2
Claude Fable 5.2 是由 Anthropic 提供的大语言模型 API。Claude Fable 5.2 是 Anthropic 2026 年 11 月 9 日发布的 Fable 5.1 继任者,也是它目前对外开放的能力最强的模型。在 APIMODELS 上输入 $4.80、输出 $24.00 每 1M token,比 Anthropic 官方 $8 / $40 低 40%;缓存读 $0.12、缓存写 $6.00,5 分钟和 1 小时两种 TTL 同价(官方分别是 $0.20、$10、$16)。官方这次把挂牌价从 Fable 5.1 的 $10 / $50 下调了 20%,并称输出速度最多快 30%。按 Anthropic 发布表,智能体编码上它同时领先 Fable 5.1 和 Opus 5.5:FrontierCode 2.0 49.1%(xhigh effort;Fable 5.1 32.4%、Opus 5.5 45.5%),FrontierSWE v2 69.9%(56.3%、62.3%);长链路与知识工作上:Terminal-Bench-Science 0.1 74.6%(52.6%、58.7%),Remote Labor Index 41.3%(17.9%、21.3%),带工具的 Humanity's Last Exam 74.2%(65.6%、67.7%),不用工具的 Chartography 73.4%(44.8%、64.4%)。它也不是每项都第一:AutomationBench 上 Gemini 4 Carbon 是 53.9%,高于它的 51.4%。Anthropic 还给了一个成本口径:high effort 下它在 FrontierCode 上追平 Opus 5.5 的最好成绩,单任务成本约为后者一半;两者在我们这里都是官方六折,这个比例在 APIMODELS 上同样成立。规格:100 万 token 上下文、128K 最大输出,文字和图片输入。思考常开,用 output_config.effort 控制深浅(low 到 max,默认 high);temperature、top_p、top_k 和 budget_tokens 在上游已被取消,我们直接丢掉、不往上游发。Anthropic 对这个模型不接受强制调用工具(tool_choice 为 any 或指定工具),APIMODELS 会改成 tool_choice auto 并在指令里点名要调的工具,结构化输出也走这条路;不支持 assistant 预填。官方的安全防护会拒绝大部分高风险的网络安全任务(比如渗透测试、写漏洞利用),这类请求会返回 stop_reason refusal。一个 key 即可通过 /v1/messages(Claude Code、Anthropic SDK、Cursor)或 OpenAI 兼容的 /v1/chat/completions 调用,失败的请求不收钱。 通过 APIMODELS 平台,您可以使用统一的 API 接口调用该模型,按量计费、价格透明。当前定价:Input: $4.80, Output: $24.00 per 1M tokens。
核心功能
- 官方六折 -- $4.80 / $24.00 每 1M token,Anthropic 官方 $8 / $40;缓存读 $0.12、写 $6.00
- Fable 5.2 跑分 -- Anthropic:FrontierSWE v2 69.9%(Fable 5.1 为 56.3%),Terminal-Bench-Science 74.6%(52.6%),Remote Labor Index 41.3%(17.9%)
- Fable 5.2 对比 Opus 5.5 -- FrontierCode 2.0 49.1% 对 45.5%,带工具的 Humanity's Last Exam 74.2% 对 67.7%;追平 Opus 5.5 最好编码成绩时单任务成本约一半
- 更快、误拦更少 -- Anthropic:输出比 Fable 5.1 快最多 30%,安全分类器拦截少约 55%
- 100 万上下文、128K 输出 -- 文本与图像输入;请求参数与 Fable 5.1 相同,切换只改模型名
- 思考常开 -- 用 effort 控制深浅(low 到 max,默认 high);强制调用工具会改为 auto 加指令执行
适用场景
聊天机器人与客服
构建智能对话系统,自动回答用户问题,提升客户服务效率。
内容生成
自动撰写文章、邮件、广告文案等文本内容,提高内容产出效率。
编程助手
辅助代码编写、调试和代码审查,加速软件开发流程。
数据分析
理解和分析非结构化数据,提取关键信息并生成报告摘要。
为什么选择 APIMODELS
- 统一 API 接口 -- 一个 API Key 调用所有模型,无需分别注册各平台账号
- 价格透明 -- 按量计费,每个模型页公开单次调用价格,适合小微开发者和初创团队
- 即开即用 -- 注册即可使用,支持 Stripe 和支付宝充值
- 完整文档 -- 提供详细的 API 文档和代码示例(cURL、Python、Node.js)
常见问题
Claude Fable 5.2 的价格是多少?
Claude Fable 5.2 通过 APIMODELS 平台调用,当前定价:Input: $4.80, Output: $24.00 per 1M tokens。按量计费,用多少付多少。
如何使用 Claude Fable 5.2 API?
在 APIMODELS 注册账号并获取 API Key,然后通过我们的统一 API 端点调用即可。我们提供详细的 API 文档和 cURL、Python、Node.js 代码示例。
APIMODELS 与 Anthropic 官方 API 有什么区别?
APIMODELS 通过聚合平台提供与官方相同的 Claude Fable 5.2 模型。我们提供统一的 API 接口,无需分别注册各平台账号,一个 API Key 即可调用所有模型。
Claude Fable 5.2 在 APIMODELS 上多少钱?
输入 $4.80、输出 $24.00 每 1M token,比 Anthropic 官方 $8 / $40 低 40%。提示词缓存:读取 $0.12 每 1M(官方 $0.20),写入 $6.00 每 1M,5 分钟和 1 小时两种 TTL 同价(官方分别是 $10 和 $16),所以显式传 ttl:"1h" 不会多收钱。整个 1M 上下文都按同一档输入价计,没有长上下文加价。顺带一提,本站 Fable 5.1 是 $5.00 / $25.00,新一代反而更低。按实际 token 计费,失败的请求不收钱。
Claude Fable 5.2 的跑分是多少?
以下是 Anthropic 发布表(2026 年 11 月 9 日,安全防护开启)的数字,括号里依次是 Fable 5.1 和 Opus 5.5:FrontierCode 2.0 49.1%(xhigh effort;32.4%、45.5%),FrontierSWE v2 69.9%(56.3%、62.3%),Terminal-Bench-Science 0.1 74.6%(52.6%、58.7%),AutomationBench 51.4%(31.4%、42.5%),Remote Labor Index 41.3%(high effort;17.9%、21.3%),带工具的 Humanity's Last Exam 74.2%(65.6%、67.7%),不用工具的 Chartography 73.4%(44.8%、64.4%),OSWorld 2.1 离线集 89.3%(83.5%、87.2%)。两点要注意:AutomationBench 上 Gemini 4 Carbon 的 53.9% 更高;OSWorld 这个数是按步骤给的部分得分,不是任务完整完成率。这些都是 Anthropic 公布的数据,不是我们自己跑的。
Fable 5.2 和 Opus 5.5 怎么选?
按 token 单价,Opus 5.5 在我们这里正好是它的一半($2.40 / $12.00 对 $4.80 / $24.00),但账单看的是完成一个任务总共花多少。Anthropic 给的口径:high effort 下 Fable 5.2 在 FrontierCode 2.0 上拿到 45.3%,与 Opus 5.5 的最好成绩 45.5% 基本持平,单任务成本约为一半;medium effort 下在 WANDR 搜索任务上追平 Opus 5.5 的最好成绩,成本约 40%;low effort 下在 Humanity's Last Exam 上追平,成本不到十分之一。两者在我们这里都是官方六折,这些比例照样成立。实用的分法:长时间 agent、难的编码和科研类任务交给 Fable 5.2,按"每完成一个任务的花费"来比;短的大批量调用留给 Opus 5.5。被 Fable 5.2 安全防护拒掉的请求(主要是高风险安全类任务),Anthropic 自己的兜底是 Opus 4.8,本站也有。这些模型共用一个 key、一个端点,换的只是 model 字段。
要不要从 Fable 5.1 换到 Fable 5.2?
大多数场景值得换。在 APIMODELS 上它更低价($4.80 / $24.00 对 $5.00 / $25.00);Anthropic 称输出速度最多快 30%,medium effort 下完成难任务用的 token 也比 Fable 5.1 少;发布表上两者都有成绩的每一项它都更高;安全分类器的拦截也少了约 55%。请求参数和 Fable 5.1 一样 —— 思考常开、没有采样参数、不支持预填 —— 所以切换只改 model 一个字段。要算进去的只有一点:提示词缓存按模型分开,切过去之后第一次请求会重新写一次缓存。
Fable 5.2 怎么调用?Claude Code 能直接用吗?
可以。走原生 Anthropic 路径:把 ANTHROPIC_BASE_URL 设成 https://api.apimodels.app、模型名填 claude-fable-5-2、key 用你的 apimodels key(见 /docs/claude-code);Anthropic SDK 和 Cursor 的"自定义 Anthropic 模型"同样这么接,原生工具调用、流式和提示词缓存都能用。用 OpenAI SDK 的话,调 POST https://api.apimodels.app/v1/chat/completions、model 填 claude-fable-5-2 即可,reasoning_effort 会映射成 Anthropic 的 effort,工具和图片输入都会自动转换。难任务的单次请求可能跑好几分钟,长输出建议开 stream:true,客户端超时也要放宽。
Fable 5.2 在 APIMODELS 上有哪些限制?
接入前先看清这几条。思考关不掉 —— 最轻是 effort low,传 thinking {type: disabled} 或 budget_tokens 会被直接丢掉;temperature、top_p、top_k 也会被丢掉,想控制风格请写进提示词。Anthropic 在这个模型上不支持强制调用工具,我们改成 tool_choice auto 加一句"必须调用该工具"的指令发过去,自测 10 次都调到了正确的工具,但这不是解码层面的保证,请检查 stop_reason 是否为 tool_use。assistant 预填会报错。Anthropic 的 Fast mode($16 / $80)和 Batch API 我们不提供。安全防护会拒绝大部分高风险网络安全请求(stop_reason 为 refusal)。成功率也不是 100%:主渠道出错时会自动切到第二条渠道,失败的请求不收钱;模型刚上线、样本还不够,我们暂不公布成功率。
Claude Fable 5.2 和其它大语言模型模型相比怎么选?
在 APIMODELS,Claude Fable 5.2 与 60+ 个模型共用一个 API Key、一个余额,所以选型只看合不合适,不存在锁定。它支持 40% Below Official、Long-Horizon Agents、1M Context、Agentic Coding,你可以在价格和能力上把它和其它大语言模型模型对比,换模型只需改一个模型名字符串——无需新账号、无需重新对接。所有大语言模型模型与实时价格见 apimodels.app/models。
Claude Fable 5.2 支持哪些能力?
Claude Fable 5.2 支持:40% Below Official、Long-Horizon Agents、1M Context、Agentic Coding。完整参数与调用方式见 APIMODELS 的 API 文档。
国内可以调用 Claude Fable 5.2 API 吗?
可以。APIMODELS 提供可直接访问的统一 API,一个 API Key 即可调用 Claude Fable 5.2,无需分别注册官方账号、也无需自行处理官方接口的网络访问。
支持哪些付款方式?
我们支持 Stripe(Visa、Mastercard 等国际信用卡)和支付宝付款。充值后积分即时到账。
相关模型
相关阅读
接入方式、地区可用性,以及和同类模型的横向对比。