Provider-reported token usage, read from the frames each protocol actually streams. A parser returns null when the frame carries no complete count; callers then record "usage not reported" rather than inventing a number.
Prompt tokens the provider billed, cached prompt tokens included.
Completion tokens the provider billed, reasoning tokens included.
Provider-reported token usage, read from the frames each protocol actually streams. A parser returns null when the frame carries no complete count; callers then record "usage not reported" rather than inventing a number.