qstringzorunlu
Parameter defines the prompt you want to send to Google Gemini.
https://api.sandbase.ai/v1/api/google/gemini-answerGet 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.
Çıktınız burada görünecek
Girdileri tamamlayın, ardından Çalıştır'a tıklayın.
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.
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.
| Name | Type | Required | Description |
|---|---|---|---|
q | string | Yes | Parameter defines the prompt you want to send to Google Gemini. |
subsequent_request_token | string | No | 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 fr |
json_restrictor | string | No | 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. |
$0.010 per successful call. Failed calls are not charged.
Geliştirmeye başlayın
Birleşik kimlik doğrulama ve kullanım takibi sunan Platform API uç noktası.
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?"
}'SandBase API anahtarınızı sunucu ortamınıza ayarlayın. İstekler Bearer kimlik doğrulaması kullanır.
export SANDBASE_API_KEY="YOUR_API_KEY"Anahtarınızı sunucuda tutun. Tarayıcı kodunda açığa çıkarmayın.
qstringzorunluParameter defines the prompt you want to send to Google Gemini.
subsequent_request_tokenstringParameter 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.
json_restrictorstringParameter defines the fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.
Bu API için kaydedilmiş örnek yanıt; görüntülerken canlı istek yapılmaz.
Yayınlanmış bir kaydedilmiş yanıt yok. Yanıtını incelemek için API'yi Playground'da çalıştırın.
Daha fazlasını keşfedin
| API | Fiyat | Yanıt |
|---|---|---|
Google Gemini AnswerBu API Google | $0.01 çağrı başına | JSON |
Google | $0.01 çağrı başına | JSON |
Google | $0.015 çağrı başına | JSON |
Google | Kullanım başına $0.002'den itibaren | JSON |
Google | Kullanım başına $0.0015'den itibaren | JSON |
Google | $0.01 çağrı başına | JSON |
Kılavuzlar:Best Google API in 2026: Pricing Compared
Sorular
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.
çağrı başına $0.01, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.
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.
Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron).
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.