#Is there an API to check if an API Key has access to GPT4?

3 messages · Page 1 of 1 (latest)

civic arch
#

I want to give my users the option to use GPT4 but I only want them to see the option to use GPT4 if their API key has access to it. What is the best way to do this?

fickle dagger
#

Can you just query the models endpoint with the api key, to see if gpt4 is an available model for the calling key?

civic arch
#

Yup! I can do that. That's exactly what I needed. Thanks!