官方更新 AWS ML Blog Fri, 18 Sep 2026 正文 ok 1570 words

Amazon Bedrock 推出 Moonshot AI 的 Kimi K3

英文标题:Introducing Kimi K3 on Amazon Bedrock

Moonshot AI 的开放权重模型 Kimi K3 现已登陆 Amazon Bedrock,面向编程和知识工作场景提供原生视觉能力与 100 万 token 上下文窗口。Moonshot AI 称,该模型拥有 2.8 万亿参数,并较 Kimi K2 实现约 2.5 倍的扩展效率提升。Kimi K3 是 Amazon Bedrock 首个支持显式 Prompt 缓存的开放权重模型,可在复用上下文时降低延迟和输入成本。开发者可通过 OpenAI 兼容的 Responses 与 Chat Completions API、Bedrock Invoke 和 Converse API,以及 OpenCode、Hermes Agent 等工具调用该模型。
打开原文相关 1.8 · 机会 1
media1.3 MB media101.1 KB media124.1 KB media345.0 KB media141.2 KB media346.5 KB media16.8 KB media22.6 KB media17.1 KB media19.7 KB media15.9 KB media198.2 KB

中文

开放权重模型正在改变大规模构建和部署 AI 的经济性。智能水平与效率的快速提升,意味着企业能够为每一种工作负载匹配能力、速度和成本之间的恰当平衡。AWS 正在为这样一个未来构建平台:组织能够采用开放权重创新,同时获得生产环境所需的可靠性与安全性。

今天,Moonshot AI 的 Kimi K3 已在 Amazon Bedrock 上推出,为编程和知识工作提供了一个强大的新选择。根据 Moonshot AI 的说法,Kimi K3 是其能力最强的模型,也是首个达到 2.8 万亿参数的开放模型。它结合了原生视觉能力与 100 万 token 上下文窗口,相比 Kimi K2,在扩展效率方面实现了约 2.5 倍的提升。这些进步使 Kimi K3 特别适合需要在大型代码仓库、文档和图像之间持续保持上下文的长时间运行编程与知识工作流。Kimi K3 还是 Amazon Bedrock 上首个支持显式 Prompt 缓存的开放权重模型,可在模型调用间复用上下文时帮助降低延迟和输入成本。

Kimi K3 的发布反映出 AWS 对 Amazon Bedrock 开放权重模型的持续投入。自 2025 年以来,Bedrock 已新增数十个开放权重模型,提供商包括 DeepSeek、Google、MiniMax、Mistral AI、Moonshot AI、NVIDIA、OpenAI 和 Qwen。支撑这一不断扩大的模型选择的是推理技术的持续进步,这些技术能够大规模地服务模型。2026 年,Bedrock 新增了对工具调用、结构化输出、推理、响应流式传输以及 Responses 和 Chat Completions API 的支持。由于这些属于平台能力而非针对单个模型的集成,新开放权重模型一旦在 Amazon Bedrock 上可用,便可从中受益。

与 Amazon Bedrock 上所有开放权重模型一样,您可以在不改变安全态势的情况下采用 Kimi K3。您的数据会在 AWS 数据边界内处理,不会与模型提供商共享,也不会用于训练底层模型。推理请求始终启用零数据保留,而零运营人员访问机制意味着,即使是 AWS 运营人员也无法在推理期间访问您的提示词和补全内容。这些保护措施共同让您能够放心使用开放权重模型,同时保持对数据的控制。

开始在 Amazon Bedrock 上使用 Kimi K3

要试用 Kimi K3,请打开 Amazon Bedrock 控制台,进入 Test > Playground,然后选择 Kimi K3 作为模型。随后,您即可测试第一个提示词。

通过编程方式,您可以使用 bedrock-runtime 端点调用该模型。该端点支持 OpenAI 兼容的 Responses 和 Chat Completions API,以及 Amazon Bedrock 的 Invoke 和 Converse API。

您可以通过跨区域推理配置文件调用 Kimi K3。对于没有区域限制的工作负载,我们建议使用全局配置文件 global.moonshotai.kimi-k3,它会将每个请求路由至全球任意受支持的商业 AWS 区域。全局跨区域推理的成本比地理配置文件低约 10%。美国地理配置文件 us.moonshotai.kimi-k3 则会将处理限制在美国地理区域内,以满足数据驻留要求。

