Google 検索
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
contents
object[]
Required
tools
object[]
ツール(googleSearch を含む)
Responses
成功
application/json
object