介绍
# Minimax Usage Skill
监控 Minimax Coding Plan 的使用量,以保持在限制范围内。
## 设置
在与脚本相同的目录下创建一个 `.env` 文件:
```bash MINIMAX_CODING_API_KEY=your_api_key_here MINIMAX_GROUP_ID=your_group_id_here ```
从以下地址获取您的 GroupId:https://platform.minimax.io/user-center/basic-information (在“Basic Information”下)
## 使用方法
```bash ./minimax-usage.sh ```
## 输出示例
``` 🔍 Checking Minimax Coding Plan usage... ✅ Usage retrieved successfully:
📊 Coding Plan Status (MiniMax-M2): Used: 255 / 1500 prompts (17%) Remaining: 1245 prompts Resets in: 3h 17m
💚 GREEN: 17% used. Plenty of buffer. ```
## API 详情
**Endpoint:** ``` GET https://platform.minimax.io/v1/api/openplatform/coding_plan/remains?GroupId={GROUP_ID} ```
**必需 Headers:** ``` accept: application/json, text/plain, */* authorization: Bearer {MINIMAX_CODING_API_KEY} referer: https://platform.minimax.io/user-center/payment/coding-plan user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 ```
## 限制
| 指标 | 值 | |--------|-------| | 重置窗口 | 5 小时(动态)| | 最大目标 | 60% 使用率 | | 1 个 Prompt 约等于 | 15 次模型调用 |
## 注意事项
- Coding Plan API **专属**于该计划(不可与标准 API 密钥互换) - 5 小时前的使用量会自动从计数中释放