anthropic/claude-fable-5-1
Anthropic 2026 年 9 月 1 日发布的 Fable 模型,现已由 Claude Fable 5.2 接替。Mythos 级,面向自主编码、知识工作与长程 Agent,支持 100 万 token 上下文与原生 prompt cache,缓存读取按基础输入价的 2.5% 计费。新项目建议直接选用速度更快、价格更低的 Fable 5.2。
缓存读 $0.0875/M · 缓存写 $4.375/M
API 调用时用任一 ID 都可以。
anthropic/claude-fable-5-1请求里的 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-1",
max_tokens=1024,
messages=[{"role": "user", "content": "What is the meaning of life?"}],
)
print(message.content[0].text)