核心能力
- OpenAI 兼容 — 可直接替换 OpenAI SDK,无需修改其他代码
- 204K 上下文 — 支持大文档处理和多轮对话
- 推理能力 — 支持交错推理(interleaved thinking),适合复杂推理
- 工具调用 — 支持 function/tool calls,适用于智能体工作流
- 纯文本 — 专注文本和工具调用(不支持图片/视频输入)
快速示例
参数说明
API 参考
查看 MiniMax-M2.7 的交互式 API Playground。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
通过 Starrise AI OpenAI 兼容接口调用 MiniMax-M2.7 旗舰文本模型。高级推理能力,递归自我改进。
curl https://dayu.cdn-fly.com/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "MiniMax-M2.7",
"messages": [
{ "role": "user", "content": "用简单的语言解释量子纠缠。" }
]
}'
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://dayu.cdn-fly.com/v1"
)
response = client.chat.completions.create(
model="MiniMax-M2.7",
messages=[
{"role": "user", "content": "用简单的语言解释量子纠缠。"}
]
)
print(response.choices[0].message.content)
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://dayu.cdn-fly.com/v1"
)
stream = client.chat.completions.create(
model="MiniMax-M2.7",
messages=[
{"role": "user", "content": "写一首关于大海的短诗。"}
],
stream=True
)
for chunk in stream:
print(chunk.choices[0].delta.content or "", end="")
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
model | string | 是 | 固定为 MiniMax-M2.7 |
messages | array | 是 | { role, content } 对象数组。仅支持文本和工具调用 |
max_tokens | integer | 否 | 最大生成 Token 数 |
temperature | float | 否 | 0–2,控制随机性,默认 1 |
stream | boolean | 否 | 开启 SSE 流式传输,默认 false |
top_p | float | 否 | 核采样阈值,默认 0.9 |
stop | string / array | 否 | 触发停止生成的序列 |
tools | array | 否 | 工具/函数定义,用于智能体工作流 |
tool_choice | string / object | 否 | 工具选择策略 |
