Skip to content

Realtime API response.done events missing detailed usage fields #538

@ginzlabs

Description

@ginzlabs

response.done events from the Realtime API do not include the full token usage breakdown shown in the Playground and documentation. Only total input and output counts are returned.

Currently, the event contains only:

"usage": {
  "input_tokens": 132,
  "output_tokens": 121
}

But the Playground/docs show a full structure:

"usage": {
  "total_tokens": 253,
  "input_tokens": 132,
  "output_tokens": 121,
  "input_token_details": {
    "text_tokens": 119,
    "audio_tokens": 13,
    "image_tokens": 0,
    "cached_tokens": 64,
    "cached_tokens_details": {
      "text_tokens": 64,
      "audio_tokens": 0,
      "image_tokens": 0
    }
  },
  "output_token_details": {
    "text_tokens": 30,
    "audio_tokens": 91
  }
}

Expected behavior: response.done should return the complete usage object as documented.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions