Gemini 3.8 Live: How should 25 unclassified input tokens be billed?

Hello,

We are integrating the Gemini Developer API into a multi-tenant education SaaS and need to calculate each customer's usage costs accurately.

We observed a discrepancy between promptTokenCount and the sum of promptTokensDetails in gemini-3.8-live.

Environment:
- Model: gemini-3.8-live
- API: Gemini Developer API, Live WebSocket API, v1beta
- Response modality: AUDIO
- maxOutputTokens: 256
- Observation time: November 19, 2026, approximately 04:45 UTC
- Test input: a short synthetic text prompt requesting a brief Korean response
- No student data or personal information was used.

The raw WebSocket usageMetadata was:

{
  "promptTokenCount": 564,
  "responseTokenCount": 36,
  "totalTokenCount": 600,
  "promptTokensDetails": [
    {
      "modality": "TEXT",
      "tokenCount": 317
    },
    {
      "modality": "AUDIO",
      "tokenCount": 222
    }
  ],
  "responseTokensDetails": [
    {
      "modality": "AUDIO",
      "tokenCount": 36
    }
  ],
  "thoughtsTokenCount": 52
}

The input modality details sum to 539 tokens:
317 TEXT + 222 AUDIO = 539.

However, promptTokenCount is 564, leaving 25 input tokens without a modality breakdown.

This discrepancy exists in the raw WebSocket response before any SDK conversion or application processing. We reproduced the same 25-token input gap in another test.

Could you please clarify:

1. Are these 25 unclassified input tokens billable?
2. If they are billable, which modality, billing SKU, and price should be applied?
3. What is the officially recommended calculation method when promptTokenCount does not match the sum of promptTokensDetails?
4. Is there a supported way to retrieve complete per-turn billable usage, including these unclassified tokens, for accurate customer-level cost allocation?

We record final usage at turnComplete and avoid counting intermediate usage updates twice. We currently keep the affected cost pending rather than assigning the missing tokens to TEXT or AUDIO without evidence.

We are looking for an official billing rule or a supported source of complete usage information, rather than an estimated allocation.

Thank you.

There is a directly relevant Google staff reply from October 26, 2026 that may save you some investigation: [Pooja_Kapse on missing billable token details in Gemini 3.8 Live](Gemini 3.8 Live: missing billable token details and pre-generation spending bounds - #2 by Pooja_Kapse). In that report, the raw `usageMetadata` also had a **25-token difference** between `promptTokenCount` and the sum of input modality details. The staff response says the Live API does **not** separately report the prompt gap, transcription token counts or tool-only token counts. It also states that `thoughtsTokenCount` is billed in addition to `totalTokenCount`, at the text output rate.

That clarification answers the *availability of a complete breakdown*, but **does not establish which input modality or SKU should be assigned to your 25 missing prompt tokens**, or whether those 25 are separately chargeable. So I would not silently allocate them to TEXT, AUDIO or zero-cost on the basis of the fields alone.

For your multi-tenant ledger, preserve the original final `usageMetadata` per `turnComplete`, calculate `input_unclassified_tokens = promptTokenCount - sum(promptTokensDetails.tokenCount)` as an *unclassified meter*, and keep the corresponding money allocation pending an official billing rule. Reconcile aggregate provider charges against the billing records you actually receive, but do not treat aggregate reconciliation as evidence of a customer-specific modality classification. Also account explicitly for the staff clarification about thinking tokens rather than assuming `totalTokenCount` already includes their cost.

Given your reproduced 25-token gap and the prior staff response, I’d link these two cases in a Google support request and ask for an explicit SKU/rate rule or confirmation that exact customer-level modality chargeback isn’t supported. The absence of a separate field is not proof that those tokens are free.