
Claude Fable 5 API
claude-fable-5Claude Fable 5 是 Anthropic 高端的公开可用大语言模型,在 APIMODELS 上价格约为官方的一半(比官方便宜约 50%,输入 $5 / 输出 $25 每百万 token)。开箱支持 Claude Code、Anthropic SDK 及 Cursor 等 Anthropic 兼容客户端调用。具备超长上下文、多模态(识图)理解、复杂推理与企业级知识工作能力,并带严格安全保护。通过 Anthropic Messages API(/v1/messages)提供原生工具调用,请求参数与 Opus 4.8 一致。
API Documentation
View complete API reference with all parameters and examples.
Advanced Features
Streaming
Enable real-time streaming responses with Server-Sent Events.
{
"model": "claude-fable-5",
"stream": true,
"max_tokens": 1024,
"messages": [...]
}Function Calling (Tools)
Enable Claude to use tools and call functions.
{
"model": "claude-fable-5",
"max_tokens": 1024,
"tools": [{
"name": "get_weather",
"description": "Get current weather for a location",
"input_schema": {
"type": "object",
"properties": {
"location": {"type": "string", "description": "City name"}
},
"required": ["location"]
}
}],
"tool_choice": {"type": "auto"},
"messages": [{"role": "user", "content": "What's the weather in Tokyo?"}]
}PDF Support
Analyze PDF documents by sending them as base64 encoded content.
{
"model": "claude-fable-5",
"max_tokens": 1024,
"messages": [{
"role": "user",
"content": [{
"type": "document",
"source": {
"type": "base64",
"media_type": "application/pdf",
"data": "<base64_encoded_pdf>"
}
}, {
"type": "text",
"text": "Summarize this document."
}]
}]
}Structured Output (JSON Schema)
Get structured JSON responses that match your schema.
{
"model": "claude-fable-5",
"max_tokens": 1024,
"output_format": {
"type": "json_schema",
"schema": {
"type": "object",
"properties": {
"name": {"type": "string"},
"age": {"type": "integer"}
},
"required": ["name", "age"]
}
},
"messages": [{"role": "user", "content": "Extract info: John is 30 years old"}]
}Web Search
Enable Claude to search the web for up-to-date information.
{
"model": "claude-fable-5",
"max_tokens": 1024,
"tools": [{
"type": "web_search_20250305",
"name": "web_search",
"max_uses": 5
}],
"messages": [{"role": "user", "content": "What's the latest news about AI?"}]
}API Parameters Reference
| Parameter | Type | Required | Description |
|---|---|---|---|
| model | string | Yes | Model identifier (e.g., claude-fable-5) |
| messages | array | Yes | Array of message objects with role and content |
| max_tokens | integer | Yes | Maximum tokens in the response (1 - 128000) |
| system | string | No | System prompt to set context |
| stream | boolean | No | Enable streaming responses (SSE) |
| temperature | number | No | Sampling temperature (0.0 - 1.0) |
| top_p | number | No | Nucleus sampling threshold (0.0 - 1.0) |
| top_k | integer | No | Top-k sampling (0 - infinity) |
| stop_sequences | array | No | Sequences that stop generation |
| tools | array | No | Function calling tools definition |
| tool_choice | object | No | Tool selection strategy (auto/any/tool) |
| thinking | object | No | Enable extended thinking mode |
| output_format | object | No | Structured output with JSON schema |
Full API Documentation
View complete API reference with streaming, thinking, and more.
Pricing
Billing: Cost = (input_tokens * input_price + output_tokens * output_price) / 1,000,000
~50% Off
About half the official Anthropic price
Ultra-Long Context
Handles very large inputs end to end
Multimodal Understanding
Text + image (vision) comprehension
Complex Reasoning
Strong multi-step reasoning and analysis
关于 Claude Fable 5
Claude Fable 5 是由 Anthropic 提供的大语言模型 API。Claude Fable 5 是 Anthropic 高端的公开可用大语言模型,在 APIMODELS 上价格约为官方的一半(比官方便宜约 50%,输入 $5 / 输出 $25 每百万 token)。开箱支持 Claude Code、Anthropic SDK 及 Cursor 等 Anthropic 兼容客户端调用。具备超长上下文、多模态(识图)理解、复杂推理与企业级知识工作能力,并带严格安全保护。通过 Anthropic Messages API(/v1/messages)提供原生工具调用,请求参数与 Opus 4.8 一致。 通过 APIMODELS 平台,您可以使用统一的 API 接口调用该模型,按量计费、价格透明。当前定价:Input: $5, Output: $25 per 1M tokens。
核心功能
- ~50% Off -- About half the official Anthropic price
- Ultra-Long Context -- Handles very large inputs end to end
- Multimodal Understanding -- Text + image (vision) comprehension
- Complex Reasoning -- Strong multi-step reasoning and analysis
适用场景
聊天机器人与客服
构建智能对话系统,自动回答用户问题,提升客户服务效率。
内容生成
自动撰写文章、邮件、广告文案等文本内容,提高内容产出效率。
编程助手
辅助代码编写、调试和代码审查,加速软件开发流程。
数据分析
理解和分析非结构化数据,提取关键信息并生成报告摘要。
为什么选择 APIMODELS
- 统一 API 接口 -- 一个 API Key 调用所有模型,无需分别注册各平台账号
- 价格透明 -- 按量计费,每个模型页公开单次调用价格,适合小微开发者和初创团队
- 即开即用 -- 注册即可使用,支持支付宝、PayPal、银行卡和 USDT 充值
- 完整文档 -- 提供详细的 API 文档和代码示例(cURL、Python、Node.js)
常见问题
APIMODELS 与 Anthropic 官方 API 有什么区别?
APIMODELS 通过聚合平台提供与官方相同的 Claude Fable 5 模型。我们提供统一的 API 接口,无需分别注册各平台账号,一个 API Key 即可调用所有模型。
Claude Fable 5 是什么、适合什么?
Claude Fable 5 是 Anthropic 最新、最强的公开可用大语言模型,具备超长上下文、多模态(识图)理解、复杂推理与企业级知识工作能力,并带严格安全保护。适合读长文档/看图、复杂多步推理、agentic 编码与高质量知识工作。在 apimodels.app 上按输入 $5 / 输出 $25(每 1M token)计费,约为官方价的一半。
Fable 5 能在 Claude Code / Cursor 里用吗?支持工具调用吗?
支持工具调用(tool_use)。Fable 5 通过 Anthropic Messages API(/v1/messages)提供原生工具调用——这正是 Claude Code 与 Anthropic SDK 的调用方式:把 ANTHROPIC_BASE_URL 指向 https://api.apimodels.app、模型名设为 claude-fable-5、填入你的 apimodels API Key 即可(详见 /docs/claude-code)。Cursor 等支持 Anthropic API 的客户端,按"自定义 Anthropic 模型"接入同样可用。工具需用 Anthropic 格式({name, input_schema}),请求参数与 Claude Opus 4.8 完全一致。
Fable 5 怎么调用?支持工具和识图吗?
通过 Anthropic Messages API(/v1/messages)调用——原生支持工具调用(tool_use)与图片输入(vision),这也是 Claude Code 和 Anthropic SDK 的方式。请求参数与 Claude Opus 4.8 完全一致,直接把模型名换成 claude-fable-5 即可。
Fable 5 的价格?比官方便宜多少?
输入 $5 / 输出 $25(每 1M token),约为 Anthropic 官方价的一半——比官方便宜约 50%。还支持提示词缓存:缓存命中(读取)按 $0.882/M 计费,大幅低于输入价;缓存写入按 $8.824/M。适合有大量重复上下文的长会话。
Fable 5 和 Opus 4.8 怎么选?
Fable 5 是 Anthropic 最新旗舰,综合能力最强、多模态更好,在 apimodels.app 上 $5/$25(约官方半价);Opus 4.8 更成熟、单价更低($3/$13),长程 agentic 任务同样出色。要最新最强选 claude-fable-5,要更低单价选 claude-opus-4-8——两者共用一个 API Key,可随时切换按任务路由。
Claude Fable 5 支持哪些能力?
Claude Fable 5 支持:Ultra-Long Context、Multimodal、Complex Reasoning、~50% Off。完整参数与调用方式见 APIMODELS 的 API 文档。
国内能直接调用 Claude Fable 5 API 吗?需要代理吗?
能直接调用,不需要代理。apimodels.app 和 api.apimodels.app 在中国大陆可以直接访问,注册后用一个 API Key 就能调用 Claude Fable 5;不用单独注册模型厂商的账号,也不需要海外信用卡,支付宝就能充值。
怎么充值?支持哪些付款方式?
支持支付宝、PayPal、银行卡(Visa、Mastercard 等,经 Stripe 支付),以及 USDT(TRON 链 TRC20 或 BNB Smart Chain 链 BEP20)。支付宝、PayPal 和银行卡付款后即时到账,USDT 在链上转账确认后到账;也可以开启自动充值。单次充 $50 送 $1,充 $100 送 $3。余额按美元计,按量扣费,没有月费。