OpenRouter costs not correct #331

Open
opened 2026-02-16 17:26:16 -05:00 by yindo · 4 comments
Owner

Originally created by @seaweeduk on GitHub (Jun 27, 2025).

Originally assigned to: @thdxr on GitHub.

I use openrouter, and the cost value shown is always way higher than the actual cost I'm being charged by OpenRouter. I'm not using BYOK for anthropic I'm just using openrouter direct to claude 4 here.

Here's the openrouter data, total comes to 0.064215

Image

Here's what opencode showed for the same session shown above

Image

Love the tool keep up the awesome work guys

Originally created by @seaweeduk on GitHub (Jun 27, 2025). Originally assigned to: @thdxr on GitHub. I use openrouter, and the cost value shown is always way higher than the actual cost I'm being charged by OpenRouter. I'm not using BYOK for anthropic I'm just using openrouter direct to claude 4 here. Here's the openrouter data, total comes to 0.064215 ![Image](https://github.com/user-attachments/assets/b19e2981-56ba-4bbb-8872-616fcf5af8c8) Here's what opencode showed for the same session shown above ![Image](https://github.com/user-attachments/assets/44e662df-89a7-490c-a40a-a2d3ea2bd2ac) Love the tool keep up the awesome work guys
Author
Owner

@codey-insightdesigns commented on GitHub (Sep 8, 2025):

I am seeing this issue as well. Costs in opencode show $21, but only about $13 in OpenRouter

@codey-insightdesigns commented on GitHub (Sep 8, 2025): I am seeing this issue as well. Costs in opencode show $21, but only about $13 in OpenRouter
Author
Owner

@Irrelon commented on GitHub (Nov 5, 2025):

I've just upgraded opencode to the latest version 1.0.23 and can confirm this is still an issue.

@Irrelon commented on GitHub (Nov 5, 2025): I've just upgraded opencode to the latest version 1.0.23 and can confirm this is still an issue.
Author
Owner

@awrobel-gd commented on GitHub (Jan 26, 2026):

I experience the same using openrouter through claude code

@awrobel-gd commented on GitHub (Jan 26, 2026): I experience the same using openrouter through claude code
Author
Owner

@radaiko commented on GitHub (Jan 31, 2026):

My experience is quite the opposite; the actual costs within OpenCode are always significantly lower than the deducted totals. I’ve specifically tested this with MiniMax-M2.1 and Kimi-K2.5, and the discrepancy is even more problematic with these models, making it difficult to track actual spend.

@radaiko commented on GitHub (Jan 31, 2026): My experience is quite the opposite; the actual costs within OpenCode are always significantly lower than the deducted totals. I’ve specifically tested this with MiniMax-M2.1 and Kimi-K2.5, and the discrepancy is even more problematic with these models, making it difficult to track actual spend.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#331