Sand AISand AI MAGI-2MAGI-2 ya está en SandBase: video en 1080p con audio nativoPruébalo ahora

Google Gemini Answer

Documentación de la API
https://api.sandbase.ai/v1/api/google/gemini-answer

Get the answer Google Gemini gives for a question in the Gemini web app, with answer text, cited sources and a token for follow-up questions.

Precio
$0.01USD / llamada
Método
POST
Respuesta
JSON
Parámetros
1 obligatorios · 2 opcionales

Entorno de pruebas

Entrada
Parameter defines the prompt you want to send to Google Gemini.
Parameter defines the token used to continue a Google Gemini conversation. Pass this token with a new `q` to send a follow-up prompt that includes the previous prompts and answers as context (multi-turn). The token is returned by the API from your previous request using our Google Gemini API. Gemini keeps a conversation only for a limited time, so the token **expires**: send the follow-up soon after the previous request.
Parameter defines the fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.
SalidaListo

Su salida aparecerá aquí

Complete las entradas y luego haga clic en Ejecutar.

README de la API

Google Gemini Answer

Get the answer Google Gemini gives for a question in the Gemini web app, with answer text, cited sources and a token for follow-up questions.

Request

curl -X POST "https://api.sandbase.ai/v1/api/google/gemini-answer" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"q": "How does a heat pump work?"}'

The result is returned in outputs[0].data as structured JSON.

Parameters

NameTypeRequiredDescription
qstringYesParameter defines the prompt you want to send to Google Gemini.
subsequent_request_tokenstringNoParameter defines the token used to continue a Google Gemini conversation. Pass this token with a new q to send a follow-up prompt that includes the previous prompts and answers as context (multi-turn). The token is returned by the API fr
json_restrictorstringNoParameter defines the fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.

Pricing

$0.010 per successful call. Failed calls are not charged.

Explorar más

APIs relacionadas

Todas las APIs
APIPrecioRespuesta
Google$0.01 por llamadaJSON
Google$0.01 por llamadaJSON
Google$0.015 por llamadaJSON
GoogleDesde $0.002 por llamadaJSON
GoogleDesde $0.0015 por llamadaJSON
Google$0.01 por llamadaJSON

Guías:Best Google API in 2026: Pricing Compared

Preguntas

FAQ

¿Cómo uso la API de Google Gemini Answer?

Envía una solicitud POST a https://api.sandbase.ai/v1/api/google/gemini-answer con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.

¿Cuánto cuesta la API de Google Gemini Answer?

$0.01 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.

¿Qué parámetros acepta la API de Google Gemini Answer?

Requeridos: q (string). Opcionales: subsequent_request_token (string) y json_restrictor (string). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.

¿Qué devuelve la API de Google Gemini Answer?

Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica).

¿Necesito una cuenta de desarrollador o una clave API de Google?

No. Google Gemini Answer funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de Google por separado.