Track usage and costs
Manage the usage of your LLM apis in Stack
You can track your LLM usage in Stack AI deployed via two mechanisms:
Usage interface: simply go to 'Profile > Usage' and you will see a breakdown of your costs for each flow.
API: a RestAPI that tracks your LLM usage across all your projects for each flow.
Below is an example on how to call the usage API:
This API tracks the number of tokens, each model, and the cost for each Stack AI run or API call. The results are organized daily, weekly, and monthly.
Last updated