---
title: "ImageGenerationUsagePromptTokensDetails"
---

Breakdown of tokens used in the prompt.


## Fields

| Field                                                                                            | Type                                                                                             | Required                                                                                         | Description                                                                                      |
| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ |
| `audio_tokens`                                                                                   | *OptionalNullable[int]*                                                                          | :heavy_minus_sign:                                                                               | Tokens used for input audio.                                                                     |
| `cache_write_tokens`                                                                             | *OptionalNullable[int]*                                                                          | :heavy_minus_sign:                                                                               | Tokens written to cache. Only returned for models with explicit caching and cache write pricing. |
| `cached_tokens`                                                                                  | *OptionalNullable[int]*                                                                          | :heavy_minus_sign:                                                                               | Tokens cached by the endpoint.                                                                   |
| `file_tokens`                                                                                    | *OptionalNullable[int]*                                                                          | :heavy_minus_sign:                                                                               | Tokens used for input files/documents.                                                           |
| `video_tokens`                                                                                   | *OptionalNullable[int]*                                                                          | :heavy_minus_sign:                                                                               | Tokens used for input video.                                                                     |