今天,我们宣布 Claude Fable 5.2 和 Claude Mythos 5.2 已在 Amazon Bedrock 以及 AWS 上的 Claude Platform 上提供。Claude Fable 5.2 是 Anthropic 目前最强大的通用可用模型,专为提升编码和科学领域的技术工作而设计。Claude Mythos 5.2 则通过 Anthropic 的验证计划提供,适用于网络安全和生命科学领域的高级工作。
在本文中,我们将介绍这两款模型的新特性,解释为什么 Fable 5.2 对您的技术工作负载至关重要,以及如何开始在 Amazon Bedrock 上使用该模型进行构建。
为什么选择 Claude Fable 5.2
Fable 5.2 在编码、数学和科学领域最具挑战性的问题上树立了新标杆。它能够处理模糊的多步骤任务,验证自身输出,并可在无人值守的情况下运行数小时至数天。它能解读提示词,进行迭代,自行发现错误,并在过程中不断优化。
在 Anthropic 的对齐测试中,Mythos 5.2 相比 Opus 5.5、Sonnet 5.5 和 Mythos 5.1,幻觉更少,任务完成更可靠,能更一致地呈现重要信息,并且更诚实地自我报告问题。Anthropic 预计 Fable 5.2 也将表现出类似的行为。
如果某个网络安全查询被拒绝,您可以在 Opus 4.8 上重试;如果某个生物学查询被拒绝,您可以在 Opus 5 上重试。在 Amazon Bedrock 上,重试是由您的代码负责处理的,而不是自动切换。如果被拒绝的请求命中了提示词缓存(prompt cache),拒绝响应中还会包含一个回退信用令牌(fallback credit token)。在重试时发送该令牌,它将按缓存读取计费,因此您无需为写入相同的缓存支付两次费用。有关回退信用的更多信息,请查看文档。
对于经过授权的网络安全和生命科学工作,Claude Mythos 5.2 可通过Anthropic 的验证计划获得。
Claude Fable 5.2 和 Mythos 5.2 的用例
Fable 5.2 适用的场景:
- 代理式编码:适用于大型多仓库代码库。
- 长期运行的代理:用于协调多个子代理执行持续多天的工作。
- 科学研究:从新的分析方法到形式化的数学证明。
- 金融分析:用于量化研究和预测。
- 3D、硬件和运动设计:用于在代码中生成环境、组件和模拟。
Mythos 5.2 涵盖两个高风险领域,仅通过上述验证计划提供:
- 网络安全:用于安全工程、红队演练和渗透测试。
- 生命科学研究:特别是生物分子设计和研究综合。
数据保留与企业前沿安全保障
Anthropic 将 Claude Fable 5.2 指定为受管模型。默认情况下,使用它需要保留数据长达 30 天并进行人工安全审查。在 Amazon Bedrock 上,Amazon 人员将在 AWS 边界内执行此审查。请在调用模型之前,在您的账户或项目中设置 aws_review 数据保留模式。更多详细信息请参阅Amazon Bedrock 数据保留。
企业前沿安全保障(EFS)是与 AWS 合作开发的,结合了零数据保留(ZDR)的隐私性和检测误用的最新保障措施。EFS 现已提供。预计后续将推出一个将数据存储在由您控制的桶和密钥中的版本,但该版本尚未发布。在此版本发布之前,符合条件的客户可以在 2027 年 6 月 30 日之前使用零数据保留的 Fable 5.2。
在 Amazon Bedrock 上开始使用 Claude Fable 5.2
要试用 Fable 5.2,请打开Amazon Bedrock 控制台,选择测试、Playground,并将 Fable 5.2 选为模型。从这里,您可以直接向其运行提示词。
以编程方式,您可以通过 Anthropic Messages API 针对 bedrock-runtime(通过 Anthropic SDK)调用该模型。您也可以继续使用 bedrock-runtime 上的 Invoke 和 Converse API,通过 AWS 命令行界面 (AWS CLI) 和 AWS SDK 进行操作。
前提条件
要跟随本文的代码示例,您需要以下内容:
- 具有 Amazon Bedrock 访问权限的有效AWS 账户。
- 安装并配置了适当凭据的AWS CLI。
- Python 3.9 或更高版本。
- 已安装Boto3(Python 的 AWS SDK):
pip install boto3。
- AWS 身份和访问管理 (IAM) 权限:
bedrock:InvokeModel 和 bedrock:InvokeModelWithResponseStream。
以下是使用 Python AWS SDK (Boto3) 的快速示例:
import boto3
import json
# 创建 Bedrock Runtime 客户端
bedrock_runtime = boto3.client(
service_name="bedrock-runtime",
region_name="us-east-1"
)
# 调用 Claude Fable 5.2
response = bedrock_runtime.invoke_model(
modelId="global.anthropic.claude-fable-5-2",
contentType="application/json",
accept="application/json",
body=json.dumps({
"anthropic_version": "bedrock-2023-05-31",
"max_tokens": 4096,
"messages": [
{
"role": "user",
"content": "一个 S3 桶每月产生 40 TB 的出站流量。假设每 GB 出站费用为 $0.09,估算月度出站成本,并提出一项使用 AWS 服务的架构更改建议以减少该成本。展示计算过程,字数保持在 120 字以内。"
}
]
})
)
result = json.loads(response["body"].read())
# Fable 5.2 是一个推理模型:响应可能先包含思考块,然后才是文本块
# 因此请选择文本块,而不是固定索引。
print(next(b["text"] for b in result["content"] if b["type"] == "text"))
您可以探索入门笔记本以获取更多示例。
在 Claude Code 中使用 claude-api 技能迁移到 Claude Fable 5.2
对于已经在 Amazon Bedrock 上运行 Claude 模型的团队,Claude Code 中的 claude-api 技能可帮助您升级到 Fable 5.2。
claude-api 技能是一个内置于Claude Code的开源技能,它捕获了使 Claude API 代码高效工作的细节。它涵盖了哪些代理模式适合特定任务、模型代际之间哪些参数会发生变化,以及何时应用提示词缓存。随着 Anthropic SDK 的演进,该技能保持最新:当发布新模型或 API 获得新功能时,该技能已经知晓。
该技能如何帮助 Fable 5.2 迁移
当您要求 Claude Code 将代码库升级到 Fable 5.2 时,该技能会审查您的代码并引导您完成以下步骤:
- 更新模型引用:将应用程序代码中的模型 ID 替换为 Fable 5.2 的 ID。
- 调整思考设置:在适当的情况下,将手动思考配置移动到新模型的自适应思考。
- 清理过时参数:移除不再适用的已弃用 beta 标头、参数和设置。
- 建议努力级别:根据您的用例,推荐合适的
output_config.effort 设置。
该技能还能检测您的部署平台,包括 Amazon Bedrock、AWS 上的 Claude Platform 以及其他环境,并相应地调整模型 ID 格式和功能配置。例如,它使用 Amazon Bedrock 的结构化模型 ID 格式(global.anthropic.claude-fable-5-2)。
如何使用它
在 Claude Code 中,直接运行迁移命令:
/claude-api migrate
这将扫描您的工作目录(或您确认的子目录或特定文件列表),并以单次引导式传递应用迁移更改。您也可以通过对话方式调用它,告诉 Claude Code:
- “Upgrade me to Claude Fable 5.2” Claude 会审查您的代码并逐步介绍必要的更改。
- “Improve my cache hit rate” 该技能应用许多开发者忽略的提示词缓存规则,有助于降低 Bedrock 的成本。
- “Add context compaction to my agent” 它会引导您了解用于长期 Fable 5.2 会话的压缩原语和代理模式。
claude-api 技能在 Claude Code 中可用,并已捆绑到 CodeRabbit、JetBrains IDE(包括 Junie)、Resolve AI 和 Warp 中。它在 GitHub 上是开源的,位于 anthropics/skills,因此任何编码代理都可以集成它。
可用性
Claude Fable 5.2 和 Claude Mythos 5.2 今天已在 Amazon Bedrock 上通过 US Geo CRIS 和 Global CRIS 推理配置文件提供。请参阅Bedrock 文档以获取支持区域的完整列表。有关定价信息,请参阅Amazon Bedrock 定价。这两款模型也可通过 AWS 上的 Claude Platform 在所有提供服务的服务区域中获得。
请在Amazon Bedrock 控制台、AWS 上的 Claude Platform中试用 Claude Fable 5.2,或在 GitHub 上探索入门笔记本。
关于作者
查看原文
Today, we are announcing the availability of Claude Fable 5.2 and Claude Mythos 5.2 on Amazon Bedrock and Claude Platform on AWS. Claude Fable 5.2 is Anthropic’s most capable generally available model for technical work that raises the bar in coding and the sciences. Claude Mythos 5.2 is available through Anthropic’s verification programs for advanced work in cyber security and life sciences.
In this post, we cover what’s new in both models, why Fable 5.2 matters for your technical workloads, and how to get started building with the model on Amazon Bedrock.
Why Claude Fable 5.2
Fable 5.2 raises the bar on the hardest problems in coding, math, and science. It takes on ambiguous, multi-step work, verifies its own output, and can run unattended for hours to days. It interprets prompts, iterates, catches its own errors, and optimizes as it goes.
In Anthropic’s alignment testing, Mythos 5.2 hallucinates less, completes tasks more reliably, surfaces important information more consistently, and self-reports issues more honestly than Opus 5.5, Sonnet 5.5, and Mythos 5.1. Anthropic expects Fable 5.2 to behave similarly.
If a cyber security query is declined, you can retry it on Opus 4.8, and if a biology query is declined, you can retry it on Opus 5. On Amazon Bedrock, the retry is your code’s job, not an automatic switch. If the declined request hit the prompt cache, the refusal also includes a fallback credit token. Send that token with the retry and it’s billed as cache reads, so you don’t pay to write the same cache twice. Check the documentation for more information on fallback credit.
For authorized work in cyber security and life sciences, Claude Mythos 5.2 is available through Anthropic’s verification programs.
Claude Fable 5.2 and Mythos 5.2 use cases
Where Fable 5.2 fits:
- Agentic coding across large, multi-repository codebases.
- Long-running agents for coordinating many subagents on multi-day work.
- Scientific research from new analytical methods to formal mathematical proofs.
- Financial analysis for quantitative research and forecasting.
- Design for 3D, hardware, and motion for generating environments, components, and simulations in code.
Mythos 5.2 covers two high-risk domains, available only through the verification programs noted earlier:
- Cyber security, for security engineering, red teaming, and penetration testing.
- Life sciences research, especially biomolecular design and research synthesis.
Data retention and Enterprise Frontier Safeguards
Anthropic designates Claude Fable 5.2 as a Covered Model. By default, its use requires retention for up to 30 days and human safety review. On Amazon Bedrock, Amazon personnel perform the review within the AWS boundary. Set the aws_review data retention mode on your account or project before you invoke the model. See Amazon Bedrock data retention for more details.
Enterprise Frontier Safeguards (EFS), built in collaboration with AWS, combines the privacy of zero data retention (ZDR) with the latest safeguards for detecting misuse. EFS is available now. A version that keeps your data in a bucket and under keys you control is expected to follow, and it has not launched yet. Until it does, eligible customers can use Fable 5.2 with zero data retention through June 30, 2027.
Getting started with Claude Fable 5.2 on Amazon Bedrock
To try Fable 5.2, open the Amazon Bedrock console, choose Test, Playground, and select Fable 5.2 as the model. From there, you can run a prompt directly against it.
Programmatically, you can call the model with the Anthropic Messages API against bedrock-runtime (through the Anthropic SDK). You can also stay on the Invoke and Converse APIs on bedrock-runtime through the AWS Command Line Interface (AWS CLI) and AWS SDK.
Prerequisites
To follow along with the code examples in this post, you need the following:
- An active AWS account with Amazon Bedrock access.
- AWS CLI installed and configured with appropriate credentials.
- Python 3.9 or later.
- Boto3 (AWS SDK for Python) installed:
pip install boto3.
- AWS Identity and Access Management (IAM) permissions:
bedrock:InvokeModel and bedrock:InvokeModelWithResponseStream.
Here’s a quick example using the AWS SDK for Python (Boto3):
import boto3
import json
# Create a Bedrock Runtime client
bedrock_runtime = boto3.client(
service_name="bedrock-runtime",
region_name="us-east-1"
)
# Invoke Claude Fable 5.2
response = bedrock_runtime.invoke_model(
modelId="global.anthropic.claude-fable-5-2",
contentType="application/json",
accept="application/json",
body=json.dumps({
"anthropic_version": "bedrock-2023-05-31",
"max_tokens": 4096,
"messages": [
{
"role": "user",
"content": "An S3 bucket serves 40 TB/month egress. Estimate the monthly egress cost at $0.09/GB, and state one architecture change, using AWS services, to cut it. Show the calculation, keep it under 120 words."
}
]
})
)
result = json.loads(response["body"].read())
# Fable 5.2 is a reasoning model: the response may include a thinking block
# before the text block, so select the text block rather than a fixed index.
print(next(b["text"] for b in result["content"] if b["type"] == "text"))
You can explore the Getting Started notebook for more examples.
Migrating to Claude Fable 5.2 with the claude-api skill in Claude Code
For teams already running Claude models on Amazon Bedrock, the claude-api skill in Claude Code helps you upgrade to Fable 5.2.
The claude-api skill is an open-source skill built into Claude Code that captures the details that make Claude API code work well. It covers which agent patterns fit a given job, what parameters change between model generations, and when to apply prompt caching. It stays current as Anthropic’s SDKs evolve: when a new model is released or the API gains a feature, the skill already knows.
What the skill does for Fable 5.2 migrations
When you ask Claude Code to upgrade your codebase to Fable 5.2, the skill reviews your code and walks you through:
- Updating model references swapping model IDs to the Fable 5.2 ID across your application code.
- Adjusting thinking settings moving manual thinking configurations to adaptive thinking where appropriate for the new model.
- Cleaning up outdated parameters removing deprecated beta headers, parameters, and settings that no longer apply.
- Suggesting effort levels recommending the right
output_config.effort settings inline based on your use case.
The skill also detects your deployment platform including Amazon Bedrock, Claude Platform on AWS, and other environments and adjusts model ID formats and feature configurations accordingly. For example, it uses the Amazon Bedrock structured model ID format (global.anthropic.claude-fable-5-2).
How to use it
In Claude Code, run the migration directly:
/claude-api migrate
This scans your working directory (or a subdirectory or specific file list you confirm) and applies the migration changes in a single guided pass. You can also invoke it conversationally by telling Claude Code:
- “Upgrade me to Claude Fable 5.2” Claude reviews your code and walks through the necessary changes.
- “Improve my cache hit rate” the skill applies prompt caching rules that many developers miss, helping reduce costs on Bedrock.
- “Add context compaction to my agent” it walks you through compaction primitives and agent patterns for long-running Fable 5.2 sessions.
The claude-api skill is available in Claude Code and is also bundled into CodeRabbit, JetBrains IDEs (including Junie), Resolve AI, and Warp. It is open source at anthropics/skills on GitHub, so any coding agent can integrate it.
Availability
Claude Fable 5.2 and Claude Mythos 5.2 are available today on Amazon Bedrock through US Geo CRIS and Global CRIS inference profiles. See the Bedrock documentation for the full list of supported Regions. For pricing information, see Amazon Bedrock pricing. Both models are also available through Claude Platform on AWS in every Region where the service is offered.
Give Claude Fable 5.2 a try in the Amazon Bedrock console, in Claude Platform on AWS, or explore the Getting Started notebook on GitHub.
About the authors
原文版权归 AWS Machine Learning 及原作者所有,本站转载仅供阅读。如需删除,请联系 support@aisa.one。