MaaS_Mimo_V2.6
MaaS_Mimo_V2.6_pro_20260922
模型概览
| 项 |
值 |
| 模型 ID(model) |
mimo-v2.6-pro |
| 定位 |
全模态旗舰,面向专业、长程、复杂工作流 |
| 上下文长度 |
1M tokens |
| 最大输出 |
128K tokens |
| 输入模态 |
文本、图像、视频、音频 |
| 输出模态 |
文本 |
| 默认思考模式 |
开启(Chat / Messages 的 thinking.type 默认 enabled;Responses 的 reasoning.effort 默认 enabled) |
| 能力 |
全模态理解、深度思考、工具调用、流式输出、结构化输出、上下文缓存 |
请求协议
https
| 参数名 |
类型 |
必填 |
描述 |
| Content-Type |
string |
是 |
application/json |
| Authorization |
string |
是 |
Bearer ${your_AK} |
OpenAI Chat Completions
请求 URL
POST https://genaiapi.cloudsway.net/v1/ai/{endpointPath}/chat/completions
请求 Body 参数
| 参数名 |
二级参数 |
三级参数 |
四级参数 |
类型 |
必填 |
描述 |
| model |
- |
- |
- |
string |
是 |
固定为 MaaS_Mimo_V2.6_pro_20260922(厂商原始 model:mimo-v2.6-pro) |
| messages |
- |
- |
- |
array[json] |
是 |
对话消息列表。源文档列出 Developer / System / User / Assistant / Tool 五类消息对象 |
|
role |
- |
- |
string |
是 |
角色。Developer 消息可选值 developer;FAQ 说明 OpenAI 协议含 developer / system / user / assistant |
|
content |
- |
- |
string 或 array |
是 |
消息内容。字符串为纯文本;数组为多模态 content parts |
|
|
type |
- |
string |
否 |
content part 类型。文本 text;图片 image_url;音频 input_audio;视频 video_url |
|
|
text |
- |
string |
否 |
文本内容 |
|
|
image_url |
url |
string |
否 |
图片公网 URL,或 data:{MIME_TYPE};base64,$BASE64_IMAGE。格式 JPEG / PNG / GIF / WebP / BMP;URL 与 Base64 均不超过 50 MB |
|
|
input_audio |
data |
string |
否 |
音频公网 URL,或 data:{MIME_TYPE};base64,$BASE64_AUDIO。格式 MP3 / WAV / FLAC / M4A / OGG;URL ≤ 100 MB,Base64 ≤ 50 MB |
|
|
video_url |
url |
string |
否 |
视频公网 URL,或 data:{MIME_TYPE};base64,$BASE64_VIDEO。格式 MP4 / MOV / AVI / WMV;URL ≤ 300 MB,Base64 ≤ 50 MB |
|
|
fps |
- |
number |
否 |
视频抽帧帧率,控制时序精细度。默认 2,范围 [0.1, 10] |
|
|
media_resolution |
- |
string |
否 |
视频单帧分辨率档次。默认 default;max 提升细节识别 |
|
name |
- |
- |
string |
否 |
参与者可选名称,用于区分相同角色 |
|
reasoning_content |
- |
- |
string |
否 |
助手历史思考内容。思考模式下多轮工具调用时,建议保留全部历史 reasoning_content |
| frequency_penalty |
- |
- |
- |
number | null |
否 |
按已有文本出现频率惩罚新 token。默认 0,范围 [-2.0, 2.0] |
| max_completion_tokens |
- |
- |
- |
integer | null |
否 |
可见输出 + 推理 token 上限。本模型默认 131072,范围 [1, 131072] |
| presence_penalty |
- |
- |
- |
number | null |
否 |
按是否已出现惩罚新 token。默认 0,范围 [-2.0, 2.0] |
| response_format |
- |
- |
- |
object |
否 |
指定输出格式 |
|
type |
- |
- |
string |
是 |
text 为默认文本;json_object 开启 JSON 模式。JSON 模式仅保证语法合法,字段结构由提示词约束 |
| stop |
- |
- |
- |
string | array | null |
否 |
最多 4 个停止序列,返回文本不含这些序列。默认 null |
| stream |
- |
- |
- |
boolean | null |
否 |
true 时以 SSE 流式返回。默认 false |
| thinking |
- |
- |
- |
object |
否 |
控制是否启用思维链。思考模式下不支持自定义 temperature / top_p,即使传入也强制为 1.0 / 0.95 |
|
type |
- |
- |
string |
是 |
本模型默认 enabled。可选值:enabled,disabled |
| temperature |
- |
- |
- |
number |
否 |
采样温度,范围 [0, 1.5]。本模型默认 1.0。建议与 top_p 只改其一。思考模式下强制 1.0 |
| tool_choice |
- |
- |
- |
string |
否 |
控制如何选择工具。可选值:auto。传入非 auto 时后端会移除该字段,行为仍等同 auto |
| tools |
- |
- |
- |
array |
否 |
可调用工具列表。支持函数工具与联网搜索工具 |
|
type |
- |
- |
string |
是 |
函数工具为 function;联网搜索为 web_search |
|
function |
name |
- |
string |
是 |
函数名。a-zA-Z0-9_-,长度 1-64 |
|
function |
description |
- |
string |
否 |
函数功能描述 |
|
function |
parameters |
- |
object |
否 |
JSON Schema。省略表示参数列表为空 |
|
function |
strict |
- |
boolean |
否 |
是否严格遵循 parameters。默认 false |
|
max_keyword |
- |
- |
integer |
否 |
联网搜索:一轮搜索最大关键词数,用于控制调用次数与成本。源文档示例值为 3 |
|
force_search |
- |
- |
boolean |
否 |
联网搜索:true 强制联网。未强制时由模型判断是否搜索 |
|
limit |
- |
- |
integer |
否 |
联网搜索:源文档示例出现,含义未单独说明 |
|
user_location |
type |
- |
string |
否 |
联网搜索地理位置。源文档示例为 approximate |
|
user_location |
country |
- |
string |
否 |
国家,源文档示例 China |
|
user_location |
region |
- |
string |
否 |
地区,源文档示例 Hubei |
|
user_location |
city |
- |
string |
否 |
城市,源文档示例 Wuhan |
| top_p |
- |
- |
- |
number |
否 |
核采样,范围 [0.01, 1.0]。默认 0.95。思考模式下强制 0.95 |
请求示例
curl -X POST 'https://genaiapi.cloudsway.net/v1/ai/{endpointPath}/chat/completions' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer ${your_AK}' \
-d '{
"model": "MaaS_Mimo_V2.6_pro_20260922",
"messages": [
{
"role": "system",
"content": "You are MiMo, an AI assistant developed by Xiaomi."
},
{
"role": "user",
"content": "please introduce yourself"
}
],
"max_completion_tokens": 1024,
"temperature": 1.0,
"top_p": 0.95,
"stream": false,
"thinking": {
"type": "disabled"
}
}'
响应示例
{
"id": "6272d55f-a84e-4664-9db1-8462899db7dc_abdfaf015d1a4623b2a4f9b99179c2f9",
"choices": [
{
"finish_reason": "stop",
"index": 0,
"message": {
"content": "Hi there! I'm MiMo, a friendly AI assistant created by the Xiaomi LLM Core Team. Nice to meet you! How can I help you today?",
"role": "assistant",
"tool_calls": null
}
}
],
"created": 1790006669,
"model": "MaaS_Mimo_V2.6_pro_20260922",
"object": "chat.completion",
"usage": {
"completion_tokens": 34,
"prompt_tokens": 57,
"total_tokens": 91,
"completion_tokens_details": {
"reasoning_tokens": 0
},
"prompt_tokens_details": {
"cached_tokens": 0
}
}
}
流式请求示例
curl -X POST 'https://genaiapi.cloudsway.net/v1/ai/{endpointPath}/chat/completions' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer ${your_AK}' \
-d '{
"model": "MaaS_Mimo_V2.6_pro_20260922",
"messages": [
{"role": "user", "content": "please introduce yourself"}
],
"max_completion_tokens": 1024,
"stream": true,
"thinking": {"type": "disabled"}
}'
SDK 调用方式
import os
from openai import OpenAI
client = OpenAI(
${your_AK}=os.environ.get("your_AK"),
base_url="https://genaiapi.cloudsway.net/v1/ai/{endpointPath}"
)
completion = client.chat.completions.create(
model="MaaS_Mimo_V2.6_pro_20260922",
messages=[
{"role": "system", "content": "You are MiMo, an AI assistant developed by Xiaomi."},
{"role": "user", "content": "please introduce yourself"}
],
max_completion_tokens=1024,
stream=False,
extra_body={"thinking": {"type": "disabled"}}
)
print(completion.model_dump_json())
OpenAI Responses
请求 URL
POST https://genaiapi.cloudsway.net/v1/ai/{endpoint}/responses
请求 Body 参数
| 参数名 |
二级参数 |
三级参数 |
类型 |
必填 |
描述 |
| model |
- |
- |
string |
是 |
固定为 MaaS_Mimo_V2.6_pro_20260922(厂商原始 model:mimo-v2.6-pro) |
| input |
- |
- |
string 或 array |
是 |
文本 / 图像 / 音频 / 视频输入。字符串等同 user 文本;数组为 InputItemList |
|
type |
- |
string |
否 |
源文档展开的文本输入类型为 input_text。另列出 ResponseInputImage / ResponseInputAudioContent / ResponseInputVideoContent,子字段未展开 |
|
text |
- |
string |
否 |
文本输入内容 |
| instructions |
- |
- |
string |
否 |
注入模型上下文的系统(或开发者)指令 |
| max_output_tokens |
- |
- |
integer |
否 |
可见输出 + 推理 token 上限。本模型默认 131072,范围 [1, 131072] |
| stream |
- |
- |
boolean |
否 |
true 时以 SSE 流式返回。默认 false |
| reasoning |
- |
- |
object |
否 |
推理配置。思考模式下多轮工具调用应在后续 input 中保留历史思考内容 |
|
effort |
- |
string |
是 |
控制思考投入。none 关闭思考;其余合法取值均开启思考,行为一致,暂不区分强度。minimal 映射为 low;xhigh / max / ultra 映射为 high。本模型默认 enabled。可选值:none,minimal,low,medium,high,xhigh,max,ultra |
| temperature |
- |
- |
number |
否 |
采样温度,范围 [0, 1.5]。本模型默认 1.0。思考模式下强制 1.0 |
| text |
- |
- |
object |
否 |
文本响应配置,支持纯文本或结构化 JSON |
|
format |
type |
string |
是 |
源文档可选值写 text;另列 ResponseFormatJSONObject。默认 {"type":"text"} |
| tool_choice |
- |
- |
string |
否 |
可选值:auto。非 auto 会被后端移除,行为仍等同 auto |
| tools |
- |
- |
array |
否 |
可调用工具。源文档列出 Function / Custom / Namespace,仅展开 Function |
|
type |
- |
string |
是 |
Function 工具为 function |
|
name |
- |
string |
是 |
函数名。a-zA-Z0-9_-,长度 1-64 |
|
parameters |
- |
object |
是 |
函数参数 JSON Schema |
|
strict |
- |
boolean |
是 |
是否严格遵循参数模式。默认 false |
|
description |
- |
string | null |
否 |
函数描述 |
| top_p |
- |
- |
number |
否 |
核采样,范围 [0.01, 1.0]。默认 0.95。思考模式下强制 0.95 |
请求示例
curl -X POST 'https://genaiapi.cloudsway.net/v1/ai/{endpoint}/responses' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer ${your_AK}' \
-d '{
"model": "MaaS_Mimo_V2.6_pro_20260922",
"instructions": "You are MiMo, an AI assistant developed by Xiaomi.",
"input": "please introduce yourself",
"max_output_tokens": 1024,
"stream": false,
"reasoning": {
"effort": "none"
}
}'
响应示例
{
"id": "resp_bcdb1b61-d49e-48e5-8289-384ad1e65f2f_9aa9e9dfd5b84cb99b088fe4e53b65ec",
"object": "response",
"created_at": 1790007468,
"status": "completed",
"error": null,
"incomplete_details": null,
"model": "MaaS_Mimo_V2.6_pro_20260922",
"metadata": null,
"output": [
{
"id": "msg_3d0b3a6faf634d36a8a5bdb8f2100fcd",
"type": "message",
"status": "completed",
"role": "assistant",
"content": [
{
"type": "output_text",
"text": "Hey there! I'm MiMo, Xiaomi's AI assistant.",
"annotations": []
}
]
}
],
"output_text": "Hey there! I'm MiMo, Xiaomi's AI assistant.",
"usage": {
"input_tokens": 57,
"input_tokens_details": {
"cached_tokens": 0
},
"output_tokens": 130,
"output_tokens_details": {
"reasoning_tokens": 0
},
"total_tokens": 187
}
}
流式请求示例
curl -X POST 'https://genaiapi.cloudsway.net/v1/ai/{endpoint}/responses' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer ${your_AK}' \
-d '{
"model": "MaaS_Mimo_V2.6_pro_20260922",
"input": "please introduce yourself",
"stream": true,
"reasoning": {"effort": "none"}
}'
SDK 调用方式
import os
from openai import OpenAI
client = OpenAI(
${your_AK}=os.environ.get("${your_AK}"),
base_url="https://genaiapi.cloudsway.net/v1/ai/{endpoint}"
)
response = client.responses.create(
model="MaaS_Mimo_V2.6_pro_20260922",
instructions="You are MiMo, an AI assistant developed by Xiaomi.",
input="please introduce yourself",
max_output_tokens=1024,
stream=False,
extra_body={"reasoning": {"effort": "none"}}
)
print(response.model_dump_json())
Anthropic Messages
请求 URL
POST https://genaiapi.cloudsway.net/{endpoint}/v1/messages
请求 Body 参数
| 参数名 |
二级参数 |
三级参数 |
四级参数 |
类型 |
必填 |
描述 |
| model |
- |
- |
- |
string |
是 |
固定为 MaaS_Mimo_V2.6_pro_20260922(厂商原始 model:mimo-v2.6-pro) |
| messages |
- |
- |
- |
array[json] |
是 |
输入消息。每条须含 role 与 content。最后一条为 assistant 时,响应从该内容继续 |
|
role |
- |
- |
string |
是 |
可选值:user,assistant,system |
|
content |
- |
- |
string 或 array |
是 |
字符串为单条 text 的简写;数组为 content blocks |
|
|
type |
- |
string |
否 |
文本为 text;图片为 image。协议页另有音频 / 视频示例入口,字段明细未展开 |
|
|
text |
- |
string |
否 |
文本内容 |
|
|
source |
type |
string |
否 |
图片来源。url 或 base64 |
|
|
source |
url |
string |
否 |
图片公网 URL |
|
|
source |
media_type |
string |
否 |
Base64 图片 MIME,如 image/png |
|
|
source |
data |
string |
否 |
纯 Base64 图片数据(不含 data URL 前缀) |
| max_tokens |
- |
- |
- |
integer |
否 |
停止前最大生成 token。本模型默认 131072,范围 [1, 131072]。模型可能提前停止 |
| stop_sequences |
- |
- |
- |
array |
否 |
自定义停止序列。自然结束时 stop_reason 为 end_turn |
| stream |
- |
- |
- |
boolean |
否 |
是否流式输出。默认 false |
| system |
- |
- |
- |
string 或 array |
否 |
系统提示,可为文本或 content parts |
| temperature |
- |
- |
- |
number |
否 |
采样温度,范围 [0, 1.5]。本模型默认 1.0。思考模式下强制 1.0 |
| thinking |
- |
- |
- |
object |
否 |
扩展思维配置。思考模式下多轮工具调用应保留历史 thinking 内容块 |
|
type |
- |
- |
string |
是 |
本模型默认 enabled。可选值:enabled,disabled |
| tool_choice |
- |
- |
- |
object |
否 |
控制如何使用工具 |
|
type |
- |
- |
string |
是 |
可选值:auto。非 auto 会被后端移除 |
|
disable_parallel_tool_use |
- |
- |
boolean |
否 |
true 且 type=auto 时最多输出一个工具调用。默认 false |
| tools |
- |
- |
- |
array |
否 |
工具定义。模型可能返回 tool_use,调用方回传 tool_result |
|
name |
- |
- |
string |
是 |
工具名称,对应 tool_use 中的 name |
|
description |
- |
- |
string |
否 |
工具描述,建议尽量详细 |
|
type |
- |
- |
string |
否 |
可选值:custom |
|
input_schema |
type |
- |
string |
是 |
仅为 object |
|
input_schema |
properties |
- |
object | null |
否 |
工具输入属性 |
|
input_schema |
required |
- |
array | null |
否 |
必填属性列表 |
| top_p |
- |
- |
- |
number |
否 |
核采样,范围 [0.01, 1.0]。默认 0.95。思考模式下强制 0.95。建议只改 temperature 或 top_p 其一 |
源文档未要求额外 anthropic-version Header。
请求示例
curl -X POST 'https://genaiapi.cloudsway.net/{endpoint}/v1/messages' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer ${your_AK}' \
-d '{
"model": "MaaS_Mimo_V2.6_pro_20260922",
"max_tokens": 1024,
"system": "You are MiMo, an AI assistant developed by Xiaomi.",
"messages": [
{
"role": "user",
"content": [
{"type": "text", "text": "please introduce yourself"}
]
}
],
"top_p": 0.95,
"stream": false,
"temperature": 1.0,
"thinking": {"type": "disabled"}
}'
响应示例
{
"id": "23894237-e793-4156-965e-56cea4295290_a43d65ad5fb048e7ba57e27e689b2bf8",
"type": "message",
"role": "assistant",
"model": "MaaS_Mimo_V2.6_pro_20260922",
"stop_reason": "end_turn",
"content": [
{
"type": "text",
"text": "Hey there! I'm MiMo, Xiaomi's AI assistant, here to help you with whatever you need."
}
],
"usage": {
"input_tokens": 57,
"output_tokens": 41
}
}
流式请求示例
curl -X POST 'https://genaiapi.cloudsway.net/{endpoint}/v1/messages' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer ${your_AK}' \
-d '{
"model": "MaaS_Mimo_V2.6_pro_20260922",
"max_tokens": 1024,
"messages": [
{"role": "user", "content": "please introduce yourself"}
],
"stream": true,
"thinking": {"type": "disabled"}
}'
SDK 调用方式
import os
from anthropic import Anthropic
client = Anthropic(
${your_AK}=os.environ.get("${your_AK}"),
base_url="https://genaiapi.cloudsway.net/{endpoint}/v1"
)
message = client.messages.create(
model="MaaS_Mimo_V2.6_pro_20260922",
max_tokens=1024,
system="You are MiMo, an AI assistant developed by Xiaomi.",
messages=[
{
"role": "user",
"content": [{"type": "text", "text": "please introduce yourself"}]
}
],
top_p=0.95,
stream=False,
temperature=1.0
)
print(message.content)
MaaS_Mimo_V2.6_flash_20260922
模型概览
| 项 |
值 |
| 模型 ID(model) |
mimo-v2.6-flash |
| 定位 |
全模态高效推理,面向专业办公高频调用与规模化任务 |
| 上下文长度 |
1M tokens |
| 最大输出 |
128K tokens |
| 输入模态 |
文本、图像、视频、音频 |
| 输出模态 |
文本 |
| 默认思考模式 |
开启(Chat / Messages 的 thinking.type 默认 enabled;Responses 的 reasoning.effort 默认 enabled) |
| 能力 |
全模态理解、深度思考、工具调用、流式输出、联网搜索(仅 Chat Completions)、结构化输出、上下文缓存 |
| 上下文缓存 |
支持;响应 usage 返回 cached_tokens / cache_read_input_tokens。源文档未提供独立请求参数 |
请求协议
https
| 参数名 |
类型 |
必填 |
描述 |
| Content-Type |
string |
是 |
application/json |
| Authorization |
string |
是 |
Bearer ${your_AK} |
OpenAI Chat Completions
请求 URL
POST https://genaiapi.cloudsway.net/v1/ai/{endpointPath}/chat/completions
请求 Body 参数
| 参数名 |
二级参数 |
三级参数 |
四级参数 |
类型 |
必填 |
描述 |
| model |
- |
- |
- |
string |
是 |
固定为 MaaS_Mimo_V2.6_flash_20260922(厂商原始 model:mimo-v2.6-flash) |
| messages |
- |
- |
- |
array[json] |
是 |
对话消息列表。源文档列出 Developer / System / User / Assistant / Tool 五类消息对象 |
|
role |
- |
- |
string |
是 |
角色。Developer 消息可选值 developer;FAQ 说明 OpenAI 协议含 developer / system / user / assistant |
|
content |
- |
- |
string 或 array |
是 |
消息内容。字符串为纯文本;数组为多模态 content parts |
|
|
type |
- |
string |
否 |
content part 类型。文本 text;图片 image_url;音频 input_audio;视频 video_url |
|
|
text |
- |
string |
否 |
文本内容 |
|
|
image_url |
url |
string |
否 |
图片公网 URL,或 data:{MIME_TYPE};base64,$BASE64_IMAGE。格式 JPEG / PNG / GIF / WebP / BMP;URL 与 Base64 均不超过 50 MB |
|
|
input_audio |
data |
string |
否 |
音频公网 URL,或 data:{MIME_TYPE};base64,$BASE64_AUDIO。格式 MP3 / WAV / FLAC / M4A / OGG;URL ≤ 100 MB,Base64 ≤ 50 MB |
|
|
video_url |
url |
string |
否 |
视频公网 URL,或 data:{MIME_TYPE};base64,$BASE64_VIDEO。格式 MP4 / MOV / AVI / WMV;URL ≤ 300 MB,Base64 ≤ 50 MB |
|
|
fps |
- |
number |
否 |
视频抽帧帧率,控制时序精细度。默认 2,范围 [0.1, 10] |
|
|
media_resolution |
- |
string |
否 |
视频单帧分辨率档次。默认 default;max 提升细节识别 |
|
name |
- |
- |
string |
否 |
参与者可选名称,用于区分相同角色 |
|
reasoning_content |
- |
- |
string |
否 |
助手历史思考内容。思考模式下多轮工具调用时,建议保留全部历史 reasoning_content |
| frequency_penalty |
- |
- |
- |
number | null |
否 |
按已有文本出现频率惩罚新 token。默认 0,范围 [-2.0, 2.0] |
| max_completion_tokens |
- |
- |
- |
integer | null |
否 |
可见输出 + 推理 token 上限。本模型默认 131072,范围 [1, 131072] |
| presence_penalty |
- |
- |
- |
number | null |
否 |
按是否已出现惩罚新 token。默认 0,范围 [-2.0, 2.0] |
| response_format |
- |
- |
- |
object |
否 |
指定输出格式 |
|
type |
- |
- |
string |
是 |
text 为默认文本;json_object 开启 JSON 模式。JSON 模式仅保证语法合法,字段结构由提示词约束 |
| stop |
- |
- |
- |
string | array | null |
否 |
最多 4 个停止序列,返回文本不含这些序列。默认 null |
| stream |
- |
- |
- |
boolean | null |
否 |
true 时以 SSE 流式返回。默认 false |
| thinking |
- |
- |
- |
object |
否 |
控制是否启用思维链。思考模式下不支持自定义 temperature / top_p,即使传入也强制为 1.0 / 0.95 |
|
type |
- |
- |
string |
是 |
本模型默认 enabled。可选值:enabled,disabled |
| temperature |
- |
- |
- |
number |
否 |
采样温度,范围 [0, 1.5]。本模型默认 1.0。建议与 top_p 只改其一。思考模式下强制 1.0 |
| tool_choice |
- |
- |
- |
string |
否 |
控制如何选择工具。可选值:auto。传入非 auto 时后端会移除该字段,行为仍等同 auto |
| tools |
- |
- |
- |
array |
否 |
可调用工具列表。支持函数工具与联网搜索工具 |
|
type |
- |
- |
string |
是 |
函数工具为 function;联网搜索为 web_search |
|
function |
name |
- |
string |
是 |
函数名。a-zA-Z0-9_-,长度 1-64 |
|
function |
description |
- |
string |
否 |
函数功能描述 |
|
function |
parameters |
- |
object |
否 |
JSON Schema。省略表示参数列表为空 |
|
function |
strict |
- |
boolean |
否 |
是否严格遵循 parameters。默认 false |
|
max_keyword |
- |
- |
integer |
否 |
联网搜索:一轮搜索最大关键词数,用于控制调用次数与成本。源文档示例值为 3 |
|
force_search |
- |
- |
boolean |
否 |
联网搜索:true 强制联网。未强制时由模型判断是否搜索 |
|
limit |
- |
- |
integer |
否 |
联网搜索:源文档示例出现,含义未单独说明 |
|
user_location |
type |
- |
string |
否 |
联网搜索地理位置。源文档示例为 approximate |
|
user_location |
country |
- |
string |
否 |
国家,源文档示例 China |
|
user_location |
region |
- |
string |
否 |
地区,源文档示例 Hubei |
|
user_location |
city |
- |
string |
否 |
城市,源文档示例 Wuhan |
| top_p |
- |
- |
- |
number |
否 |
核采样,范围 [0.01, 1.0]。默认 0.95。思考模式下强制 0.95 |
请求示例
curl -X POST 'https://genaiapi.cloudsway.net/v1/ai/{endpointPath}/chat/completions' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer ${your_AK}' \
-d '{
"model": "MaaS_Mimo_V2.6_flash_20260922",
"messages": [
{
"role": "system",
"content": "You are MiMo, an AI assistant developed by Xiaomi."
},
{
"role": "user",
"content": "please introduce yourself"
}
],
"max_completion_tokens": 1024,
"temperature": 1.0,
"top_p": 0.95,
"stream": false,
"thinking": {
"type": "disabled"
}
}'
响应示例
{
"id": "6272d55f-a84e-4664-9db1-8462899db7dc_abdfaf015d1a4623b2a4f9b99179c2f9",
"choices": [
{
"finish_reason": "stop",
"index": 0,
"message": {
"content": "Hi there! I'm MiMo, a friendly AI assistant created by the Xiaomi LLM Core Team. Nice to meet you! How can I help you today?",
"role": "assistant",
"tool_calls": null
}
}
],
"created": 1790006669,
"model": "MaaS_Mimo_V2.6_flash_20260922",
"object": "chat.completion",
"usage": {
"completion_tokens": 34,
"prompt_tokens": 57,
"total_tokens": 91,
"completion_tokens_details": {
"reasoning_tokens": 0
},
"prompt_tokens_details": {
"cached_tokens": 0
}
}
}
流式请求示例
curl -X POST 'https://genaiapi.cloudsway.net/v1/ai/{endpointPath}/chat/completions' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer ${your_AK}' \
-d '{
"model": "MaaS_Mimo_V2.6_flash_20260922",
"messages": [
{"role": "user", "content": "please introduce yourself"}
],
"max_completion_tokens": 1024,
"stream": true,
"thinking": {"type": "disabled"}
}'
SDK 调用方式
import os
from openai import OpenAI
client = OpenAI(
${your_AK}=os.environ.get("${your_AK}"),
base_url="https://genaiapi.cloudsway.net/v1/ai/{endpointPath}"
)
completion = client.chat.completions.create(
model="MaaS_Mimo_V2.6_flash_20260922",
messages=[
{"role": "system", "content": "You are MiMo, an AI assistant developed by Xiaomi."},
{"role": "user", "content": "please introduce yourself"}
],
max_completion_tokens=1024,
stream=False,
extra_body={"thinking": {"type": "disabled"}}
)
print(completion.model_dump_json())
OpenAI Responses
请求 URL
POST https://genaiapi.cloudsway.net/v1/ai/{endpoint}/responses
请求 Body 参数
| 参数名 |
二级参数 |
三级参数 |
类型 |
必填 |
描述 |
| model |
- |
- |
string |
是 |
固定为 MaaS_Mimo_V2.6_flash_20260922(厂商原始 model:mimo-v2.6-flash) |
| input |
- |
- |
string 或 array |
是 |
文本 / 图像 / 音频 / 视频输入。字符串等同 user 文本;数组为 InputItemList |
|
type |
- |
string |
否 |
源文档展开的文本输入类型为 input_text。另列出 ResponseInputImage / ResponseInputAudioContent / ResponseInputVideoContent,子字段未展开 |
|
text |
- |
string |
否 |
文本输入内容 |
| instructions |
- |
- |
string |
否 |
注入模型上下文的系统(或开发者)指令 |
| max_output_tokens |
- |
- |
integer |
否 |
可见输出 + 推理 token 上限。本模型默认 131072,范围 [1, 131072] |
| stream |
- |
- |
boolean |
否 |
true 时以 SSE 流式返回。默认 false |
| reasoning |
- |
- |
object |
否 |
推理配置。思考模式下多轮工具调用应在后续 input 中保留历史思考内容 |
|
effort |
- |
string |
是 |
控制思考投入。none 关闭思考;其余合法取值均开启思考,行为一致,暂不区分强度。minimal 映射为 low;xhigh / max / ultra 映射为 high。本模型默认 enabled。可选值:none,minimal,low,medium,high,xhigh,max,ultra |
| temperature |
- |
- |
number |
否 |
采样温度,范围 [0, 1.5]。本模型默认 1.0。思考模式下强制 1.0 |
| text |
- |
- |
object |
否 |
文本响应配置,支持纯文本或结构化 JSON |
|
format |
type |
string |
是 |
源文档可选值写 text;另列 ResponseFormatJSONObject。默认 {"type":"text"} |
| tool_choice |
- |
- |
string |
否 |
可选值:auto。非 auto 会被后端移除,行为仍等同 auto |
| tools |
- |
- |
array |
否 |
可调用工具。源文档列出 Function / Custom / Namespace,仅展开 Function |
|
type |
- |
string |
是 |
Function 工具为 function |
|
name |
- |
string |
是 |
函数名。a-zA-Z0-9_-,长度 1-64 |
|
parameters |
- |
object |
是 |
函数参数 JSON Schema |
|
strict |
- |
boolean |
是 |
是否严格遵循参数模式。默认 false |
|
description |
- |
string | null |
否 |
函数描述 |
| top_p |
- |
- |
number |
否 |
核采样,范围 [0.01, 1.0]。默认 0.95。思考模式下强制 0.95 |
请求示例
curl -X POST 'https://genaiapi.cloudsway.net/v1/ai/{endpoint}/responses' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer ${your_AK}' \
-d '{
"model": "MaaS_Mimo_V2.6_flash_20260922",
"instructions": "You are MiMo, an AI assistant developed by Xiaomi.",
"input": "please introduce yourself",
"max_output_tokens": 1024,
"stream": false,
"reasoning": {
"effort": "none"
}
}'
响应示例
{
"id": "resp_bcdb1b61-d49e-48e5-8289-384ad1e65f2f_9aa9e9dfd5b84cb99b088fe4e53b65ec",
"object": "response",
"created_at": 1790007468,
"status": "completed",
"error": null,
"incomplete_details": null,
"model": "MaaS_Mimo_V2.6_flash_20260922",
"metadata": null,
"output": [
{
"id": "msg_3d0b3a6faf634d36a8a5bdb8f2100fcd",
"type": "message",
"status": "completed",
"role": "assistant",
"content": [
{
"type": "output_text",
"text": "Hey there! I'm MiMo, Xiaomi's AI assistant.",
"annotations": []
}
]
}
],
"output_text": "Hey there! I'm MiMo, Xiaomi's AI assistant.",
"usage": {
"input_tokens": 57,
"input_tokens_details": {
"cached_tokens": 0
},
"output_tokens": 130,
"output_tokens_details": {
"reasoning_tokens": 0
},
"total_tokens": 187
}
}
流式请求示例
curl -X POST 'https://genaiapi.cloudsway.net/v1/ai/{endpoint}/responses' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer ${your_AK}' \
-d '{
"model": "MaaS_Mimo_V2.6_flash_20260922",
"input": "please introduce yourself",
"stream": true,
"reasoning": {"effort": "none"}
}'
SDK 调用方式
import os
from openai import OpenAI
client = OpenAI(
${your_AK}=os.environ.get("${your_AK}"),
base_url="https://genaiapi.cloudsway.net/v1/ai/{endpoint}"
)
response = client.responses.create(
model="MaaS_Mimo_V2.6_flash_20260922",
instructions="You are MiMo, an AI assistant developed by Xiaomi.",
input="please introduce yourself",
max_output_tokens=1024,
stream=False,
extra_body={"reasoning": {"effort": "none"}}
)
print(response.model_dump_json())
Anthropic Messages
请求 URL
POST https://genaiapi.cloudsway.net/{endpoint}/v1/messages
请求 Body 参数
| 参数名 |
二级参数 |
三级参数 |
四级参数 |
类型 |
必填 |
描述 |
| model |
- |
- |
- |
string |
是 |
固定为 MaaS_Mimo_V2.6_flash_20260922(厂商原始 model:mimo-v2.6-flash) |
| messages |
- |
- |
- |
array[json] |
是 |
输入消息。每条须含 role 与 content。最后一条为 assistant 时,响应从该内容继续 |
|
role |
- |
- |
string |
是 |
可选值:user,assistant,system |
|
content |
- |
- |
string 或 array |
是 |
字符串为单条 text 的简写;数组为 content blocks |
|
|
type |
- |
string |
否 |
文本为 text;图片为 image。协议页另有音频 / 视频示例入口,字段明细未展开 |
|
|
text |
- |
string |
否 |
文本内容 |
|
|
source |
type |
string |
否 |
图片来源。url 或 base64 |
|
|
source |
url |
string |
否 |
图片公网 URL |
|
|
source |
media_type |
string |
否 |
Base64 图片 MIME,如 image/png |
|
|
source |
data |
string |
否 |
纯 Base64 图片数据(不含 data URL 前缀) |
| max_tokens |
- |
- |
- |
integer |
否 |
停止前最大生成 token。本模型默认 131072,范围 [1, 131072]。模型可能提前停止 |
| stop_sequences |
- |
- |
- |
array |
否 |
自定义停止序列。自然结束时 stop_reason 为 end_turn |
| stream |
- |
- |
- |
boolean |
否 |
是否流式输出。默认 false |
| system |
- |
- |
- |
string 或 array |
否 |
系统提示,可为文本或 content parts |
| temperature |
- |
- |
- |
number |
否 |
采样温度,范围 [0, 1.5]。本模型默认 1.0。思考模式下强制 1.0 |
| thinking |
- |
- |
- |
object |
否 |
扩展思维配置。思考模式下多轮工具调用应保留历史 thinking 内容块 |
|
type |
- |
- |
string |
是 |
本模型默认 enabled。可选值:enabled,disabled |
| tool_choice |
- |
- |
- |
object |
否 |
控制如何使用工具 |
|
type |
- |
- |
string |
是 |
可选值:auto。非 auto 会被后端移除 |
|
disable_parallel_tool_use |
- |
- |
boolean |
否 |
true 且 type=auto 时最多输出一个工具调用。默认 false |
| tools |
- |
- |
- |
array |
否 |
工具定义。模型可能返回 tool_use,调用方回传 tool_result |
|
name |
- |
- |
string |
是 |
工具名称,对应 tool_use 中的 name |
|
description |
- |
- |
string |
否 |
工具描述,建议尽量详细 |
|
type |
- |
- |
string |
否 |
可选值:custom |
|
input_schema |
type |
- |
string |
是 |
仅为 object |
|
input_schema |
properties |
- |
object | null |
否 |
工具输入属性 |
|
input_schema |
required |
- |
array | null |
否 |
必填属性列表 |
| top_p |
- |
- |
- |
number |
否 |
核采样,范围 [0.01, 1.0]。默认 0.95。思考模式下强制 0.95。建议只改 temperature 或 top_p 其一 |
请求示例
curl -X POST 'https://genaiapi.cloudsway.net/{endpoint}/v1/messages' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer ${your_AK}' \
-d '{
"model": "MaaS_Mimo_V2.6_flash_20260922",
"max_tokens": 1024,
"system": "You are MiMo, an AI assistant developed by Xiaomi.",
"messages": [
{
"role": "user",
"content": [
{"type": "text", "text": "please introduce yourself"}
]
}
],
"top_p": 0.95,
"stream": false,
"temperature": 1.0,
"thinking": {"type": "disabled"}
}'
响应示例
{
"id": "23894237-e793-4156-965e-56cea4295290_a43d65ad5fb048e7ba57e27e689b2bf8",
"type": "message",
"role": "assistant",
"model": "MaaS_Mimo_V2.6_flash_20260922",
"stop_reason": "end_turn",
"content": [
{
"type": "text",
"text": "Hey there! I'm MiMo, Xiaomi's AI assistant, here to help you with whatever you need."
}
],
"usage": {
"input_tokens": 57,
"output_tokens": 41
}
}
流式请求示例
curl -X POST 'https://genaiapi.cloudsway.net/{endpoint}/v1/messages' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer ${your_AK}' \
-d '{
"model": "MaaS_Mimo_V2.6_flash_20260922",
"max_tokens": 1024,
"messages": [
{"role": "user", "content": "please introduce yourself"}
],
"stream": true,
"thinking": {"type": "disabled"}
}'
SDK 调用方式
import os
from anthropic import Anthropic
client = Anthropic(
${your_AK}=os.environ.get("${your_AK}"),
base_url="https://genaiapi.cloudsway.net/{endpoint}/v1"
)
message = client.messages.create(
model="MaaS_Mimo_V2.6_flash_20260922",
max_tokens=1024,
system="You are MiMo, an AI assistant developed by Xiaomi.",
messages=[
{
"role": "user",
"content": [{"type": "text", "text": "please introduce yourself"}]
}
],
top_p=0.95,
stream=False,
temperature=1.0
)
print(message.content)