Skip to content

Per-caller usage metering for inference services #976

Done

Description

@fazerluga-creator

Problem

When a node publishes an inference service backed by a shared upstream (for example a local model router with a single provider account), there is no per-caller usage accounting. The provider operator cannot tell which peer consumed how much, which makes shared model access hard to run fairly: quotas were requested separately, but even without enforcement, visibility is missing.

Proposal

Add per-caller usage metering for inference calls at the provider node:

  • requests count, prompt/completion tokens (when the upstream reports usage), bytes, per caller peer ID + service
  • exposed via the node metrics endpoint or a local stats API, in the spirit of metadata-only accounting (no prompt/response content)

This lets fleet operators attribute shared model costs before they need hard limits.

Activity

  1. aojea commented on Nov 28, 2026

    @aojea
    Collaborator

    Check if #979 solves the problem

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions