Skip to content

False credit reporting for openrouter #9

Closed

Description

@Jaaaky

Actually it's 2-in-1 issues:

1st. try to use this cheap model for example xiaomi/mimo-v2-pro use something like 20cents or so as reported by soulforge, check openrouter account - use dedicated key for soulforge to avoid conflict - you'll usually find that credit is spent is around double this amount ~40cents for example.

This is similar to this issue reported by me too anomalyco/opencode#20937

2nd issue which is funny, it's counting credit for free model :) , check screenshot, confirmed on openrouter showing no Spend activity at all despite Tokens and Requests activity for the same time frame.

Image

Activity

  1. proxysoul commented on Apr 4, 2026

    @proxysoul
    Owner

    will take a look at 1.
    for 2nd soulforge always counts as fallback based on tokens for estimation if there are no real numbers reported! pretty hard to always guess which models are free and which are not etc.. so its "safer" that way

  2. Jaaaky commented on Apr 4, 2026

    @Jaaaky
    Author

    for 2nd, if no real number reported and model name has "free" in its name, can we assume zero credit spent?

  3. proxysoul commented on Apr 4, 2026

    @proxysoul
    Owner

    thats okay to do then could be fragile just regex matching "free" but can do that !

  4. Jaaaky commented on Apr 4, 2026

    @Jaaaky
    Author

    For openrouter it's standardized like this qwen/qwen3.6-plus:free so model name ends with ':free' good for regex match.
    Doing this search on https://models.dev/?search=free .. for all providers it either ends with '-free' or ':free' .. Along with no credit spent reporting, so it's fair I think.

  5. Jaaaky commented on Apr 4, 2026

    @Jaaaky
    Author

    Nice

  6. added a commit that references this issue on Apr 4, 2026
    cc1a79e
  7. proxysoul commented on Apr 4, 2026

    @proxysoul
    Owner

    @Jaaaky the release is building! test again

  8. Jaaaky commented on Apr 4, 2026

    @Jaaaky
    Author

    Yes! Both solved. Well done. So nice and promising for a new project!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions