PromptTokensDetails - Python SDK
PromptTokensDetails - Python SDK
PromptTokensDetails method reference
The Python SDK and docs are currently in beta. Report issues on GitHub.
Per-modality token breakdown. Only present when the input contains 2+ modalities (e.g. text + image) and the upstream provider returns modality-level usage data. Only non-zero modality counts are included.