How to know which API Key was used for a request

I’m using different API Keys for different projects, and I’m having a really hard time figuring out how much money each project has used over the month. How can I do this?