anthropic/claude-fable-5.2

Claude Fable 5.2 低至0.5折

函数调用图像理解推理提示缓存网页搜索PDF 输入

Claude Fable 5.2 is Anthropic's most capable model for the most demanding technical work, with gains over Fable 5.1 in coding, reasoning, and vision. In prerelease testing it completed otherwise-infeasible software migrations, designed working electronic devices from scratch, and made progress on open problems in physics and mathematics. It communicates more clearly than earlier Fable models and generates output up to 30% faster than Fable 5.1. Adaptive extended thinking is always on, with reasoning effort levels from low to max (default high) and preserved thinking across turns. Anthropic recommends Opus 5.5 as the daily driver for most coding and knowledge work, with Fable 5.2 for the most ambitious, open-ended problems.

上下文窗口1M
最大输出 Token128K
支持协议
发布日期—

能力与模态

当前模型版本支持的输入输出能力

输入模态
文本
图像
文件
输出模态
文本

模型价格

价格与能力以接口实时数据为准

按量计费
输入价格
$0.4 / M$8
输出价格
$2 / M$40
缓存读取
$0.01 / M$0.2
缓存写入
$0.5 / M$10
5 分钟
缓存写入
$0.8 / M$16
1 小时
网页搜索
$0.0005 / 次$0.01

API 接口

当前模型可以使用的调用端点

原生协议 1

/v1/messages

转换协议 4

/v1/responses
/v1/chat/completions
/v1beta/models/{model}:streamGenerateContent
/v1beta/models/{model}:generateContent

API 接入示例

选择协议与语言,配置 API Key 后运行

Messages

先在环境变量中配置平台密钥 AI_GATEWAY_API_KEY · 适用于 Bash / zsh / WSL。

POSThttps://api.tikway.ai/v1/messages
curl --fail-with-body 'https://api.tikway.ai/v1/messages' \
  -H "x-api-key: $AI_GATEWAY_API_KEY" \
  -H 'anthropic-version: 2023-06-01' \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "anthropic/claude-fable-5.2",
  "max_tokens": 1024,
  "messages": [
    {
      "role": "user",
      "content": "用三句话介绍 Tikway"
    }
  ]
}'
查看完整接入文档

模型接入常见问题

调用 Claude Fable 5.2 应填写哪个模型 ID?

本页模型 ID 为 anthropic/claude-fable-5.2。按对应协议原样复制,不能用展示名称代替,也不要自行增删前缀。

Claude Fable 5.2 支持哪些 API 协议?

目录当前列出的协议为:Anthropic。查看本页调用示例中的完整端点、鉴权方式和参数;不同协议不能直接共用请求体。

Claude Fable 5.2 的上下文长度是多少?

目录显示上下文为 1M。最大输出与上下文是不同约束,实际请求还要核对本页能力及参数范围。

如何估算 Claude Fable 5.2 的费用?

普通输入价格:$0.4 / M;普通输出价格:$2 / M。完整费用还要核对本页计费单位、缓存、多模态及账户规则。

接入教程

AI API 中转 · 多模型接入Claude API · Anthropic MessagesAI Agent · 智能体 API 接入Claude API 接入教程:用 Tikway 调用 Anthropic Messages 协议AI API 费用怎么算?Tikway Token 计费与报错排查Tikway 模型与费用核对:模型 ID、调用记录与证据边界