# Firebase.AI.CountTokensResponse

The model's response to a count tokens request.

## Summary

| ### Properties ||
|---|---|
| `https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/count-tokens-response#struct_firebase_1_1_a_i_1_1_count_tokens_response_1a60965b6a6cf4790205e1a425786eed74` | `IReadOnlyList< https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/modality-token-count#struct_firebase_1_1_a_i_1_1_modality_token_count >` The breakdown, by modality, of how many tokens are consumed by the prompt. |
| `https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/count-tokens-response#struct_firebase_1_1_a_i_1_1_count_tokens_response_1a4cd653f744e15be9e5ea40748e3c2c39` | `int` The total number of tokens in the input given to the model as a prompt. |

## Properties

### PromptTokensDetails

```c#
IReadOnlyList< ModalityTokenCount > Firebase::AI::CountTokensResponse::PromptTokensDetails
```
The breakdown, by modality, of how many tokens are consumed by the prompt.

### TotalTokens

```c#
int Firebase::AI::CountTokensResponse::TotalTokens
```
The total number of tokens in the input given to the model as a prompt.