AI widgets use the LLM model for their work, which in turn counts the consumed traffic on tokens. A token is a semantic unit. It can be a word or punctuation marks. Complex words can consist of several tokens. You can count the tokens in the text here -
https://platform.openai.com/tokenizerWith each request, a value equal to the token price multiplied by the number of tokens in the request and response from the LLM model will be deducted from your balance. At the same time, widgets for work also send technical information to the model for proper processing, which is also taken into account in the expense.
You can see the current cost of tokens in the payment block in the widget.