Skip to content

Cost display severely underestimates real provider billing (Nebius Token Factory / MiniMax-M3 example) #40835

Closed as not planned

Description

@hasankirtas

Description

OpenCode’s cost display is significantly inaccurate when using external providers (in this case Nebius Token Factory).
While OpenCode showed very low costs (around $0.50 – $0.75), the actual bill from the provider was $18.14 for the same usage period.
This creates a serious risk of unexpected charges for users, especially when using models with large context windows and agentic workflows.
What happened

I was using MiniMax-M3 (via Nebius Token Factory) as the main model in OpenCode.
OpenCode’s UI consistently showed costs in the range of $0.50 – $0.75.
After checking the Nebius Token Factory billing dashboard, the real cost was $18.14.
Almost the entire amount came from input tokens:
MiniMax-M3-NVFP4 Input: 58.92 million tokens → $17.67
Output tokens were negligible (~0.15M tokens).

Why this is problematic

Users rely on the cost indicator in the UI to control spending.
The displayed cost appears to be only a rough session estimate and does not reflect real provider billing.
With large-context models + multi-turn agent sessions, input tokens can explode very quickly, but OpenCode does not warn about this.
This mismatch can easily lead to unexpected charges (as happened to me).

Expected behavior

The cost shown in OpenCode should be much closer to the actual provider billing, or
There should be a clear warning that the displayed cost is only an approximate session estimate and may differ significantly from the real invoice.
Ideally, OpenCode should also show a more accurate cumulative cost when possible (or at least a stronger disclaimer).

Actual behavior

OpenCode showed ~$0.50–$0.75
Real Nebius bill: $18.14
Difference is roughly 25–35x

Plugins

None

OpenCode version

1.18.14

Steps to reproduce

  1. Connect Nebius Token Factory as a provider in OpenCode and select MiniMax-M3 as the model.
  2. Start an agentic coding session with a relatively large context (multiple files + multi-turn conversation).
  3. Observe the cost indicator in the OpenCode UI (it showed approximately $0.50 – $0.75).
  4. Check the actual billing in the Nebius Token Factory dashboard for the same period.
  5. The real cost was $18.14, almost entirely from ~58.92 million input tokens of MiniMax-M3.

Screenshot and/or share link

Image Image

Operating System

Windows 11

Terminal

Windows Terminal

Activity

  1. hasankirtas commented on Aug 6, 2026

    @hasankirtas
    Author

    This is not just a minor display inaccuracy. When the UI shows $0.50–$0.75 while the actual provider bill is $18+, users can easily spend 20–30x more than they think. This creates a serious risk of unexpected charges, especially with large-context models and agentic workflows.

  2. github-actions commented on Oct 7, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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