OpenAI Node SDK 7.9.0 Adds line_items Filtering to Usage APIs
What shipped
openai-node v7.9.0 published September 2, 2026 updates the usage APIs: organization cost requests can now be filtered to exact cost line items.
What changed
New optional line_items filtering on organization cost usage requests narrows results to named cost line items instead of returning the whole invoice breakdown. The unlaunched compute_units field was removed from Responses and Chat Completions usage types — anything reading it breaks. Two fixes rode along: Responses WebSockets no longer follow redirects (prevents auth headers leaking to a different host), and the SDK now loads CommonJS correctly under browser export conditions.
Why a builder cares
Cost dashboards can now pull per-line-item spend server-side in one call instead of filtering client-side. And if you touched compute_units in usage payloads, that field is gone — check your parsers before upgrading.