google search
Endpoint: POST https://api.openlux.ai/v1beta/models/gemini-3.5-flash-lite:generateContent
Official documentation: https://ai.google.dev/gemini-api/docs/document-processing?hl=zh-cn
Parameters
key(query, string, required): API Key (Authorization: Bearer also supported)Content-Type(header, string, required): Request body content type, usually application/json
Request body (application/json)
contents(array<object>, required): List of content (multi-turn / multi-modal)
Request example
{
"contents": [
{
"parts": [
{
"text": "今天重庆天气如何?"
}
],
"role": "user"
}
],
"tools": [
{
"googleSearch": {}
}
]
}