查询Google Gemini模型列表

有/v1/models 和/v1beta/models 两个路径,目前新模型已经可以在v1beta 查到

📣 AI新闻频道

curl --request GET \
  --url https://generativelanguage.googleapis.com/v1beta/models \
  --header 'x-goog-api-key: your-google-api-key'


Result:
{
  "models": [  
      {
      "name": "models/gemini-1.5-pro-002",
      "version": "002",
      "displayName": "Gemini 1.5 Pro 002",
      "description": "Mid-size multimodal model that supports up to 2 million tokens",
      "inputTokenLimit": 2097152,
      "outputTokenLimit": 8192,
      "supportedGenerationMethods": [
        "generateContent",
        "countTokens"
      ],
      "temperature": 1,
      "topP": 0.95,
      "topK": 40,
      "maxTemperature": 2
    },
        {
      "name": "models/gemini-1.5-flash-002",
      "version": "002",
      "displayName": "Gemini 1.5 Flash 002",
      "description": "Fast and versatile multimodal model for scaling across diverse tasks",
      "inputTokenLimit": 2097152,
      "outputTokenLimit": 8192,
      "supportedGenerationMethods": [
        "generateContent",
        "countTokens"
      ],
      "temperature": 1,
      "topP": 0.95,
      "topK": 40,
      "maxTemperature": 2
    },
        {
      "name": "models/gemini-1.5-flash-8b-exp-0924",
      "version": "001",
      "displayName": "Gemini 1.5 Flash 8B Experimental 0924",
      "description": "Fast and versatile multimodal model for scaling across diverse tasks",
      "inputTokenLimit": 1048576,
      "outputTokenLimit": 8192,
      "supportedGenerationMethods": [
        "generateContent",
        "countTokens"
      ],
      "temperature": 1,
      "topP": 0.95,
      "topK": 40,
      "maxTemperature": 2
    },
      ]
}
 
 
Back to Top
oaibest.com 2023-2024   admin@g4f.icu | 服务状态