Ah, you’ll really want to handle billing on your own back-end.
That said, API keys have come a long way since they were first introduced. You do have more control on how they’re used, etc.
This page should get you headed in the right direction…
https://help.openai.com/en/articles/9186755-managing-your-work-in-the-api-platform-with-projects
Good luck!