Sand AISand AI MAGI-2MAGI-2 agora está na SandBase: vídeo em 1080p com áudio nativoExperimente agora

Google AI Mode

Docs da 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.

Preço
A partir de $0.002USD / chamada
Método
POST
Resposta
JSON
Parâmetros
1 obrigatórios · 0 opcionais

Playground

Entrada
The question or prompt to answer with Google AI Mode.
SaídaPronto

Sua saída aparecerá aqui

Preencha as entradas e clique em Executar.

README da API

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.

Explorar mais

APIs relacionadas

Todas as APIs
APIPreçoResposta
GoogleA partir de $0.002 por chamadaJSON
Google$0.01 por chamadaJSON
Google$0.015 por chamadaJSON
GoogleA partir de $0.0015 por chamadaJSON
Google$0.01 por chamadaJSON
Google$0.01 por chamadaJSON

Guias:Best Google API in 2026: Pricing Compared

Perguntas

FAQ

Como eu uso a API Google AI Mode?

Envie uma solicitação POST para https://api.sandbase.ai/v1/api/google/ai-mode com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.

Quanto custa a API Google AI Mode?

A partir de $0.002 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.

Quais parâmetros a API Google AI Mode aceita?

Obrigatórios: prompt (string). A tabela de Parâmetros e o Playground nesta página listam todos os campos.

O que a API Google AI Mode retorna?

Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.

Preciso de uma conta de desenvolvedor Google ou de uma chave de API?

Não. Google AI Mode funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do Google separadamente.