I noticed that AI Studio is now generating the API keys with AQ. prefix. These keys don’t work well when I use the OpenAI compatible API and I received the response:
{
"error": {
"code": 400,
"message": "Multiple authentication credentials received. Please pass only one.",
"status": "INVALID_ARGUMENT"
}
}
The request command:
curl "https://generativelanguage.googleapis.com/v1beta/openai/models" \
-H 'Authorization: Bearer <The AQ. key>'