Sand AISand AI MAGI-2MAGI-2 が SandBase に登場しました: ネイティブ音声付き 1080p 動画今すぐ試す

Google AI Mode

APIドキュメント
https://api.sandbase.ai/v1/api/google/ai-mode

Ask Google AI Mode a prompt and receive the cited answer it generates. AI Mode composes the answer at search time, so repeat calls on one prompt can differ in wording and in which sources are cited.

料金
$0.002 からUSD / 回
メソッド
POST
レスポンス
JSON
パラメータ
必須 1 件 · 任意 0 件

プレイグラウンド

入力
The question or prompt to answer with Google AI Mode.
出力準備完了

出力はここに表示されます

入力を完了してから[実行]をクリックしてください。

API README

Google AI Mode API

Returns the answer Google AI Mode generates for a text prompt, plus the sources it cites. It needs one input, a prompt string with the question to answer.

Use cases

  • Check how Google AI Mode describes a brand, product or website and which pages it cites.
  • Collect the source pages AI Mode cites for a topic to see which sites it relies on.
  • Run the same prompt several times and compare the cited sources to see how the answer changes.
  • Feed a question into a research workflow and keep the cited URLs for follow-up checks.

Request

curl -X POST "https://api.sandbase.ai/v1/api/google/ai-mode" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt": "What is the Model Context Protocol and who maintains it?"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
promptstringYesThe question or prompt to answer with Google AI Mode.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "data": {
    "answer": "The Model Context Protocol (MCP) is an open standard and open-source framework d…",
    "answerMarkdown": "The Model Context Protocol (MCP) is an open standard and open-source framework d…",
    "citations": [
      {
        "title": "Wikipedia",
        "url": "https://en.wikipedia.org/wiki/Model_Context_Protocol"
      }
    ],
    "prompt": "What is the Model Context Protocol and who maintains it?"
  },
  "found": true
}

Response fields

FieldMeaning
data.answerThe generated answer as plain text.
data.answerMarkdownThe same answer in Markdown. Use it when you want to keep the formatting of the answer.
data.citations[]List of sources cited in the answer.
data.citations[].titleTitle of the cited source, such as a site or page name.
data.citations[].urlLink to the cited page.
data.promptThe prompt that the answer was generated for. It repeats the prompt you sent.
foundtrue when AI Mode returned a result for the prompt.

Notes

  • Send the question in prompt. The request takes no other parameters and has no pagination.
  • Repeat calls on one prompt can return different wording and different citations.
  • The result is returned in outputs[0].data.
  • For the short summary Google shows above regular search results, use Google AI Overview.

Pricing

Billed at the actual cost of each call, about $0.002 for the request above. Failed calls are not charged.

さらに探索

関連 APIs

すべての APIs
API価格レスポンス
Google AI Modeこの API
Google
1回あたり $0.002 からJSON
Google$0.01 / 回JSON
Google$0.015 / 回JSON
Google1回あたり $0.0015 からJSON
Google$0.01 / 回JSON
Google$0.01 / 回JSON

ガイド:Best Google API in 2026: Pricing Compared

質問

FAQ

Google AI Mode API はどのように使いますか?

Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/google/ai-mode に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。

Google AI Mode API の料金はいくらですか?

1回あたり $0.002 から、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。

Google AI Mode API はどのパラメータを受け付けますか?

必須: prompt (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。

Google AI Mode API は何を返しますか?

同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。

Google の開発者アカウントまたは API key は必要ですか?

いいえ。Google AI Mode は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Google の API アクセスを別途申請する必要はありません。