GET/v1beta/models/{model}

Retrieve a model (Gemini)

One model in Google's shape. The whole path segment is the model name, so gpt-6-luna:free is read as one name.

Authentication: Bearer API key in the Authorization header

Path parameters

  • modelstringrequired

    A model slug.

Responses

  • 200

    The model.

    Response
    • namestring

      models/<slug>.

    • displayNamestring
    • supportedGenerationMethodsarray<string>
  • 401

    The key is missing or invalid.

    Response
    • errorobject
      error
      • codeinteger

        The HTTP status.

      • messagestring
      • statusstring

        For example INVALID_ARGUMENT, UNAUTHENTICATED, RESOURCE_EXHAUSTED.

      • detailsarray<object>
  • 404

    The model is not callable by this key.

    Response
    • errorobject
      error
      • codeinteger

        The HTTP status.

      • messagestring
      • statusstring

        For example INVALID_ARGUMENT, UNAUTHENTICATED, RESOURCE_EXHAUSTED.

      • detailsarray<object>

Request

curl https://api.experientiallabs.ai/v1beta/models/gpt-6-luna \
  -H "x-goog-api-key: YOUR_API_KEY"

Response

{
  "name": "models/gpt-6-luna",
  "displayName": "gpt-6-luna",
  "supportedGenerationMethods": [
    "generateContent",
    "streamGenerateContent",
    "countTokens"
  ]
}

https://api.experientiallabs.ai/v1beta/models/gpt-6-luna