Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
cost | Optional[float] | :heavy_minus_sign: | Cost of the request in credits | 0.0001 |
prompt_tokens | int | :heavy_check_mark: | Number of tokens in the input | 8 |
prompt_tokens_details | Optional[operations.PromptTokensDetails] | :heavy_minus_sign: | 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. | |
total_tokens | int | :heavy_check_mark: | Total number of tokens used | 8 |