Skip to content

bug: token cost seems inaccurate #2020

@nikhilmaddirala

Description

@nikhilmaddirala

I have some questions about this example conversation: https://opencode.ai/s/XPu4Slcg

  1. It says Cost$0.25 Input Tokens 54541 Output Tokens 431 Reasoning Tokens — but according to openrouter the cost of z-ai/glm-4.5 is $0.20/M input tokens $0.80/M output tokens, which is much lower. Is this discrepancy due to a bug in opencode?
  2. Where are the 50k+ input tokens coming from for my query and how can I inspect them?

Thanks in advance!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions