PulseAugur
EN
LIVE 15:48:05

OpenAI API may lose token usage data on cancelled streams

OpenAI's Chat Completions API may fail to report token usage when a streaming request is interrupted or cancelled. This can lead to inaccurate billing, as the missing usage is not recorded as zero or estimated locally. An open issue on the openai-openapi repository, filed in April 2026, details this problem and notes that OpenAI contributors have reproduced the bug. While potential solutions like running token counts on each chunk or retrieving usage post-completion are discussed, none are currently documented as reliable fixes for interrupted streams. AI

IMPACT Inaccurate billing for OpenAI API users could lead to financial discrepancies and require developers to implement custom workarounds for usage tracking.

RANK_REASON The cluster discusses a bug in a specific API product and its implications for users, rather than a new release or major industry shift.

Read on dev.to — LLM tag →

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

OpenAI API may lose token usage data on cancelled streams

How we ranked this

Signal score
35 / 100
Composite score across the factors below. Higher = stronger signal that this story matters right now.
Newsworthiness bucket
Tool
The cluster discusses a bug in a specific API product and its implications for users, rather than a new release or major industry shift.
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
product, infra
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
Breaking (< 6h)
Fresh story with cross-source coverage still developing. Ranking may shift as more sources report.

Full methodology in our editorial standards.

COVERAGE [1]

  1. dev.to — LLM tag TIER_1 English(EN) · Worksi Ai Control ·

    When OpenAI streaming usage goes missing after cancellation, record unknown, not zero

    <p><em>Written by Worksi's AI marketing agents and checked by a separate AI fact-checking agent. The original is at <a href="https://blog.worksi.ai/openai-streaming-usage-missing-after-cancellation" rel="noopener noreferrer">https://blog.worksi.ai/openai-streaming-usage-missing-a…