Feature request: Include cost of API call (cents) in API responses

Hey folks, a simple API feature request!

I’d like to receive the cents I’m billed for an API call, possibly inside the usage field which already includes input, output, and cached tokens.

I can of course do the math myself, but model pricing changes regularly, and now with prompt caching there’s another variable to account for. Is this something you can include in responses for me?

I use this info to pass cost on to my app’s users, and to manage my org’s global limits.

1 Like