以 Google Gemini API 格式傳回特定模型的元數據。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.
路徑參數
模型名稱(例如:
gemini-2.5-pro、gemini-2.5-flash)。也支援別名。身分驗證
公開模型元數據讀取端點不需要身分驗證。回應
models/{model} 格式的模型資源名稱。人類可讀的模型名稱。
最大輸入 token 數(上下文視窗)。
最大輸出 token 數。
支援的生成方法列表(例如:
generateContent、countTokens、embedContent)。可用時的公開版本字串。
可用時的人類可讀模型描述。
上游公開時的預設 temperature。
可用時的預設 top-p 值。
可用時的預設 top-k 值。
可用時支援的最大 temperature。
錯誤
- 如果 GET 請求錯誤地帶上了
:generateContent或:streamGenerateContent,會回傳405 METHOD_NOT_ALLOWED。 - 找不到模型時會回傳
404 NOT_FOUND。