Skip to main content
Returns metadata for a specific model in Google Gemini API format.

Path Parameters

string
required
Model name (e.g., gemini-2.5-pro, gemini-3.5-flash). Aliases are also accepted.

Authentication

Authentication is not required for the public model metadata read endpoint.

Response

string
Model resource name in models/{model} format.
string
Human-readable model name.
integer
Maximum input tokens (context window).
integer
Maximum output tokens.
array
List of supported generation methods (e.g., generateContent, countTokens, embedContent).
string
Public version string when available.
string
Human-readable model description when available.
number
Default temperature when available.
number
Default top-p value when available.
integer
Default top-k value when available.
number
Maximum supported temperature when available.

Errors

  • Invalid GETs that accidentally include :generateContent or :streamGenerateContent return 405 METHOD_NOT_ALLOWED.
  • Missing models return 404 NOT_FOUND.