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)