Skip to main content

minimax-usage

Check MiniMax API usage and quota. Triggers on phrases like "minimax usage", "minimax quota", "check API usage", "remaining units", "current interval usage". Fetches the current_interval_usage_count and remaining quota from the MiniMax API.

소스 정보

저장소
neoalienson/skills
최근 소스 활동
2026년 9월 27일 12:36
감지된 SKILL.md 언어
영어
스타
0
포크
4

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
14 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
minimax-usage
description
Check MiniMax API usage and quota. Triggers on phrases like "minimax usage", "minimax quota", "check API usage", "remaining units", "current interval usage". Fetches the current_interval_usage_count and remaining quota from the MiniMax API.
# MiniMax Usage ## Overview Check your MiniMax API usage by calling the MiniMax platform API endpoint. Uses precise Python time calculations to correctly determine interval boundaries and next reset times. ## Files - `scripts/minimax-usage.py` — Main script that fetches and reports usage ## Usage ```bash python3 scripts/minimax-usage.py -c `path to run config.yml` ``` ## Output Format The script outputs a **horizontal bar chart** for each model, e.g.: ``` 📊 MiniMax Usage Report — 2026-03-27 08:30 UTC+8 **MiniMax-M*** ███████████████░░░░░ Usage: 73% (440/600) ███████░░░░░░░░░░░░░ Time: 36% (3h 10m) ⏱️ Next reset: 15:00 UTC+8 ``` Each `█` block represents 5% (20 blocks = 100%). Empty slots are shown as `░`. ## Usage Reset Schedule Resets at **00:00, 05:00, 10:00, 15:00, 20:00** (UTC+8) — every 5 hours. | Interval | Start | End | | ----------- | ----- | -------------- | | 00:00–05:00 | 00:00 | 05:00 | | 05:00–10:00 | 05:00 | 10:00 | | 10:00–15:00 | 10:00 | 15:00 | | 15:00–20:00 | 15:00 | 20:00 | | 20:00–00:00 | 20:00 | 00:00 (+1 day) | ## Time Calculation Rules - **At exact reset time** (HH:00:00.000): The NEW interval has just begun - **After reset** (HH:MM:SS with M/S/MS > 0): In the current interval - **At midnight with past-time** (00:01+): Still in 00:00–05:00 interval ## Key Interpretation - `current_interval_usage_count` = **remaining** quota (NOT used count) - `current_interval_total_count` = total allowed in interval - Used = total − remaining If the API returns `{"base_resp":{"status_code":1004,"status_msg":"cookie is missing, log in again"}}`, the cookies have expired — refresh them in your browser and update the env var.
GitHub에서 보기