跳轉到主要內容
以 Google Gemini API 格式傳回特定模型的元數據。

路徑參數

model
string
必填
模型名稱(例如:gemini-2.5-progemini-2.5-flash)。也支援別名。

身份驗證

選填。支援與其他 Gemini 端點相同的身份驗證方法:
  • ?key=YOUR_API_KEY 查詢參數
  • x-goog-api-key: YOUR_API_KEY 標頭
  • Authorization: Bearer YOUR_API_KEY 標頭

回應

name
string
models/{model} 格式的模型資源名稱。
displayName
string
易於閱讀的模型名稱。
inputTokenLimit
integer
最大輸入 token 數(上下文視窗)。
outputTokenLimit
integer
最大輸出 token 數。
supportedGenerationMethods
array
支援的生成方法列表(例如:generateContentcountTokensembedContent)。
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
}