anthropic/claude-fable-5-2
Anthropic 于 2026 年 11 月 9 日发布的 Fable 模型,接替 Claude Fable 5.1。属于 Mythos 级,面向高难度推理与长程 Agent 工作,支持 100 万 token 上下文、最多 12.8 万 token 输出、图像输入、原生工具调用与 prompt cache。adaptive thinking 始终开启(默认 effort: high,支持 low 至 max 五档),缓存读取按基础输入价的 2.5% 计费。官方建议多数任务先用 Opus 5.5,当较高 effort 下评测仍不达标时再选用 Fable 5.2。
缓存读 $0.07/M · 缓存写 $3.5/M
API 调用时用任一 ID 都可以。
anthropic/claude-fable-5-2请求里的 model 可以直接使用这些名字。
把 ONEHOP_KEY 占位符替换为你的 API Key。 创建 →
from anthropic import Anthropic
client = Anthropic(
base_url="https://api.onehop.ai/anthropic",
api_key="<ONEHOP_KEY>",
)
message = client.messages.create(
model="anthropic/claude-fable-5-2",
max_tokens=1024,
messages=[{"role": "user", "content": "What is the meaning of life?"}],
)
print(message.content[0].text)