Be able to get cost in real time using API

Feature request for product/service

Cursor IDE

Describe the request

I think it’s interesting to be able to get access to the number of tokens consumed in a conversation. The idea behind this request is to make it possible to automate the control of the costs in conversations.
Having a rule that can be executed on every request, there will be a threshold on which we can decide when we want to stop a conversation and force opening a new one.