输入
$5.00
美元 / 百万 Token
输出
$25.00
美元 / 百万 Token
缓存读取
$0.50
美元 / 百万 Token
缓存写入
$6.25
美元 / 百万 Token
交给你的 AI 智能体
把这段提示词复制到 Claude Code、Cursor、Codex 或任何编程智能体中。它会告诉智能体文档在哪里,以及如何使用你的 API 密钥。
Integrate the model `claude-fable-5` from Half Off Dev into this project through the native Anthropic Messages API. - Docs (read first): https://halfoff.dev/docs/models/anthropic.md - Use the official Anthropic SDK and only change the base URL to https://halfoff.dev (or set ANTHROPIC_BASE_URL=https://halfoff.dev). Endpoints: POST https://halfoff.dev/v1/messages and /v1/messages/count_tokens, unchanged from Anthropic, so Anthropic's docs are the reference for every parameter. `Authorization: Bearer` works too. - Model id: `claude-fable-5`. GET https://halfoff.dev/v1/models lists every model with its price. - Auth: read my API key from the HALFOFF_API_KEY environment variable and send it as `x-api-key: $HALFOFF_API_KEY`. Never print or commit the key. If it is not set, ask me to create one at https://halfoff.dev/app/keys. - Billing is prepaid: every call is charged to my balance, so test with a small request before running anything large. - Every docs page is plain Markdown; the full index is https://halfoff.dev/llms.txt. My task: <describe what you want to build or get>
各渠道组价格
| 渠道分组 | 输入 | 输出 | 缓存读取 |
|---|---|---|---|
Claude · Value Pooled capacity | $5.00 | $25.00 | $0.50 |
调用示例
快速开始 →Anthropic Messages API
curl https://halfoff.dev/v1/messages \
-H "x-api-key: $HALFOFF_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "content-type: application/json" \
-d '{"model": "claude-fable-5", "max_tokens": 1024, "messages": [{"role": "user", "content": "Hello"}]}'常见问题
Claude Fable 5 每百万 token 多少钱?
在价格最低的渠道组中,每百万输入 token $5.00,每百万输出 token $25.00。一次 10,000 输入、1,000 输出 token 的请求约 $0.075。
Claude Fable 5 支持提示缓存吗?
支持。缓存读取每百万 token $0.50,因此同样的请求若有 9,000 个输入 token 从缓存读取,费用约为 $0.035。Half Off Dev 会让同一对话保持在同一渠道,使缓存持续命中。
Claude Fable 5 的上下文窗口有多大?
1M token。
Claude Fable 5 使用哪种 API 格式?
Anthropic Messages API, OpenAI Chat Completions。使用你现有的官方 SDK:把 Base URL 改为 Half Off Dev,并使用你的 Half Off Dev API 密钥。
有订阅或速率限制吗?
无需订阅:充值预付费余额,按 token 付费。你可以为每个 API 密钥自行设置每分钟请求数和并发限制。