# ChatGptUsage class

Contains information about the API usage.

```csharp
public class ChatGptUsage
```

## Public Members

| name | description |
| --- | --- |
| [ChatGptUsage](ChatGptUsage/ChatGptUsage.md)() | The default constructor. |
| [CompletionTokens](ChatGptUsage/CompletionTokens.md) { get; set; } | Gets or sets the number of token of the response. |
| [PromptTokens](ChatGptUsage/PromptTokens.md) { get; set; } | Gets or sets the number of tokens of the request. |
| [TotalTokens](ChatGptUsage/TotalTokens.md) { get; set; } | Gets the total number of tokens. |

## Remarks

See [What are tokens and how to count them?](https://help.openai.com/en/articles/4936856-what-are-tokens-and-how-to-count-them) for more information.

## See Also

* namespace [ChatGptNet.Models](../ChatGptNet.md)
* [ChatGptUsage.cs](https://github.com/marcominerva/ChatGptNet/tree/master/src/ChatGptNet/Models/ChatGptUsage.cs)

<!-- DO NOT EDIT: generated by xmldocmd for ChatGptNet.dll -->
