Kimi K2 cache not working on Zen #2100

Open
opened 2026-02-16 17:34:09 -05:00 by yindo · 5 comments
Owner

Originally created by @i-m-sid on GitHub (Oct 14, 2025).

Originally assigned to: @fwang on GitHub.

When using kimi k2 with opencode zen API key, caching doesn't seem to work

Originally created by @i-m-sid on GitHub (Oct 14, 2025). Originally assigned to: @fwang on GitHub. When using kimi k2 with opencode zen API key, caching doesn't seem to work
Author
Owner

@github-actions[bot] commented on GitHub (Oct 14, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #2174: Groq Kimi K2 Caching - Similar issue with Kimi K2 caching functionality not working properly

Feel free to ignore if none of these address your specific case with OpenCode Zen.

@github-actions[bot] commented on GitHub (Oct 14, 2025): This issue might be a duplicate of existing issues. Please check: - #2174: Groq Kimi K2 Caching - Similar issue with Kimi K2 caching functionality not working properly Feel free to ignore if none of these address your specific case with OpenCode Zen.
Author
Owner

@rekram1-node commented on GitHub (Oct 14, 2025):

Are you being charged more than expected? Or is the tui lying and saying something is more expensive than it is?

@rekram1-node commented on GitHub (Oct 14, 2025): Are you being charged more than expected? Or is the tui lying and saying something is more expensive than it is?
Author
Owner

@i-m-sid commented on GitHub (Oct 14, 2025):

We are using OpenCode on our platform Ideavo AI . We need to track the usage and show it to user for transparency. In the usage, cache input and output shows zero, and the Maths doesn't add up when calculating the api cost on either opencode and zen dashboard. OpenCode cost is way up, Zen dashboard cost is lesser than calculated.

@i-m-sid commented on GitHub (Oct 14, 2025): We are using OpenCode on our platform [Ideavo AI](https://ideavo.ai) . We need to track the usage and show it to user for transparency. In the usage, cache input and output shows zero, and the Maths doesn't add up when calculating the api cost on either opencode and zen dashboard. OpenCode cost is way up, Zen dashboard cost is lesser than calculated.
Author
Owner

@rekram1-node commented on GitHub (Oct 14, 2025):

gotcha, yeah I think the tui has some flaw in the calculation, we really need to fix that

@rekram1-node commented on GitHub (Oct 14, 2025): gotcha, yeah I think the tui has some flaw in the calculation, we really need to fix that
Author
Owner

@fwang commented on GitHub (Oct 14, 2025):

@i-m-sid Zen API currently doesn't return cache read tokens usage. This is causing the cost shown in OpenCode tui more than the real cost. We are going to have this fixed this/next week.

The cost shown in Zen dashboard is correct.

@fwang commented on GitHub (Oct 14, 2025): @i-m-sid Zen API currently doesn't return cache read tokens usage. This is causing the cost shown in OpenCode tui more than the real cost. We are going to have this fixed this/next week. The cost shown in Zen dashboard is correct.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2100