前提条件

  1. 一个已启用 Amazon Bedrock 访问权限的有效 AWS 账户。
  2. Python 3.10+。
  3. 调用模型所需的 AWS Identity and Access Management(AWS IAM)权限:bedrock:InvokeModel、bedrock:InvokeModelWithResponseStream 和 bedrock:CreateInference。

下面是一个快速示例:它使用 Python 的 OpenAI SDK 和 aws-bedrock-token-generator 库,为 Amazon Bedrock 身份验证生成短期 bearer token。

from aws_bedrock_token_generator import provide_token
from openai import OpenAI

region = "us-west-2"
oai_client = OpenAI(
    api_key=provide_token(region=region),
    base_url=f"https://bedrock-runtime.{region}.amazonaws.com/openai/v1",
)

resp = oai_client.responses.create(
    input="What is Byte-Pair Encoding, in AI?",
    model="global.moonshotai.kimi-k3",
)
print(resp.output_text)

通过显式 Prompt 缓存优化推理

长时间运行的编程和知识工作流经常会重复发送稳定的上下文,例如代码仓库说明、工具定义或参考文档。借助显式 Prompt 缓存,您可以识别可复用的提示词前缀,使后续请求能够使用缓存内容。当请求与缓存前缀匹配时,Amazon Bedrock 可以降低响应延迟和输入 token 成本。

Amazon Bedrock 上 Kimi K3 的缓存机制:

  • 您可以通过在支持的输入内容中添加 prompt_cache_breakpoint,标记可复用提示词前缀的准确结束位置,前缀长度至少应达到 1,024 个 token。
  • 在显式模式下,写入缓存的 token 按更高费率计费,但之后会在缓存中保留至少 30 分钟。
  • 对于命中缓存的匹配后续请求,输入 token 将按折扣费率计费,且不会计入每分钟输入 token 配额。

使用 OpenAI Python API 时,可按以下示例配置显式缓存:

resp = oai_client.responses.create(
    model="global.moonshotai.kimi-k3",
    # Enable explicit caching mode:
    extra_body={"prompt_cache_options": {"mode": "explicit"}},
    input=[
        {
            "type": "message",
            "role": "system",
            "content": [
                {
                    "type": "input_text",
                    "text": SYSTEM_PROMPT,
                    # A long, static system prompt is a great target for caching:
                    "prompt_cache_breakpoint": {"mode": "explicit"},
                },
            ]
        },
        {
            "type": "message",
            "role": "user",
            "content": [
                {
                    "type": "input_text",
                    "text": USER_INPUT,
                    # Multiple breakpoints can also be defined, for layered cache:
                    "prompt_cache_breakpoint": {"mode": "explicit"},
                },
            ],
        },
    ],
)
if resp.usage.input_tokens_details.cached_tokens:
    print("Hit cache!")

您可以浏览 Moonshot AI on AWS 示例代码库,获取更多示例。

Kimi K3 的实际应用

除直接使用 API 外,您还可以通过广泛的编程助手、个人 Agent 和 Agent 框架使用 Kimi K3。这些工具专门支持 Amazon Bedrock,或者普遍支持 OpenAI 兼容的模型提供商。

编程助手

如今,开发者可使用多种流行的编程 Agent,这里以 OpenCode 为例。OpenCode 是开源、模型无关的工具,并提供原生的 amazon-bedrock 模型提供商,该提供商使用 Converse API。

要开始使用,您可以按照 OpenCode 文档所示,在用户级或项目级的 opencode.json 配置文件中配置 amazon-bedrock 提供商。完成提供商配置后,OpenCode 会自动检测可用的 Amazon Bedrock 模型,您可以通过 /models 命令进行选择。例如,最小化的 ~/.config/opencode.json 文件可以如下所示:

{
    "$schema": "https://opencode.ai/config.json",
    "model": "amazon-bedrock/global.moonshotai.kimi-k3",
    "provider": {
        "amazon-bedrock": {
            "options": {
                "region": "us-west-2",
                "profile": "PLACEHOLDER-YOUR-AWS-PROFILE-NAME"
            }
        }
    }
}

设置 Amazon Bedrock 提供商后,您可以使用 /models 命令将模型切换至 global.moonshotai.kimi-k3,然后开始构建。

Kimi K3 能够构建规模较大的功能,并处理长周期任务。在下面的视频中,我们使用它构建了一款单文件、基于浏览器的游戏:

图 1:在 OpenCode 中使用 Kimi K3 构建基于浏览器的游戏(视频)

