智
MiniMax-M2.5
智谱
对话
text
模型 Code
MiniMax-M2.5服务状态
可调用
模型介绍
MiniMax-M2.5是MiniMax推出的旗舰级开源大模型,经过数十万个真实复杂环境中的大规模强化学习训练,M2.5 在编程、工具调用和搜索、办公等生产力场景都达到或者刷新了行业的 SOTA。
模型能力
输入模态
模型体验支持
思考模式支持
Function Calling支持
结构化输出不支持
输出模态
内置工具不支持
联网搜索未提供
缓存未提供
模型价格
输入2.1元/ 百万 token
输入(缓存命中)0.42元/ 百万 token
输出8.4元/ 百万 token
模型限流与上下文
- 最大输入长度
- 968K Tokens
- 上下文长度
- 192K Tokens
- 最大输出长度
- 16K Tokens
API 代码示例
import requests
url = "https://limapi.com/api/v1/chat/completions"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
}
payload = {
"model": "MiniMax-M2.5",
"stream": True,
"messages": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "你好,请介绍一下你自己"}
]
}
response = requests.post(url, headers=headers, json=payload, stream=True)
for line in response.iter_lines():
if line:
print(line.decode("utf-8"))将示例中的 YOUR_API_KEY 替换为你的 API Key 即可调用。