Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
CompletionTokens | int64 | :heavy_check_mark: | Number of tokens in the completion | |
CompletionTokensDetails | optionalnullable.OptionalNullable[components.CompletionTokensDetails] | :heavy_minus_sign: | Detailed completion token usage | |
Cost | optionalnullable.OptionalNullable[float64] | :heavy_minus_sign: | Cost of the completion | |
CostDetails | optionalnullable.OptionalNullable[components.CostDetails] | :heavy_minus_sign: | Breakdown of upstream inference costs | {"upstream_inference_completions_cost": 0.0004,"upstream_inference_cost": null,"upstream_inference_prompt_cost": 0.0008} |
IsByok | *bool | :heavy_minus_sign: | Whether a request was made using a Bring Your Own Key configuration | |
PromptTokens | int64 | :heavy_check_mark: | Number of tokens in the prompt | |
PromptTokensDetails | optionalnullable.OptionalNullable[components.PromptTokensDetails] | :heavy_minus_sign: | Detailed prompt token usage | |
TotalTokens | int64 | :heavy_check_mark: | Total number of tokens |