mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-29 11:23:49 +08:00
15 lines
2.4 KiB
Plaintext
15 lines
2.4 KiB
Plaintext
---
|
|
title: "ChatUsagePromptTokensDetails"
|
|
---
|
|
|
|
Detailed prompt token usage
|
|
|
|
|
|
## Fields
|
|
|
|
| Field | Type | Required | Description |
|
|
| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ |
|
|
| `audio_tokens` | *Optional[int]* | :heavy_minus_sign: | Audio input tokens |
|
|
| `cache_write_tokens` | *Optional[int]* | :heavy_minus_sign: | Tokens written to cache. Only returned for models with explicit caching and cache write pricing. |
|
|
| `cached_tokens` | *Optional[int]* | :heavy_minus_sign: | Cached prompt tokens |
|
|
| `video_tokens` | *Optional[int]* | :heavy_minus_sign: | Video input tokens | |