OpenLux

google search

接口: POST https://api.openlux.ai/v1beta/models/gemini-3.5-flash-lite:generateContent

官方文档:https://ai.google.dev/gemini-api/docs/document-processing?hl=zh-cn

参数

  • key (query, string, 必填): API Key(也可使用 Authorization: Bearer)
  • Content-Type (header, string, 必填): 请求体类型,一般为 application/json

请求体 (application/json)

  • contents (array<object>, 必填): 内容列表(多轮/多模态)

请求示例

{
  "contents": [
    {
      "parts": [
        {
          "text": "今天重庆天气如何?"
        }
      ],
      "role": "user"
    }
  ],
  "tools": [
    {
      "googleSearch": {}
    }
  ]
}