生产力 Agent

除编程外,Hermes Agent 是一个用于通用生产力场景的开源助手示例。它可通过桌面应用、流行消息应用及终端使用,支持深度研究和任务自动化等场景,而 Kimi K3 在这些场景中同样能够发挥良好表现。

如其文档所述,Hermes 原生支持 Amazon Bedrock 上的模型。开始使用的步骤如下:

  1. 在终端中运行 hermes model。
  2. 向下滚动提供商列表,找到“AWS Bedrock”(Hermes 将“Amazon Bedrock”错误标记为“AWS Bedrock”)。
  3. 如出现提示,选择您希望 Hermes 将请求发送到的源 AWS 区域。
  4. 选择默认凭证链(推荐),以使用环境中已配置的 AWS Command Line Interface 凭证;或者生成 Amazon Bedrock API 密钥。
  5. 从自动发现的模型列表中选择 Kimi K3;如果列表中没有该模型,则输入 global.moonshotai.kimi-k3 作为自定义模型名称。

如果您使用命名配置文件管理环境中的多个 AWS 凭证,则截至本文撰写时,您需要设置 AWS_PROFILE 环境变量,或为 Hermes 使用默认配置文件。或者,您可以改用 API 密钥。请关注此处的开放 Issue,以了解通过 Hermes 配置文件设置 AWS profile 的支持进展。

完成 Amazon Bedrock 提供商设置和模型配置后,您即可开始在 Hermes 中将 Kimi K3 用于 Agent 工作流。例如,以下短视频展示了我们要求 Agent 制定个性化学习计划的过程:

图 2:在 Hermes Agent 中使用 Kimi K3 制定个性化学习计划(视频)

可用性

Kimi K3 现已通过美国地理(us.)和全局(global.)跨区域推理配置文件在 Amazon Bedrock 上提供。有关完整的受支持区域列表,请参阅 Bedrock 文档。有关定价信息,请参阅 Amazon Bedrock 定价。

您可以在 Amazon Bedrock 控制台中试用 Kimi K3,或在 GitHub 上浏览 Moonshot AI on AWS 示例代码库。

想了解 Amazon Bedrock 如何支持您的团队?联系我们,开启交流。


作者简介

Alex Thewsey

Alex 是 AWS 的 AI 专项解决方案架构师,常驻新加坡。他专注于探索开源技术和开放权重模型如何帮助全球客户构建创新 AI 解决方案,并应对 AI 治理挑战。

Saurabh Trikande

Saurabh 是 Amazon Bedrock 和 Amazon SageMaker Inference 的高级产品经理。他热衷于与客户和合作伙伴合作,并以推动 AI 民主化为目标。他专注于复杂 AI 应用部署、多租户模型推理、成本优化,以及让生成式 AI 模型部署更易获得等核心挑战。在业余时间,Saurabh 喜欢徒步、了解创新技术、关注 TechCrunch,以及陪伴家人。

William Yap

William 是 Amazon Bedrock 的首席产品经理。

Tanvi Girinath

Tanvi 是 Amazon Web Services(AWS)Amazon Bedrock 的产品营销经理,负责帮助客户借助 Amazon Bedrock 采用并扩展 AI 应用和 Agent。

Sofian Hamiti

Sofian 是一位技术领导者,拥有超过 12 年的 AI 解决方案构建经验,并曾带领高绩效团队最大化客户成果。他热衷于赋能多元化人才,以推动全球影响力并实现其职业抱负。

English / 原文

Open-weight models are changing the economics of building and deploying AI at scale. Rapid gains in intelligence and efficiency mean companies can match each workload with the right balance of capability, speed, and cost. AWS is building for a future in which organizations can adopt open-weight innovation with the reliability and security required for production.

Today, Kimi K3 from Moonshot AI is available on Amazon Bedrock, giving you a powerful new option for coding and knowledge work. According to Moonshot AI, Kimi K3 is its most capable model and the first open model to reach 2.8 trillion parameters. It combines native vision capabilities with a 1-million-token context window and delivers an approximate 2.5x improvement in scaling efficiency over Kimi K2. These advances make Kimi K3 well suited to long-running coding and knowledge workflows that require sustained context across large repositories, documents, and images. Kimi K3 is the first open-weight model on Amazon Bedrock to support explicit prompt caching, helping you reduce latency and input costs when reusing context across model calls.

