⌘K

MiniMax M3

minimax-m3

MiniMax M3 是面向代码与 Agent 场景的大语言模型, 支持最高 1M token 上下文, 具备工具调用、多步推理和原生多模态理解能力. 请求 Vtrix Chat Completions 接口时使用模型 ID `minimax-m3`.

认证

authorization string 必填

所有 API 均使用 Bearer Token 鉴权

获取 API Key:

访问 API Key 管理页面 获取 API Key

用法:

将以下 Header 添加到请求中:

Authorization: Bearer YOUR_API_KEY

参数

model string 必填

请求使用的模型 ID

值: minimax-m3


messages array 必填

表示对话历史的消息对象数组

role string 必填

消息角色

可选值: user, assistant, system, developer

content string | array 必填

消息内容. 纯文本请求使用字符串; 当路由模型支持图片输入时, 可使用多模态内容数组


max_tokens integer

生成的最大 token 数量

范围: 1 - 65536


temperature number

采样温度

默认值: 1.0

范围: 0.0 - 2.0


top_p number

核采样参数

默认值: 1.0

范围: 0.0 - 1.0


stream boolean

是否增量流式返回响应

默认值: false


response_format object

模型必须输出的格式. 当路由模型支持结构化输出时可使用

type string 必填

输出格式类型

可选值: text, json_object, json_schema


响应格式

id string

completion 的唯一标识符


object string

对象类型, 始终为 chat.completion


created integer

创建 completion 时的 Unix 时间戳


model string

用于 completion 的模型


choices array

completion 结果列表

index integer

结果索引

message object

生成的消息

role string

消息角色, 始终为 assistant

content string

生成的文本内容

finish_reason string

模型停止生成的原因


usage object

token 使用统计

prompt_tokens integer

提示词 token 数

completion_tokens integer

生成 token 数

total_tokens integer

token 总数