Skip to content

feat(quota): show remaining percentage with decimals (also ask: can the API return decimals?) #249

Description

@airvzxf

Summary

The Token Plan quota endpoint returns current_weekly_remaining_percent and current_interval_remaining_percent as integers, which loses a lot of useful precision at the low end (e.g. 2.8% left is rendered as 3%). I'd like:

  1. The API to return decimals (ideally with several fractional digits).
  2. The CLI (mmx quota) to render at least 2 decimal places, regardless of (1).

API

Endpoint:

GET https://www.minimax.io/v1/token_plan/remains
Authorization: Bearer ${MINIMAX_API_KEY}
Content-Type: application/json

Today:

{
  "current_weekly_remaining_percent": 97,
  "current_interval_remaining_percent": 85
}

What I'd like to see (any of these would be a strict improvement):

{
  "current_weekly_remaining_percent": 97.85,
  "current_interval_remaining_percent": 85.31
}

…or, ideally, full precision:

{
  "current_weekly_remaining_percent": 97.8532,
  "current_interval_remaining_percent": 85.3117385248
}

Note: this repo doesn't own the API

I know MiniMax-AI/cli is the CLI, not the API service. If a maintainer can either:

  • forward this request to whoever owns /v1/token_plan/remains, or
  • point me at the right repo / contact / support channel for API changes,

…I'd really appreciate it. If the answer is "file it at ", I'll happily move the conversation there.

CLI

Even before (1) lands, the CLI can stop rounding. Today:

╭──────────────────────────────────────────────────────────────────────────────╮
│ MINIMAX  TokenPlan Quota                       Week: 2026-08-31 — 2026-09-07 │
├────────────────────────────────────────────────────────────┬─────────────────┤
│ general  Left             85%   Wk left             97%    │ 5h Reset 36m    │
├────────────────────────────────────────────────────────────┼─────────────────┤
│ video    Left            3 / 3  Wk left            21 / 21 │ 1d Reset 4h 36m │
╰────────────────────────────────────────────────────────────┴─────────────────╯

Expected:

╭──────────────────────────────────────────────────────────────────────────────╮
│ MINIMAX  TokenPlan Quota                       Week: 2026-08-31 — 2026-09-07 │
├────────────────────────────────────────────────────────────┬─────────────────┤
│ general  Left            85.58% Wk left            97.01%  │  5h Reset 36m   │
├────────────────────────────────────────────────────────────┼─────────────────┤
│ video    Left            3 / 3  Wk left            21 / 21 │ 1d Reset 4h 36m │
╰────────────────────────────────────────────────────────────┴─────────────────╯

A --no-color / --no-decimals flag for users who prefer the old look would be a nice extra, but the default should change.

Thanks! 🙏

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions