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
modelstringrequiredA model slug.
Responses
200The model.
Response
namestringmodels/<slug>.displayNamestringsupportedGenerationMethodsarray<string>
401The key is missing or invalid.
Response
errorobjecterror
codeintegerThe HTTP status.
messagestringstatusstringFor example
INVALID_ARGUMENT,UNAUTHENTICATED,RESOURCE_EXHAUSTED.detailsarray<object>
404The model is not callable by this key.
Response
errorobjecterror
codeintegerThe HTTP status.
messagestringstatusstringFor 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