Loading...
Loading...
Query real-time ZenMux account data via the Management API: subscription detail, quota usage (5h/7d/monthly), account status, Flow rate, PAYG balance, and per-generation cost. Use whenever the user wants to CHECK or LOOK UP current usage, remaining quota, credit balance, Flow rate, or a generation's cost/tokens. Trigger on: "check my usage", "quota left", "my balance", "subscription status", "Flow rate", "generation cost", "bonus credits", "查用量", "余额", "配额", "订阅详情", "Flow 汇率", "查一下请求花了多少", "额度还剩多少". Activate even without "ZenMux" when user asks to retrieve usage numbers, quota, balance, or generation cost in a ZenMux context. Do NOT trigger for docs, integration setup, plan comparison, top-up instructions, error troubleshooting, or code-writing — use zenmux-context.
npx skill4agent add zenmux/skills zenmux-usage| Query | Endpoint | What it returns |
|---|---|---|
| Subscription detail | | Plan tier, account status, 5-hour / 7-day / monthly quota usage |
| Flow rate | | Base and effective USD-per-Flow exchange rate |
| PAYG balance | | Pay-as-you-go total / top-up / bonus credits |
| Generation detail | | Token usage, cost breakdown, latency for one request |
ZENMUX_MANAGEMENT_KEYZENMUX_MANAGEMENT_KEYecho "${ZENMUX_MANAGEMENT_KEY:+set}"setexport ZENMUX_MANAGEMENT_KEY="<key>"~/.zshrcsource ~/.zshrc| User intent | API to call |
|---|---|
| Subscription plan, account status, quota remaining, usage percentage | Subscription Detail |
| Flow exchange rate, how much does 1 Flow cost | Flow Rate |
| PAYG balance, remaining credits, top-up amount | PAYG Balance |
| Cost of a specific request, token usage for a generation ID | Generation Detail |
| General "check my usage" / "show my account" (broad request) | Call Subscription Detail first; if the user has PAYG, also call PAYG Balance |
curljqcurl -s https://zenmux.ai/api/v1/management/subscription/detail \
-H "Authorization: Bearer $ZENMUX_MANAGEMENT_KEY" | jq .curl -s https://zenmux.ai/api/v1/management/flow_rate \
-H "Authorization: Bearer $ZENMUX_MANAGEMENT_KEY" | jq .curl -s https://zenmux.ai/api/v1/management/payg/balance \
-H "Authorization: Bearer $ZENMUX_MANAGEMENT_KEY" | jq .curl -s "https://zenmux.ai/api/v1/management/generation?id=<generation_id>" \
-H "Authorization: Bearer $ZENMUX_MANAGEMENT_KEY" | jq .<generation_id>x-generation-idgenerationIdPlan: Ultra — $200/month (expires 2026-04-12)
Status: healthy
Flow rate: $0.03283 / Flow
Quota Usage:
┌──────────┬────────────┬──────────────────────┬───────────────────┬─────────────────────┐
│ Window │ Usage │ Flows (used/max) │ USD (used/max) │ Resets at │
├──────────┼────────────┼──────────────────────┼───────────────────┼─────────────────────┤
│ 5-hour │ 7.15% │ 57.2 / 800 │ $1.88 / $26.27 │ 2026-03-24 08:35 │
│ 7-day │ 6.73% │ 416.1 / 6182 │ $13.66 / $203.00 │ 2026-03-26 02:15 │
│ Monthly │ — │ — / 34560 │ — / $1134.33 │ — │
└──────────┴────────────┴──────────────────────┴───────────────────┴─────────────────────┘usage_percentagesk-ss-v1-