Amazon Bedrock で MiniMax モデルを実行可能に
AWS は Amazon Bedrock に MiniMax のオープンウェイトモデル(M2.5 など)を追加し、セキュリティとコンプライアンスを維持しつつ、エージェントやコーディングに特化した高性能推論環境を提供可能にした。
キーポイント
Amazon Bedrock への MiniMax モデル統合
MiniMax の M2 シリーズ(特に M2.5)が Amazon Bedrock で利用可能となり、顧客は AWS インフラ上でこれらのモデルを安全に利用できるようになった。
エージェントおよびコーディング特化の設計
MiniMax モデルはツール呼び出しや多段階タスク分解に最適化されており、特に M2.5 はエージェントネイティブな実行を目的としてトレーニングされている。
MoE アーキテクチャによるコスト効率
Experts のみを使用する混合専門家(MoE)アーキテクチャを採用し、大規模モデルの知識容量を維持しながら推論コストを大幅に削減している。
データ保護とコンプライアンスの保証
AWS 上で完結する完全管理型サービスとして提供され、プロンプトや完成文がモデルトレーニングに使用されないなど、企業のセキュリティ要件を満たす。
MiniMax M2.5 のツール呼び出し機能
MiniMax M2.5 はエージェントワークフローに最適化されており、モデルがユーザーの要求に基づいて関数(ツール)を呼び出すかどうかを判断し、実行結果を回答に統合するワークフローをサポートします。
AWS Secrets Manager による機密情報の管理
Amazon Bedrock API キーは AWS Secrets Manager から取得することが推奨されており、ローカル開発では環境変数を使用できますが、本番環境では必ずシークレットストアを利用すべきです。
ツール呼び出しの検出と引数抽出
モデルからの応答に tool_calls が含まれているか確認し、関数名と JSON 形式の引数を抽出して処理を実行します。
重要な引用
The M2 family delivers strong performance on coding and agentic workloads, with M2.5 purpose-built for agent-native execution
Your prompts and completions are not used to train any models, and your content is not shared with the model providers.
Mixture-of-experts (MoE) architecture where only a small fraction of total parameters activate per token
MiniMax M2.5 is designed for agentic workflows, making it well-suited for tool-calling scenarios.
For local development, you can instead read the key from an environment variable, but avoid that pattern in production.
"messages.append({"role": "tool", "tool_call_id": tool_call.id, "content": json.dumps(result),})"
影響分析・編集コメントを表示
影響分析
この発表は、企業がオープンウェイトモデルの柔軟性と AWS の堅牢なセキュリティ基盤を同時に享受できる道を開いた点で重要です。特にエージェントやコーディング支援といった生産性向上が求められる領域において、MiniMax モデルの実用化が加速し、AWS エコシステム内の選択肢がさらに多様化します。
編集コメント
AWS は引き続き、セキュリティを最優先しつつ、多様なサードパーティモデルの導入障壁を下げる戦略を強化しています。特に「エージェント」や「コーディング」といった具体的なユースケースに特化したモデルがクラウド上で手軽に利用できるようになることは、開発現場にとって大きな追い風となるでしょう。
Organizations are increasingly adopting open-weight foundation models (FMs) to power production AI workloads, from agentic coding assistants to long-context document analysis. As these workloads move from experimentation to enterprise deployment, two requirements shape every model selection decision: the model must deliver the capabilities the workload demands, and the inference environment must support the organization’s security and compliance requirements. Customers are looking for ways to access frontier third-party models without compromising on data protection, regulatory alignment, or operational control.
To address this need, Amazon Bedrock offers a fully managed service for accessing leading FMs from independent model providers, with inference running entirely on AWS-operated infrastructure. Your prompts and completions are not used to train any models, and your content is not shared with the model providers.
The MiniMax family is available on Amazon Bedrock, giving you three open-weight models to match different production workloads. The family is purpose-built for software engineering and agentic use cases. The newest model on Amazon Bedrock, MiniMax M2.5, is trained specifically for agent-native execution. The following sections cover what each model offers and how to choose between them.
In this post, we walk through how to get started with MiniMax models on Amazon Bedrock, including the capabilities supported by these models, the service tiers available, how on-demand inference scales to handle your workloads, and the different APIs you can use to access them. Using these models, customers can build agentic applications, long-context document analysis pipelines, and software engineering workflows, all backed by the security and operational guarantees of AWS.
About MiniMax
MiniMax is a global AI technology company that develops multimodal foundation models with a research emphasis on efficient architectures for production-scale workloads. Its M2 family of large language models is available on Amazon Bedrock as fully managed open-weight models, built around a mixture-of-experts (MoE) architecture where only a small fraction of total parameters activate per token, delivering the knowledge capacity of a much larger dense model at a fraction of the inference cost.
The M2 family delivers strong performance on coding and agentic workloads, with M2.5 purpose-built for agent-native execution through training that emphasizes tool-calling, multi-step task decomposition, and long-horizon coding tasks. Because the models are open-weight, you can independently evaluate the model architecture and training methodology, run your own benchmarks on representative workloads, and fine-tune on proprietary data when customization is required. You can do all of this through a fully managed AWS service, without provisioning infrastructure, hosting model weights, or operating inference stacks.
For the full model catalog, see the MiniMax models on Amazon Bedrock documentation.
MiniMax models on Amazon Bedrock
Amazon Bedrock supports three models from the MiniMax M2 family. MiniMax M2 (minimax.minimax-m2) was the first to launch, establishing the core capabilities of the series with strong multilingual text generation, solid reasoning and coding performance, and a 1 million token context window. MiniMax M2.1 (minimax.minimax-m2.1) followed, adding targeted improvements to reasoning depth, coding accuracy, and instruction following. MiniMax M2.5 (minimax.minimax-m2.5) is the newest model available on Amazon Bedrock and is trained specifically for agent-native execution. Amazon Bedrock continues to expand its catalog of MiniMax models as new versions become available. For the latest list, refer to the Amazon Bedrock model documentation for MiniMax. The following table summarizes the key differences.
MiniMax M2
MiniMax M2.1
MiniMax M2.5
Model ID
minimax.minimax-m2
minimax.minimax-m2.1
minimax.minimax-m2.5
Context window
1M tokens
196K tokens
196K tokens
Max output tokens
8K
8K
8K
Training focus
Multilingual, reasoning, coding
Improved reasoning, coding, instruction following
Agent-native, reinforcement learning (RL) on agentic scaffolds
Service tiers
Standard, Priority, Flex
Standard, Priority, Flex
Standard, Priority, Flex
Best for
Long-context or multilingual, general-purpose
Complex instruction-following or multi-step reasoning
Agentic, tool-calling, or coding-heavy
MiniMax M2.5 uses a mixture-of-experts (MoE) architecture with 230 billion total parameters and 10 billion active per token. For inference cost, the MoE routing mechanism is the key factor. It provides the knowledge capacity of a 230B model while consuming compute proportional to only 10B active parameters per forward pass.
Two endpoints for accessing MiniMax models on Amazon Bedrock
Amazon Bedrock provides two endpoints for invoking MiniMax models: bedrock-mantle and bedrock-runtime.
The Amazon bedrock-mantle endpoint (https://bedrock-mantle.{region}.api.aws/v1) is the public API for Amazon Bedrock’s next-generation inference engine. It uses the Chat Completions API, the same interface as the OpenAI Python and TypeScript SDKs, so teams already on that SDK can switch to MiniMax models on Amazon Bedrock by updating the base URL and model ID. It supports Amazon Bedrock API keys, projects, and client-side tool calling. For most workloads, we recommend the bedrock-mantle endpoint.
The bedrock-runtime endpoint (https://bedrock-runtime.{region}.amazonaws.com) uses the Converse and InvokeModel APIs via the AWS SDK. Use this endpoint for native Amazon Bedrock features such as Guardrails, Agents, Flows, and model evaluation, which are currently available through bedrock-runtime.
In the following sections, we demonstrate both endpoints, starting with the recommended bedrock-mantle endpoint and the Chat Completions API.
Getting started with MiniMax M2.5 in Amazon Bedrock
Complete the following steps to start using MiniMax M2.5 in Amazon Bedrock.
Console playground
- Navigate to the Amazon Bedrock console and select Chat/Text playground from the left menu under the Test section.
- Choose Select model in the center of the playground.
- Choose MiniMax from the category list, then select MiniMax M2.5.
- Choose Apply to load the model.
- Confirm that the model loaded. The model name appears in the playground header and the chat interface is ready for input.
To demonstrate M2.5’s reasoning and code generation capabilities, try the following prompt in the playground:
*“Design a Python microservice that exposes a REST API for managing a task queue. Include error handling, input validation, and write unit tests. Explain your design decisions.”*
Using the bedrock-mantle endpoint (recommended)
Prerequisites
For the bedrock-mantle endpoint, you need an Amazon Bedrock API key or AWS credentials configured for SigV4. To provide access to the bedrock-mantle endpoint, use the following minimum policy:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "BedrockMantleInference",
"Effect": "Allow",
"Action": [
"bedrock-mantle:CreateInference",
"bedrock-mantle:Get*",
"bedrock-mantle:List*"
],
"Resource": "arn:aws:bedrock-mantle:us-east-1:111122223333:project/*"
},
{
"Sid": "BedrockMantleApiKeyAccess",
"Effect": "Allow",
"Action": "bedrock-mantle:CallWithBearerToken",
"Resource": "*"
}
]
}Replace 111122223333 with your AWS account ID, and scope the AWS Region to the Regions that you use. The first statement covers SigV4 authentication. The second covers Amazon Bedrock API key (bearer token) authentication. If you only use SigV4, you can omit the second statement. To control which identities can generate or use Amazon Bedrock API keys, see Control permissions for generating and using Amazon Bedrock API keys. To restrict your organization to approved models only, use a service control policy (SCP).
The following example uses the OpenAI Python SDK as a client library to call the bedrock-mantle endpoint. When using the OpenAI SDK, you need an Amazon Bedrock API key. For production workloads, use short-term API keys, which expire automatically (maximum 12 hours) and inherit the permissions of the AWS Identity and Access Management (IAM) role that generated them. If you’re already using AWS credentials and don’t have an API key, the aws-bedrock-token-generator package generates a short-term bearer token from those credentials.
Note: The code examples in this post invoke MiniMax M2.5, and each model invocation incurs per-token charges. See the Amazon Bedrock pricing page for current rates.
import boto3
from openai import OpenAI
# Retrieve the Amazon Bedrock API key from AWS Secrets Manager
secrets_client = boto3.client("secretsmanager", region_name="us-east-1")
api_key = secrets_client.get_secret_value(SecretId="bedrock-api-key")["SecretString"]
client = OpenAI(
base_url="https://bedrock-mantle.us-east-1.api.aws/v1",
api_key=api_key,
)
response = client.chat.completions.create(
model="minimax.minimax-m2.5",
messages=[
{"role": "user", "content": "Explain the benefits of mixture-of-experts architectures for production inference."}
],
max_tokens=512,
)
print(response.choices[0].message.content)Note: These examples retrieve the Amazon Bedrock API key from AWS Secrets Manager. For local development, you can instead read the key from an environment variable, but avoid that pattern in production. Use AWS Secrets Manager or another secrets store.
Tool calling
MiniMax M2.5 is designed for agentic workflows, making it well-suited for tool-calling scenarios. In a tool-calling workflow, you define functions (tools) that the model can invoke, the model decides when to call them based on the user’s request, and your application runs the function and returns the result for the model to incorporate into its final response.
The following example demonstrates this pattern end to end. We define a get_weather tool, send a user message, let the model request the tool call, run the function with mock data, and pass the result back so the model can generate a natural-language answer.
import json
import boto3
from openai import OpenAI
# Retrieve the Amazon Bedrock API key from AWS Secrets Manager
secrets_client = boto3.client("secretsmanager", region_name="us-east-1")
api_key = secrets_client.get_secret_value(SecretId="bedrock-api-key")["SecretString"]
client = OpenAI(
base_url="https://bedrock-mantle.us-east-1.api.aws/v1",
api_key=api_key,
)
tools = [
{
"type": "function",
"function": {
"name": "get_weather",
"description": "Get the current weather for a given location",
"parameters": {
"type": "object",
"properties": {
"location": {
"type": "string",
"description": "City and country (e.g., Seattle, US)"
},
"unit": {
"type": "string",
"enum": ["celsius", "fahrenheit"],
"description": "Temperature unit"
}
},
"required": ["location"]
}
}
}
]
# Step 1: Send the user request with tool definitions
messages = [
{"role": "user", "content": "What's the weather like in Seattle?"}
]
response = client.chat.completions.create(
model="minimax.minimax-m2.5",
messages=messages,
tools=tools,
tool_choice="auto",
)
assistant_message = response.choices[0].message
# Step 2: Check if the model wants to call a tool
if assistant_message.tool_calls:
messages.append(assistant_message)
for tool_call in assistant_message.tool_calls:
function_name = tool_call.function.name
arguments = json.loads(tool_call.function.arguments)
# Step 3: Validate function name and run
if function_name == "get_weather":
location = arguments.get("location", "Unknown")
unit = arguments.get("unit", "fahrenheit")
result = {
"location": location,
"temperature": 18 if unit == "celsius" else 64,
"unit": unit,
"condition": "Partly cloudy",
"humidity": 72,
}
else:
result = {"error": f"Unknown function: {function_name}"}
# Step 4: Return the function result to the model
messages.append({
"role": "tool",
"tool_call_id": tool_call.id,
"content": json.dumps(result),
})
# Step 5: Get the final response incorporating tool results
final_response = client.chat.completions.create(
model="minimax.minimax-m2.5",
messages=messages,
tools=tools,
)
print(final_response.choices[0].message.content)
else:
print(assistant_message.content)Using the bedrock-runtime endpoint (boto3)
Prerequisites
For the bedrock-runtime endpoint, you need AWS credentials configured (IAM user or role) with permission to invoke the model. Use the following minimum policy:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"bedrock:InvokeModel",
"bedrock:InvokeModelWithResponseStream"
],
"Resource": "arn:aws:bedrock:us-east-1::foundation-model/minimax.minimax-m2.5"
}
]
}For production deployments, scope the Resource to the specific Regions you use. To restrict your organization to approved models only, use a service control policy (SCP).
The following example sends a single-turn request to MiniMax M2.5 using the AWS SDK for Python (Boto3) with the Converse API and prints the model’s response:
import boto3
client = boto3.client("bedrock-runtime", region_name="us-east-1")
response = client.converse(
modelId="minimax.minimax-m2.5",
messages=[{
"role": "user",
"content": [{"text": "What is mixture of experts?"}]
}],
inferenceConfig={"maxTokens": 2048, "temperature": 1.0, "topP": 0.95},
)
content_blocks = response["output"]["message"]["content"]
response_text = next(
(block["text"] for block in content_blocks if "text" in block),
None
)
if response_text:
print(response_text)
else:
print("No text response.")Note: On the Converse API, MiniMax M2.5 returns a reasoningContent block before the text block. The code iterates through the content blocks to extract the final text response.
Using the AWS CLI
You can also access MiniMax M2.5 from your terminal using the AWS Command Line Interface (AWS CLI):
aws bedrock-runtime converse \
--model-id minimax.minimax-m2.5 \
--messages '[{"role":"user","content":[{"text":"Type_Your_Prompt_Here"}]}]' \
--inference-config '{"maxTokens":2048}' \
--region us-east-1Service tiers
Amazon Bedrock offers multiple service tiers to match different workload requirements:
Tier
Best for
Characteristics
MiniMax M2.5 support
Priority
Mission-critical, customer-facing workflows that need the
関連記事
今日のまとめ
AI日報で今日の重要ニュースをまとめ読み