Sand AISand AI MAGI-2MAGI-2 现已上线 SandBase:支持原生音频的 1080p 视频立即试用

MiniMax M4

minimax/minimax-m4

MiniMax M4 is the latest generation of MiniMax models. It accepts text, image and video input, always reasons before answering with adjustable reasoning depth, supports function calling and JSON output, and handles up to a 1M-token context.

规格

输入价格
$0.80美元 / 100 万 token
输出价格
$3.10美元 / 100 万 token
缓存读取
$0.05美元 / 100 万 token
上下文窗口
1M
最大输出
512K
Modalities
文本, 图像文本
发布时间
2026年12月3日
新上线
能力
  • 聊天: 支持
  • 视觉: 支持
  • 推理: 支持
  • 结构化输出: 支持
  • 函数调用: 支持
  • 音频输入: 不支持

Prices in 美元 / 100 万 token

可用

快速接入

import os

import requests

headers = {"Authorization": f"Bearer {os.environ['SANDBASE_API_KEY']}"}
payload = {
    "model": "minimax/minimax-m4",
    "messages": [
        {
            "role": "user",
            "content": "Hello",
        },
    ],
    "max_tokens": 2048,
}
response = requests.post(
    "https://api.sandbase.ai/v1/chat/completions",
    headers=headers,
    json=payload,
)
response.raise_for_status()
print(response.json())

问题

常见问题

如何通过 SandBase 调用 MiniMax M4?

先创建一个 SandBase API key,然后向 https://api.sandbase.ai 的 Chat Completions API (/v1/chat/completions) 发送请求,模型 ID 使用“minimax/minimax-m4”。本页的请求示例展示了准确的请求负载。

MiniMax M4 的价格是多少?

每 100 万输入 token $0.80、每 100 万输出 token $3.10,按请求从您的 SandBase 余额中扣费。若有折扣,会在本页的定价中显示。

MiniMax M4 的上下文窗口是多少?

上下文为 1M 个 token,每次响应最多输出 512K 个 token。

MiniMax M4 支持哪些功能?

MiniMax M4 支持 视觉(图像输入), 推理, 函数调用, 结构化输出。完整列表请参见上方 Specifications。

我需要单独的 MiniMax 账户吗?

不需要。一个 SandBase API key 和余额即可让您使用 MiniMax M4 以及目录中的其他模型;您无需单独注册 MiniMax。