Skip to content

Kimi K2 cache not working on Zen #3172

Description

@i-m-sid

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

Activity

  1. github-actions commented on Oct 14, 2025

    @github-actions
    Contributor

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

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

  2. rekram1-node commented on Oct 14, 2025

    @rekram1-node
    Collaborator

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

  3. i-m-sid commented on Oct 14, 2025

    @i-m-sid
    ContributorAuthor

    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.

  4. rekram1-node commented on Oct 14, 2025

    @rekram1-node
    Collaborator

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

  5. fwang commented on Oct 14, 2025

    @fwang
    Contributor

    @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 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