以 Google Gemini API 格式返回特定模型的元数据。Documentation Index
Fetch the complete documentation index at: https://docs.tokenlab.sh/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。