> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter-d02e98a0-mintlify-5b6e02fd.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# PromptTokensDetails - Python SDK

> PromptTokensDetails method reference

<Warning>
  The Python SDK and docs are currently in beta.
  Report issues on [GitHub](https://github.com/OpenRouterTeam/python-sdk/issues).
</Warning>

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                                                                               |
