user_promptstring
The prompt to send.
https://api.sandbase.ai/v1/api/dataforseo/v3/ai_optimization/gemini/llm_responses/liveAsk Gemini a prompt and get its answer with token usage, for AI visibility checks.
Çıktınız burada görünecek
Girdileri tamamlayın, ardından Çalıştır'a tıklayın.
Ask Gemini a prompt and get its answer with token usage, for AI visibility checks.
Request fields follow the official DataForSEO /v3/ai_optimization/gemini/llm_responses/live task schema (one task per call). The response is DataForSEO's original JSON; results are in tasks[].result.
curl -X POST "https://api.sandbase.ai/v1/api/dataforseo/v3/ai_optimization/gemini/llm_responses/live" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"user_prompt": "best running shoes 2026", "model_name": "gemini-2.5-flash", "max_output_tokens": 200}'
The JSON body is forwarded to the upstream endpoint. Main fields:
| Name | Description |
|---|---|
user_prompt | The prompt to send. |
model_name | Model name from the vendor's model list. |
max_output_tokens | Optional cap on answer length; longer answers cost more. |
system_message | Optional system instruction. |
web_search | Optional: let the model search the web (where supported). |
Billed at the actual cost of each call, about $0.001105 for the request above. The cost grows with the number of rows, targets or tokens a call returns. Failed calls are not charged. Searches with no results are billed at their actual cost.
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/dataforseo/v3/ai_optimization/gemini/llm_responses/live" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model_name": "gemini-2.5-flash",
"user_prompt": "best running shoes 2026",
"max_output_tokens": 200
}'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.
user_promptstringThe prompt to send.
model_namestringModel name from the vendor's model list.
max_output_tokensintegerOptional cap on answer length; longer answers cost more.
system_messagestringOptional system instruction.
web_searchstringOptional: let the model search the web (where supported).
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 |
|---|---|---|
DataForSEO | Kullanım başına $0.001105'den itibaren | JSON |
DataForSEO | Kullanım başına $0.0102'den itibaren | JSON |
DataForSEO | Kullanım başına $0.000724'den itibaren | JSON |
DataForSEO | $0.004 çağrı başına | JSON |
DataForSEO | Kullanım başına $0.00162'den itibaren | JSON |
DataForSEO | $0.004 çağrı başına | JSON |
Sorular
SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/dataforseo/v3/ai_optimization/gemini/llm_responses/live adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.
çağrı başına $0.001105'dan başlayan, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.
Gerekli parametre yoktur. İsteğe bağlı: user_prompt (string), model_name (string), max_output_tokens (integer), system_message (string) ve web_search (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. DataForSEO Gemini LLM Response, 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. DataForSEO API erişimi için ayrıca başvuru yapmanız gerekmez.