Sand AISand AI MAGI-2MAGI-2 artık SandBase'de: yerel sesli 1080p videoŞimdi deneyin

Google Gemini Answer

API dokümanları
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.

Fiyat
$0.01USD / çağrı
Yöntem
POST
Yanıt
JSON
Parametreler
1 gerekli · 2 isteğe bağlı

Oynatma Alanı

Girdi
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.
ÇıktıHazır

Çıktınız burada görünecek

Girdileri tamamlayın, ardından Çalıştır'a tıklayın.

API README

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.

Daha fazlasını keşfedin

İlgili APIs

Tüm APIs
APIFiyatYanıt
Google$0.01 çağrı başınaJSON
Google$0.01 çağrı başınaJSON
Google$0.015 çağrı başınaJSON
GoogleKullanım başına $0.002'den itibarenJSON
GoogleKullanım başına $0.0015'den itibarenJSON
Google$0.01 çağrı başınaJSON

Kılavuzlar:Best Google API in 2026: Pricing Compared

Sorular

SSS

Google Gemini Answer API'sini nasıl kullanırım?

SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/google/gemini-answer adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.

Google Gemini Answer API'sinin fiyatı nedir?

çağrı başına $0.01, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.

Google Gemini Answer API'si hangi parametreleri kabul eder?

Gerekli: q (string). İsteğe bağlı: subsequent_request_token (string) ve json_restrictor (string). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.

Google Gemini Answer API'si ne döndürür?

Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron).

Bir Google geliştirici hesabına veya API anahtarına ihtiyacım var mı?

Hayır. Google Gemini Answer, SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. Google API erişimi için ayrıca başvuru yapmanız gerekmez.