MiMo 参数与协议差异
了解 MiMo 系列模型在兼容协议下的参数差异与使用方式。
使用 MiMo 模型时,根据本页调整所选协议的参数。完整请求和响应结构参阅 Chat Completions、Responses 和 Messages。
| 模型 | 适用范围 |
|---|
| mimo-v2.6-pro-ultraspeed、mimo-v2.6-flash、mimo-v2.6-pro | 均支持 Chat、Responses、Messages,以及图片、音频和视频输入;下列参数规则共同适用 |
| 字段 | 差异说明 |
|---|
thinking.type | 支持 enabled/disabled,默认 enabled;用于开关思考 |
temperature、top_p | 范围分别为 0~1.5、0.01~1,默认分别为 1.0、0.95;开启思考时,传入值会被这两个默认值覆盖,非思考时可调整 |
max_completion_tokens | 范围 1~131072,默认 131072;思考与最终回答共用此预算 |
stop | 最多 4 个停止串 |
response_format.type | 官方列出 text/json_object;JSON 模式还须在提示词中明确要求返回 JSON |
tool_choice | 有效策略为 auto;其他值会被过滤后按 auto 处理,不会强制或禁止工具调用 |
历史 reasoning_content | 思考模式下的多轮工具对话须完整保留历史 assistant 消息及其思考内容;缺失工具轮次的思考内容会返回 400 |
tools 中的 web_search | MiMo 搜索扩展,使用 force_search、max_keyword、limit 等配置;来源通过 message.annotations 返回,调用次数通过 usage.web_search_usage 返回 |
finish_reason | 额外包含 repetition_truncation,表示模型检测到重复生成并截断 |
| 字段 | 差异说明 |
|---|
reasoning.effort | 默认开启思考;none 关闭,minimal/low/medium/high/xhigh/max/ultra 均开启思考,当前不区分实际推理深度 |
temperature、top_p | 范围及思考模式下的覆盖规则同 Chat 表 |
max_output_tokens | 范围 1~131072,默认 131072;包含思考与最终回答 |
text.format.type | 官方列出 text/json_object;使用 JSON 模式时,在提示词中明确输出结构 |
tool_choice | 有效策略为 auto;其他值会被过滤后按 auto 处理 |
tools[].type | 官方列出 function/custom/namespace,支持函数工具、自定义工具和工具命名空间 |
previous_response_id、background、context_management | 不支持,请勿传入;多轮由客户端回传历史输入和输出 |
| 历史 reasoning 项 | 多轮工具对话中,保留返回的推理内容与工具调用项目,一并加入后续 input |
| 字段 | 差异说明 |
|---|
max_tokens | 可选,范围 1~131072,默认 131072;包含思考与最终回答 |
thinking.type | 支持 enabled/disabled,默认 enabled;使用此开关控制思考 |
temperature、top_p | 范围及思考模式下的覆盖规则同 Chat 表 |
messages[].role | 除 user/assistant 外,还允许 system |
tool_choice.type | 有效策略为 auto;其他值会被过滤后按 auto 处理 |
tool_choice.disable_parallel_tool_use | 设为 true 时,在 auto 策略下最多返回一个工具调用 |
| 历史 thinking 块 | 保留完整 assistant 内容,包括 thinking、text 和 tool_use 等块,随工具结果一并回传 |
stop_reason | 额外包含 content_filter 和 repetition_truncation,分别表示内容过滤与重复生成截断 |
| 字段 | 差异说明 |
|---|
| 上下文缓存 | 三款模型均支持缓存,实际命中情况查看响应中的用量字段 |
| Chat | usage.prompt_tokens_details.cached_tokens 返回命中的输入 Token 数 |
| Responses | usage.input_tokens_details.cached_tokens 返回命中的输入 Token 数 |
| Messages | usage.cache_read_input_tokens 返回从缓存读取的输入 Token 数 |
| 字段 | 差异说明 |
|---|
fps | 范围 0.1~10,默认 2;控制视频每秒抽取的帧数 |
media_resolution | 支持 default/max,默认 default;控制视频帧的分辨率级别 |
| 图片大小 | URL 文件不超过 50 MB;单张图片的 Base64 编码字符串不超过 50 MB |
| 音频大小 | URL 文件不超过 100 MB;单段音频的 Base64 编码字符串不超过 50 MB |
| 视频大小 | URL 文件不超过 300 MB;单段视频的 Base64 编码字符串不超过 50 MB |
将 MODEL_ID 替换为平台提供的完整模型 ID,API Key 使用自己的值。
curl 'https://api.agtcloud.ai/v1/chat/completions' \
-H 'Authorization: Bearer your-api-key' \
-H 'Content-Type: application/json' \
--data '{
"model": "MODEL_ID",
"messages": [{"role": "user", "content": "用三点说明如何排查接口超时"}],
"thinking": {"type": "enabled"},
"max_completion_tokens": 4096
}'