How to get the usage tier of an api key?

I can see the usage tier in my account on the website. Can it be retrieved using the API?

x-ratelimit headers will expose the tier level of the (leaked) key by model expectation.

1 Like