Can i get how many tokens i have with api?

I want to manage my tokens therefore want to get how many tokens i have.However seems doens’t provided this api,only you see usage object in every api call.

"usage": {
    "prompt_tokens": 5,
    "completion_tokens": 6,
    "total_tokens": 11

How can i manage tokens without any information about how many tokens i have?

You can go to the usage page to see your usage.

Also tokens don’t work like top-ups; it’s pay-as-you-go service. You get billed for how much you consume on the specific model.