The launch of Kimi K3 reflects the sustained investment by AWS in open-weight models on Amazon Bedrock. Since 2025, Bedrock has added dozens of open-weight models from providers including DeepSeek, Google, MiniMax, Mistral AI, Moonshot AI, NVIDIA, OpenAI, and Qwen. Supporting this expanding selection is continued advancement of the inference technology that serves these models at scale. In 2026, Bedrock added support for tool calling, structured output, reasoning, response streaming, and the Responses and Chat Completions APIs. Because these are platform capabilities rather than per-model integrations, new open-weight models can benefit from them as they become available on Amazon Bedrock.

As with all open-weight models on Amazon Bedrock, you can adopt Kimi K3 without changing your security posture. Your data is processed within the AWS data boundary, is not shared with the model provider, and is not used to train the underlying model. Zero data retention is always enabled for inference requests, while zero operator access prevents even AWS operators from accessing your prompts and completions during inference. Together, these protections let you use open-weight models with confidence while maintaining control of your data.

Get started with Kimi K3 on Amazon Bedrock

To try Kimi K3, open the Amazon Bedrock console, go to Test > Playground, and select Kimi K3 as the model. From there, you can test your first prompt.

Programmatically, you can call the model using the bedrock-runtime endpoint, which supports the OpenAI-compatible Responses and Chat Completions APIs, and the Amazon Bedrock Invoke and Converse API APIs.

You can invoke Kimi K3 through a cross-Region inference profile. For workloads without regional restrictions we recommend using the global profile, global.moonshotai.kimi-k3, which routes each request to any supported commercial AWS Region worldwide. Global cross-Region inference costs approximately 10% less than a geographic profile. The US geographic profile, us.moonshotai.kimi-k3, keeps processing within the US geography for data residency requirements.

Prerequisites

  1. An active AWS account with Amazon Bedrock access.
  2. Python 3.10+.
  3. AWS Identity and Access Management (AWS IAM) permissions to call the model: bedrock:InvokeModel, bedrock:InvokeModelWithResponseStream, and bedrock:CreateInference.

Here is a quick example that uses the OpenAI SDK and the aws-bedrock-token-generator library for Python to generate short-term bearer tokens for authentication to Amazon Bedrock.

from aws_bedrock_token_generator import provide_token
from openai import OpenAI

region = "us-west-2"
oai_client = OpenAI(
    api_key=provide_token(region=region),
    base_url=f"https://bedrock-runtime.{region}.amazonaws.com/openai/v1",
)

resp = oai_client.responses.create(
    input="What is Byte-Pair Encoding, in AI?",
    model="global.moonshotai.kimi-k3",
)
print(resp.output_text)

Optimize inference with explicit prompt caching

Long-running coding and knowledge workflows often resend stable context, such as repository instructions, tool definitions, or reference documents. With explicit prompt caching, you identify reusable prompt prefixes so later requests can use cached content. When a request matches a cached prefix, Amazon Bedrock can reduce response latency and input token costs.

Caching for Kimi K3 on Amazon Bedrock:

  • You can mark the exact end of a reusable prompt prefix (after at least 1,024 tokens) by adding a prompt_cache_breakpoint to a supported input content.
  • In explicit mode, tokens written to cache are billed at a higher rate but are then kept in cache for at least 30 minutes.
  • For matching subsequent requests that hit the cache, input tokens will be billed at a discounted rate and will not count against input-tokens-per-minute quotas.

With the OpenAI Python API, explicit caching can be configured as shown in the following example:

resp = oai_client.responses.create(
    model="global.moonshotai.kimi-k3",
    # Enable explicit caching mode:
    extra_body={"prompt_cache_options": {"mode": "explicit"}},
    input=[
        {
            "type": "message",
            "role": "system",
            "content": [
                {
                    "type": "input_text",
                    "text": SYSTEM_PROMPT,
                    # A long, static system prompt is a great target for caching:
                    "prompt_cache_breakpoint": {"mode": "explicit"},
                },
            ]
        },
        {
            "type": "message",
            "role": "user",
            "content": [
                {
                    "type": "input_text",
                    "text": USER_INPUT,
                    # Multiple breakpoints can also be defined, for layered cache:
                    "prompt_cache_breakpoint": {"mode": "explicit"},
                },
            ],
        },
    ],
)
if resp.usage.input_tokens_details.cached_tokens:
    print("Hit cache!")

You can explore the Moonshot AI on AWS samples repository for more examples.

