Example Usage
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
completionTokens | number | :heavy_check_mark: | Number of tokens in the completion | |
completionTokensDetails | models.CompletionTokensDetails | :heavy_minus_sign: | Detailed completion token usage | |
cost | number | :heavy_minus_sign: | Cost of the completion | |
costDetails | models.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 | boolean | :heavy_minus_sign: | Whether a request was made using a Bring Your Own Key configuration | |
promptTokens | number | :heavy_check_mark: | Number of tokens in the prompt | |
promptTokensDetails | models.PromptTokensDetails | :heavy_minus_sign: | Detailed prompt token usage | |
totalTokens | number | :heavy_check_mark: | Total number of tokens |