User cost accountant

AI Agent

The idea is:

Hello,
It would be very helpful for me to be able to account for the cost of each user in terms of tokens.

My use case:

I think it would be beneficial to add this because:

Any resources to support this?

OpenRouter integrates this directly into its API, but it isn’t possible to add this directly into the IA agent node, nor even into the Model tool.
It could be interesting to be able to add information in the HTTP request to OpenRouter (ai model tool), which would appear in the raw_data of the activity. We could then retrieve the entire activity and extract the costs from the added information (id, …).

Are you willing to work on this?

I don’t have great technical skills but I would be very happy to help develop this feature.