Kimi K3 in practice

In addition to using the APIs directly, you can use Kimi K3 through the wide range of coding assistants, personal agents, and agentic frameworks that support Amazon Bedrock specifically, or OpenAI-compatible model providers in general.

Coding assistants

There are several popular coding agents available to builders today, so consider OpenCode as an example. OpenCode is open source, model agnostic, and has a native amazon-bedrock model provider, which uses the Converse API.

To get started, you can configure the amazon-bedrock provider either in your user-level or project-level opencode.json configuration files as shown in the OpenCode documentation. With the provider configured, OpenCode will automatically detect available Amazon Bedrock models which you can select from using the /models command. For example, a minimal ~/.config/opencode.json file could look like:

{
    "$schema": "https://opencode.ai/config.json",
    "model": "amazon-bedrock/global.moonshotai.kimi-k3",
    "provider": {
        "amazon-bedrock": {
            "options": {
                "region": "us-west-2",
                "profile": "PLACEHOLDER-YOUR-AWS-PROFILE-NAME"
            }
        }
    }
}

Once the Amazon Bedrock provider is set up, you can use the /models command to switch models to global.moonshotai.kimi-k3 and start building.

Kimi K3 can build substantial features and work over long-horizon tasks. In the following video, we try it out building a single-file browser-based game to get started:

Figure 1: Building a browser-based game with Kimi K3 in OpenCode

Productivity agents

Beyond coding, Hermes Agent is one example of an open source assistant for general productivity. It can be used through a desktop app or popular messaging apps as well as the terminal, and supports use cases like deep research and task automation where Kimi K3 can also perform well.

As detailed in their documentation, Hermes natively supports models on Amazon Bedrock. To get started:

  1. Run hermes model from your terminal.
  2. Scroll down the list of providers to “AWS Bedrock” (Hermes mislabels “Amazon Bedrock” as “AWS Bedrock”).
  3. If prompted, select the source AWS Region you’d like Hermes to send requests to.
  4. Select either the default credential chain (recommended) to use AWS Command Line Interface credentials already set up in your environment, or generate an Amazon Bedrock API key.
  5. Select Kimi K3 from the auto-discovered list of models, or if it is not available, enter global.moonshotai.kimi-k3 as a custom model name.

If you use named profiles to manage multiple AWS credentials in your environment, then at the time of writing you need to set the AWS_PROFILE environment variable or use your default profile for Hermes. Alternatively, you can switch to an API key. Follow the open issue here for updates on support for setting AWS profile via the Hermes configuration file.

Once the Amazon Bedrock provider is set up and the model configured, you can start using Kimi K3 for your agentic workflows in Hermes. For example, see the following short video in which we ask the agent to build out a personalized study plan:

Figure 2: Building a personalized study plan with Kimi K3 in Hermes Agent

Availability

Kimi K3 is available today on Amazon Bedrock through the US Geo (us.) and Global (global.) cross-Region inference profiles. See Bedrock documentation for the full list of supported Regions. For pricing information, see Amazon Bedrock pricing.

Give Kimi K3 a try in the Amazon Bedrock console, or explore the Moonshot AI on AWS samples repository on GitHub.

Interested in how Amazon Bedrock can support your team?Connect with us to start the conversation.


About the authors

Alex Thewsey

Alex is an AI Specialist Solutions Architect at AWS, based in Singapore. He focuses on how open source technologies and open weight models can help customers around the world to build innovative AI solutions and tackle AI governance challenges.

Saurabh Trikande

Saurabh is a Senior Product Manager for Amazon Bedrock and Amazon SageMaker Inference. He is passionate about working with customers and partners, motivated by the goal of democratizing AI. He focuses on core challenges related to deploying complex AI applications, inference with multi-tenant models, cost optimizations, and making the deployment of generative AI models more accessible. In his spare time, Saurabh enjoys hiking, learning about innovative technologies, following TechCrunch, and spending time with his family.

William Yap

William is Principal Product Manager for Amazon Bedrock.

Tanvi Girinath

Tanvi is a Product Marketing Manager for Amazon Bedrock at Amazon Web Services (AWS), where she helps customers adopt and scale AI applications and agents with Amazon Bedrock.

Sofian Hamiti

Sofian is a technology leader with over 12 years of experience building AI solutions, and leading high-performing teams to maximize customer outcomes. He is passionate about empowering diverse talents to drive global impact and achieve their career aspirations.