Problem in api usage on google apis

hi i want to use google api key but i got this error !
im sure my key is true but it seems there is bug in your app
{“error”:{“message”:“Missing Authentication header or invalid API key”,“code”:401}}

This happens. Just turn on the checkbox and try to ask a question to the model in the chat.