[
{
"error": {
"code": 401,
"message": "API keys are not supported by this API. Expected OAuth2 access token or other authentication credentials that assert a principal. See https://cloud.google.com/docs/authentication",
"status": "UNAUTHENTICATED",
"details": [
{
"@type": "type.googleapis.com/google.rpc.ErrorInfo",
"reason": "CREDENTIALS_MISSING",
"domain": "googleapis.com",
"metadata": {
"method": "google.ai.generativelanguage.v1main.GenerativeService.StreamGenerateContent",
"service": "generativelanguage.googleapis.com"
}
}
]
}
}
]
When I called Gemini’s OpenAI-compatible interface, I received the above error response due to an invalid key. I would like to confirm the data format of the error return and where I can find the relevant documentation, tks.