请输入账号信息登录
| API Key | 用户 | 状态 | 今日/每日 | 本月/每月 | 操作 |
|---|---|---|---|---|---|
{{ k.api_key }} |
{{ k.user_name || '-' }} | {{ k.is_active ? '启用' : '禁用' }} |
{{ k.used_today }} / {{ k.daily_limit }}
|
{{ k.used_monthly }} / {{ k.monthly_limit }}
|
|
| 暂无 API Key,点击上方按钮生成 | |||||
配置你的 MiniMax 主 API Key,所有用户请求都会使用这个 Key 进行代理。
使用 MiniMax API 只需三步:
POST https://tools.imoons.cn/mini/v1/chat/completions
注意:所有请求都需要通过 HTTPS 发送
在请求头中添加您的 API Key:
X-Api-Key: your-api-key
完整请求示例:
curl -X POST https://tools.imoons.cn/mini/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-Api-Key: mmx-xxxxxxxxxxxxxxxx"
{
"model": "MiniMax-M2.7",
"messages": [
{"role": "system", "content": "你是一个有用的助手"},
{"role": "user", "content": "你好,请介绍一下你自己"}
],
"temperature": 0.7,
"max_tokens": 1000
}
{
"id": "chatcmpl-xxxxx",
"object": "chat.completion",
"created": 1711545600,
"model": "MiniMax-M2.7",
"choices": [{
"index": 0,
"message": {
"role": "assistant",
"content": "你好!我是..."
},
"finish_reason": "stop"
}],
"usage": {
"prompt_tokens": 20,
"completion_tokens": 50,
"total_tokens": 70
}
}
curl -X POST https://tools.imoons.cn/mini/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-Api-Key: mmx-xxxxxxxxxxxxxxxx" \
-d '{
"model": "MiniMax-M2.7",
"messages": [{"role": "user", "content": "你好"}]
}'
import requests
url = "https://tools.imoons.cn/mini/v1/chat/completions"
headers = {
"Content-Type": "application/json",
"X-Api-Key": "mmx-xxxxxxxxxxxxxxxx"
}
data = {
"model": "MiniMax-M2.7",
"messages": [{"role": "user", "content": "你好"}]
}
response = requests.post(url, headers=headers, json=data)
print(response.json())
const response = await fetch('https://tools.imoons.cn/mini/v1/chat/completions', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-Api-Key': 'mmx-xxxxxxxxxxxxxxxx'
},
body: JSON.stringify({
model: 'MiniMax-M2.7',
messages: [{role: 'user', content: '你好'}]
})
});
const data = await response.json();
console.log(data);
每个 API Key 都有独立的调用限额:
请在控制台查看您的使用量和限额,或访问 用量查询 页面。