The sum
Cost of one request = input tokens x input price + output tokens x output price. If your provider discounts cached input, split the input tokens into cached and uncached and price each.
Providers usually quote prices per million tokens. Divide your token count by one million, then multiply by the price.
A worked example
Use your own provider's rates. As a method: suppose a request sends 20,000 input tokens and gets 1,000 output tokens back. Take the input price per million, multiply by 0.02. Take the output price per million, multiply by 0.001. Add the two. That is one request. An agent that makes ten such requests to finish a task costs ten times that, before retries.
Then add the context
A single request tells you little. What you want is cost per prompt pattern, per team and per piece of work, so you can see which kind of request drives the bill.