Skip to content

google search​

POST
/v1beta/models/gemini-2.5-flash:generateContent
  • 启用 tools.googleSearch 进行联网检索
  • 模型可结合实时信息回答用户问题
  • 建议使用 gemini-2.5-flash 等支持搜索的模型
  • 官方文档:Grounding with Google Search

Authorizations​

bearer
Type
HTTP (bearer)

Request Body​

application/json
object
object[]
Required

工具(含 googleSearch)

Responses​

成功

application/json

Playground​

Authorization
Body

Samples​