API para Google: Modo IA
Envie um prompt ao Google AI Mode e receba a resposta com citações que ele gera. O AI Mode compõe a resposta no momento da busca, então chamadas repetidas com o mesmo prompt podem variar no texto e nas fontes citadas.
Preços
Um preço, em dólares
Um provedor marcado como Fora de serviço parou de responder de forma confiável e foi retirado do rodízio, então suas chamadas vão para os outros. Ele volta sozinho assim que responder de forma confiável de novo.
Teste
Faça sua primeira requisição
{
"data": {
"answer": "example",
"answerMarkdown": "example",
"citations": [
{
"title": "Example title",
"url": "https://example.com/page"
}
],
"prompt": "example"
},
"found": true,
"reason": "not_found"
}interface GoogleAiModeResponse {
data: {
answer: string;
answerMarkdown: string;
citations: {
title: string;
url: string;
}[];
prompt: string;
} | null;
found: boolean;
reason?: "not_found";
}Referência completa de parâmetros e resposta - todos os campos, tipos e exemplos deste endpoint.
Referência
Requisição, resposta e preço
Última verificação em 2026-09-29 · disponibilidade e latência medidas em 30dcurl -X POST https://api.getanyapi.com/v1/run/google.ai_mode \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt":"What is AnyAPI at getanyapi.com, and what does it offer?"}'| Campo | Tipo | Valor de exemplo |
|---|---|---|
| Corpo da requisição | ||
| prompt | string | "What is AnyAPI at getanyapi.com, and what does it offer?"A pergunta ou prompt a ser respondido pelo Google AI Mode. |
| Resposta | ||
| data | object | The normalized answer, or null when no answer was found. Google composes the answer at search time rather than serving a stored one, so the same prompt can return different wording and a different set of citations on each call. Treat a response as one observation of the answer, not as a stable document. |
| data.answer | string | The answer as plain text, as Google generated it for this search. Length and coverage vary between searches on the same prompt. Populated whenever the provider has data for the entity. |
| data.answerMarkdown | string | The answer in Markdown when Google returns a Markdown rendering, otherwise the same text as answer. Populated whenever the provider has data for the entity. |
| data.citations | object[] | The sources Google cited for this search, in the order it returned them. Google recomputes the set per search, so counts and membership vary between calls on the same prompt. |
| data.citations[].title | string | The cited source title. |
| data.citations[].url | string | The cited source URL. |
| data.prompt | string | The prompt answered by the upstream search experience. Populated whenever the provider has data for the entity. |
| found | boolean | Whether Google AI Mode returned an answer. |
| reason | "not_found" | Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost. |
| Preço | ||
| Preço por requisição | USD | US$ 0,0007 |
| Preço /mil req. | USD | US$ 0,70 |
Dúvidas frequentes
Sobre o endpoint Modo IA da API para Google
O endpoint Modo IA da AnyAPI para Google retorna dados de Google em JSON normalizado com uma chamada POST para /v1/run/google.ai_mode. Envie um prompt ao Google AI Mode e receba a resposta com citações que ele gera. O AI Mode compõe a resposta no momento da busca, então chamadas repetidas com o mesmo prompt podem variar no texto e nas fontes citadas. A AnyAPI retorna um schema normalizado, seja qual for a fonte que atende. Custa a partir de US$ 0,70 por mil requisições, em dólares, sem assinatura e sem mínimo mensal. Nos últimos 30 dias, 78,2% das chamadas ao endpoint Modo IA da API para Google feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 21,6 segundos, em 444 chamadas medidas.