mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-08-01 12:40:23 +08:00
14 lines
2.3 KiB
Markdown
14 lines
2.3 KiB
Markdown
# CompletionUsage
|
|
|
|
Token usage statistics
|
|
|
|
|
|
## Fields
|
|
|
|
| Field | Type | Required | Description |
|
|
| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
|
|
| `completion_tokens` | *float* | :heavy_check_mark: | Number of tokens in the completion |
|
|
| `prompt_tokens` | *float* | :heavy_check_mark: | Number of tokens in the prompt |
|
|
| `total_tokens` | *float* | :heavy_check_mark: | Total number of tokens |
|
|
| `completion_tokens_details` | [Optional[models.CompletionTokensDetails]](../models/completiontokensdetails.md) | :heavy_minus_sign: | Detailed completion token usage |
|
|
| `prompt_tokens_details` | [Optional[models.PromptTokensDetails]](../models/prompttokensdetails.md) | :heavy_minus_sign: | Detailed prompt token usage | |