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.
Twój wynik pojawi się tutaj
Uzupełnij dane wejściowe, a następnie kliknij Uruchom.
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.
Zacznij tworzyć
Punkt końcowy API platformy z jednolitym uwierzytelnianiem i śledzeniem użycia.
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
}'Ustaw klucz API SandBase w środowisku serwera. Żądania używają uwierzytelniania Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Przechowuj klucz na serwerze. Nie ujawniaj go w kodzie przeglądarkowym.
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).
Zapisany przykładowy response dla tego API; podczas wyświetlania nie jest wykonywane żadne żądanie na żywo.
Nie opublikowano zapisanego response. Uruchom API w Playground, aby sprawdzić jego odpowiedź.
Odkryj więcej
| API | Cena | Odpowiedź |
|---|---|---|
DataForSEO | Od $0.001105 za wywołanie | JSON |
DataForSEO | Od $0.0102 za wywołanie | JSON |
DataForSEO | Od $0.000724 za wywołanie | JSON |
DataForSEO | $0.004 za wywołanie | JSON |
DataForSEO | Od $0.00162 za wywołanie | JSON |
DataForSEO | $0.004 za wywołanie | JSON |
Pytania
Wyślij żądanie POST do https://api.sandbase.ai/v1/api/dataforseo/v3/ai_optimization/gemini/llm_responses/live z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.
Od $0.001105 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.
Nie są wymagane żadne parametry. Opcjonalne: user_prompt (string), model_name (string), max_output_tokens (integer), system_message (string) i web_search (string). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.
Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie).
Nie. DataForSEO Gemini LLM Response działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API DataForSEO.