PulseAugur
EN
LIVE 20:22:35

LLM providers differ on token usage reporting, complicating cost tracking

A developer has detailed the complexities of tracking token usage across major LLM providers like OpenAI, Anthropic, and Gemini. The primary challenge lies in how each provider reports usage data, especially with streaming responses. OpenAI includes usage in a final chunk only if specifically requested, while Anthropic splits input and output token counts across different event types. Furthermore, the handling of cached tokens differs significantly between OpenAI and Anthropic, requiring careful normalization to ensure accurate cost calculations. AI

IMPACT Highlights the need for robust observability tools as LLM API usage and costs become more complex.

RANK_REASON Developer details complexities of a tool for tracking LLM token usage.

Read on dev.to — LLM tag →

AI-generated summary · Google Gemini · from 1 sources. How we write summaries →

LLM providers differ on token usage reporting, complicating cost tracking

How we ranked this

Signal score
0 / 100
Composite score across the factors below. Higher = stronger signal that this story matters right now.
Newsworthiness bucket
Tool
Developer details complexities of a tool for tracking LLM token usage.
Source corroboration
Single-source cluster
Only one publisher covered this so far. Single-source stories can still rank when the publisher is high-authority, but they lack cross-source corroboration.
Topics
infra, product
Editorial topic classification. Feeds into how the story surfaces on /topic/<slug> hub pages and into the per-entity coverage mix.
AI-industry relevance
High
Clearly on-topic for AI-industry coverage.
Story freshness
110 days old
Aged out of breaking-news scoring windows; ranking reflects the durable signal from the full source set.

Full methodology in our editorial standards.

COVERAGE [1]

  1. dev.to — LLM tag TIER_1 English(EN) · SPANLENS ·

    Tracking token usage across OpenAI, Anthropic, and Gemini: every streaming gotcha I hit

    <p>OpenAI, Anthropic, and Gemini each report token usage differently, and it stops being trivia the moment you track LLM cost. I build Spanlens, an open-source LLM observability tool that sits in front of all three as a proxy and records every call with its model, latency, tokens…