OpenAI comp - Get model details?

Hi,

I’m trying to figure out the correct URL for REST call to retrieve model details using the Open AI compatibility layer.

According to the API reference - OpenAI compatibility  |  Gemini API  |  Google AI for Developers - it should be one of the likes.

GET https://generativelanguage.googleapis.com/v1beta/openai/models?model=gemini-1.5-flash
GET https://generativelanguage.googleapis.com/v1beta/openai/models/?model=gemini-1.5-flash
GET https://generativelanguage.googleapis.com/v1beta/openai/models/gemini-1.5-flash

However, none of them return a result other than HTTP 400 Bad Request

{
  "error": {
    "code": 400,
    "message": "* GetModelRequest.name: unexpected model name format\n",
    "status": "INVALID_ARGUMENT"
  }
}

The corresponding REST call to list all models works as expected.

GET https://generativelanguage.googleapis.com/v1beta/openai/models

Any comment or hints are welcome. Thanks.

@Logan_Kilpatrick @GUNAND_MAYANGLAMBAM

For completeness, here’s the actual REST call.

GET https://generativelanguage.googleapis.com/v1beta/openai/models/gemini-2.0-flash
Authorization: Bearer {{apiKey}}

Which, to my understanding, is as per API reference documentation and should work instead of responding with an HTTP 400 Bad Request.

Cheers