# NousResearch/hermes-agent · MiniMax-M2.7 pricing and billing route fixes

## Open now

- Nothing open on GitHub.

These issues and PRs address missing pricing entries and billing routes for MiniMax-M2.7 across the minimax and minimax-cn providers, which caused costs to appear as zero or unknown. Multiple fixes and regression tests were added to resolve this gap.

## TL;DR

- 5 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 3 PR(s) closed without merging.
- A fix was merged to main in PR #17423. Verify it addresses your case.
- **Recommended:** read PR #17423 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `resolved` · deciding PR(s): `pr-17423`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.40`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Closed / duplicate issues

- #16825: bug: MiniMax M2.7 / minimax-cn provider cost always 0 — missing billing route and pricing entry in usage_pricing.py

## Prior & competing PRs

- **#16828: fix: add minimax-cn billing route to resolve cost_status='unknown' (#16825)**. closed without merge · fix tier `suggested`
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `860ff445f`, `860ff445f6704cfea0fde0e617506e778c76e5b0`, `#16825`
  - _suggested-tier fix detail withheld; re-request with `?tier=all` to include it._
- **#17423: fix(usage_pricing): add MiniMax-M2.7 pricing for minimax and minimax-cn**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `agent/usage_pricing.py`
  - fix hunks:
  - `agent/usage_pricing.py`

    ```diff
    @@ -359,6 +359,25 @@ class CostResult:
             source_url="https://aws.amazon.com/bedrock/pricing/",
             pricing_version="bedrock-pricing-2026-04",
         ),
    +    # MiniMax
    +    (
    +        "minimax",
    +        "minimax-m2.7",
    +    ): PricingEntry(
    +        input_cost_per_million=Decimal("0.30"),
    +        output_cost_per_million=Decimal("1.20"),
    +        source="official_docs_snapshot",
    +        pricing_version="minimax-pricing-2026-04",
    +    ),
    +    (
    +        "minimax-cn",
    +        "minimax-m2.7",
    +    ): PricingEntry(
    +        input_cost_per_million=Decimal("0.30"),
    +        output_cost_per_million=Decimal("1.20"),
    +        source="official_docs_snapshot",
    +        pricing_version="minimax-pricing-2026-04",
    +    ),
     }
     
     
    ```

    ```diff
    @@ -400,6 +419,8 @@ def resolve_billing_route(
             return BillingRoute(provider="anthropic", model=model.split("/")[-1], base_url=base_url or "", billing_mode="official_docs_snapshot")
         if provider_name == "openai":
             return BillingRoute(provider="openai", model=model.split("/")[-1], base_url=base_url or "", billing_mode="official_docs_snapshot")
    +    if provider_name in {"minimax", "minimax-cn"}:
    +        return BillingRoute(provider=provider_name, model=model.split("/")[-1], base_url=base_url or "", billing_mode="official_docs_snapshot")
         if provider_name in {"custom", "local"} or (base and "localhost" in base):
             return BillingRoute(provider=provider_name or "custom", model=model, base_url=base_url or "", billing_mode="unknown")
         return BillingRoute(provider=provider_name or "unknown", model=model.split("/")[-1] if model else "", base_url=base_url or "", billing_mode="unknown")
    ```
- **#16854: fix(usage_pricing): add minimax-cn billing route and regression tests**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#16828`, `#16825`
- **#17408: fix(usage_pricing): add MiniMax-M2.7 pricing for minimax and minimax-cn providers**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `33d6995cd`, `#17423`, `#15216`, `#10318`, `#16911`

## Fix status

- Merged to main in PR #17423 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-04-29`.
- Subsystem: `agent`
