Skip to content

Very high input token usage with Cerebras (GLM 4.7) #10851

Closed

Description

@azais-corentin

Description

Hi,
Token usage as reported (and billed) by Cerebras is completely different from the usage report in opencode.

This is the usage report in opencode for the past day:

┌────────────────────────────────────────────────────────┐
│                      MODEL USAGE                       │
├────────────────────────────────────────────────────────┤
│ cerebras/zai-glm-4.7                                   │
│  Messages                                           62 │
│  Input Tokens                                   168.6K │
│  Output Tokens                                   14.3K │
│  Cost                                          $0.0000 │
└────────────────────────────────────────────────────────┘

For the same period, Cerebras reports 63 total requests, 2.56M total tokens (2.55M input tokens and 14.39k output tokens).

This is a 15x difference!

In normal usage, with a single opencode instance I hit the 500k tokens/min limit a few times in about 10 minutes of usage.

Plugins

opencode-antigravity-auth@latest, @mohak34/opencode-notifier@latest

OpenCode version

1.1.36

Steps to reproduce

  1. Use opencode with cerebras/zai-glm-4.7 model
  2. Notice very high input token usage

Screenshot and/or share link

No response

Operating System

Ubunut 25.10

Terminal

Alacritty and vscode terminal

Activity

  1. added
    perfIndicates a performance issue or need for optimization
    zenRelates to Zen
    on Jan 27, 2026
  2. github-actions commented on Jan 27, 2026

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

  3. Sandipbgn commented on Jan 29, 2026

    @Sandipbgn

    Any updates on this? I encountered similar issues.

  4. icculp commented on Feb 3, 2026

    @icculp

    Is it possible cerebras is doing something weird? I noticed that glm costs skyrocket like crazy with only a few minutes of usage, but using gpt-oss-120b on cerebras didn't skyrocket even though I used it way more, and, glm4.7 on openrouter didn't skyrocket like it did on cerebras for similar usage.

  5. azais-corentin commented on Feb 3, 2026

    @azais-corentin
    Author

    I don't have that problem with other AI coding agents using Cerebras.

  6. rekram1-node commented on Feb 3, 2026

    @rekram1-node
    Collaborator

    I heard that cerebras counts tokens in a really weird way, and I bet we aren't treating it correctly

  7. azais-corentin commented on Feb 10, 2026

    @azais-corentin
    Author

    Cerebras counts cached tokens as normal tokens, so this may be it.

  8. github-actions commented on Apr 12, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 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

bugSomething isn't workingperfIndicates a performance issue or need for optimizationzenRelates to Zen

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions