Example Usage
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
cost | number | :heavy_minus_sign: | Cost of the request in credits | 0.0001 |
promptTokens | number | :heavy_check_mark: | Number of tokens in the input | 8 |
promptTokensDetails | 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. | |
totalTokens | number | :heavy_check_mark: | Total number of tokens used | 8 |