Skip to main content
Every provider supports tracking token usage and costs.

Basic Usage

The ChatResult object includes a usage property that contains the token usage and costs.

Embeddings Usage

The EmbeddingsModel class includes a usage property that contains the token usage and costs as well.

Examples

Next Steps