Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.lemondata.cc/llms.txt

Use this file to discover all available pages before exploring further.

Returns metadata for a specific model in Google Gemini API format.

Path Parameters

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

Authentication

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

Response

name
string
Model resource name in models/{model} format.
displayName
string
Human-readable model name.
inputTokenLimit
integer
Maximum input tokens (context window).
outputTokenLimit
integer
Maximum output tokens.
supportedGenerationMethods
array
List of supported generation methods (e.g., generateContent, countTokens, embedContent).
version
string
Public version string when available.
description
string
Human-readable model description when available.
temperature
number
Default temperature when the upstream exposes it.
topP
number
Default top-p value when available.
topK
integer
Default top-k value when available.
maxTemperature
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.
curl "https://api.lemondata.cc/v1beta/models/gemini-2.5-pro"
{
  "name": "models/gemini-2.5-pro",
  "version": "1.0",
  "displayName": "gemini-2.5-pro",
  "description": "gemini-2.5-pro model available via LemonData",
  "inputTokenLimit": 1048576,
  "outputTokenLimit": 65536,
  "supportedGenerationMethods": ["generateContent", "countTokens"],
  "temperature": 1.0,
  "topP": 0.95,
  "topK": 40,
  "maxTemperature": 2.0
}