返回模型列表

Fable 5.2 API可用

claude-fable-5-2

Fable 5.2,官方价比 5.1 低 20%,1M 上下文,适合长文档、长仓库和连续多轮改写。

来自:Anthropic输入类型:输出类型:

AI Code With 渠道可用性

同一模型按渠道折扣计费。复制渠道 code 可指定偏好。

渠道缓存命中率上下文
第三方claude3.9折
77.0%¥22.464/ M tokens¥112.32/ M tokens读取:¥0.5616/ M tokens写入:¥28.08/ M tokens1M0.0s
企业混合池6.5折
77.0%¥37.44/ M tokens¥187.2/ M tokens读取:¥0.936/ M tokens写入:¥46.8/ M tokens1M0.0s

相关模型

来自 Anthropic

对比其他厂商的模型

Fable 5.2 API:价格、Model ID 与调用方式

通过 AI Code With 调用 Fable 5.2。Model ID 为 claude-fable-5-2,上下文 1M。标价约 $8.00 / $40.00 / 1M tokens,渠道折扣另计。 按 100,000 输入 / 10,000 输出 tokens 估算约 $0.4680。

Model IDclaude-fable-5-2
协议OpenAI Chat Completions · Anthropic Messages
上下文1M
最大输出128K

下一步:获取 API Key · Claude Code 接入教程 · Claude 模型对比 · 全部模型价格

费用估算

按当前渠道最低价 $3.12 / $15.60 / 1M tokens,cache 读 $0.0780,cache 写 $3.90 估算。实际扣费以账户余额和实时渠道为准。

估算费用$0.4680

cURL 示例

把 model 设为 claude-fable-5-2。页面 slug 只用于 URL,不能当作 API 参数。

curl https://api.aicodewith.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $AICODEWITH_API_KEY" \
  -d '{
    "model": "claude-fable-5-2",
    "messages": [
      { "role": "user", "content": "What is the meaning of life?" }
    ]
  }'

常见问题

Fable 5.2 的 Model ID 是什么?

API 的 model 参数必须用 claude-fable-5-2。页面路径 /claude-fable-5-2 只是 URL,不能当作 model 值。

Fable 5.2 怎么调用?

用同一把 AI Code With API Key,请求 https://api.aicodewith.ai/v1/chat/completions(OpenAI Chat Completions)和 https://api.aicodewith.ai/v1/messages(Anthropic Messages,Authorization: Bearer),并把 model 设为 claude-fable-5-2。支持 OpenAI Chat Completions / Anthropic Messages。接入步骤见 Claude Code 接入教程。

Fable 5.2 的价格怎么算?

Fable 5.2 标价约 $8.00 / $40.00 / 1M tokens,渠道折扣另计。公开页展示可用渠道折扣;实际扣费以账户余额和当前渠道为准。 按 100,000 输入 / 10,000 输出 tokens 估算约 $0.4680。

Fable 5.2 的上下文有多长?

Fable 5.2 的输入上下文约为 1M,最大输出约 128K。把它当作容量上限,而不是每次都要填满的目标。