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.
Ihre Ausgabe wird hier angezeigt
Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.
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.
Jetzt loslegen
Plattform-API-Endpunkt mit einheitlicher Authentifizierung und Nutzungsnachverfolgung.
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
}'Legen Sie Ihren SandBase API-Schlüssel in Ihrer Serverumgebung fest. Anfragen verwenden Bearer-Authentifizierung.
export SANDBASE_API_KEY="YOUR_API_KEY"Bewahren Sie Ihren Schlüssel auf dem Server auf. Geben Sie ihn nicht in Browser-Code preis.
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).
Gespeicherte Beispielantwort für diese API; beim Anzeigen wird keine Live-Anfrage gesendet.
Es wurde keine gespeicherte Antwort veröffentlicht. Führen Sie die API in Playground aus, um die Antwort zu prüfen.
Mehr entdecken
| API | Preis | Antwort |
|---|---|---|
DataForSEO Gemini LLM ResponseDiese API DataForSEO | Ab $0.001105 pro Aufruf | JSON |
DataForSEO | Ab $0.0102 pro Aufruf | JSON |
DataForSEO | Ab $0.000724 pro Aufruf | JSON |
DataForSEO | $0.004 pro Aufruf | JSON |
DataForSEO | Ab $0.00162 pro Aufruf | JSON |
DataForSEO | $0.004 pro Aufruf | JSON |
Fragen
Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/dataforseo/v3/ai_optimization/gemini/llm_responses/live mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.
Ab $0.001105 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.
Es sind keine Parameter erforderlich. Optional: user_prompt (string), model_name (string), max_output_tokens (integer), system_message (string) und web_search (string). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.
Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron).
Nein. DataForSEO Gemini LLM Response läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für DataForSEO API beantragen.