# Gemini answer to a prompt, live

Live Gemini LLM Responses endpoint allows you to retrieve structured responses from a specific Gemini AI model, based on the input parameters.

|  |  |
| --- | --- |
| Tool id | `dataforseo.x-ai-optimization-gemini-llm-responses-live` |
| Platform | [AI search visibility](https://www.orcarouter.ai/tools/ai-search.md) |
| Capability | [AI answer visibility](https://www.orcarouter.ai/tools/ai-search/ai-visibility.md) |
| Price | $0.039882 per call |
| Health | OK |
| p50 latency | — |
| Success (7 days) | — |
| Runs (30 days) | — |
| Idempotent | no |
| Data class | unclassified |

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `max_output_tokens` | integer | no | \<em>maximum number of tokens in the AI response\</em>\<br>optional field\<br>minimum value: \<code>1\</code>\<br>maximum value: \<code>4096\</code>;\<br>default value: \<code>2048\</code>;\<br>\<strong>Note:\</strong> if \<code>web_search\</code> is set to \<code>true\</code> or the reasoning model is specified in th |
| `message_chain` | array | no | conversation history optional field array of message objects representing previous conversation turns; each object must contain: role string with either user or ai role; message string with message content (max 500 characters); you can specify maximum of 10 message objects in the array; Note: for Pe |
| `model_name` | string | no | \<em>name of the AI model\</em>\<br>\<strong>required field\</strong>\<br>\<code>model_name\</code >consists of the actual model name and version name;\<br>if the basic model name is specified, its latest version will be set by default;\<br>for example, if \<code>gemini-1.5-pro\</code> is specified, the \<code>g |
| `system_message` | string | no | \<em>instructions for the AI behavior\</em>\<br>optional field\<br>defines the AI's role, tone, or specific behavior \<br>you can specify \<strong>up to 500 characters\</strong> in the \<code>system_message\</code> field |
| `tag` | string | no | \<em>user-defined task identifier\</em>\<br>optional field\<br>\<em>the character limit is 255\</em>\<br>you can use this parameter to identify the task and match it with the result\<br>you will find the specified \<code>tag\</code> value in the \<code>data\</code> object of the response |
| `temperature` | number | no | \<em>randomness of the AI response\</em>\<br>optional field\<br>higher values make output more diverse \<br>lower values make output more focused\<br>minimum value: \<code>0\</code>\<br>maximum value: \<code>2\</code>\<br>default value: \<code>1.3\</code> |
| `top_p` | number | no | \<em>diversity of the AI response\</em>\<br>optional field \<br>controls diversity of the response by limiting token selection\<br>minimum value: \<code>0\</code>\<br>maximum value: \<code>1\</code> \<br>default value: \<code>0.9\</code> |
| `use_reasoning` | boolean | no | \<em>enable reasoning for the AI model\</em>\<br>optional field\<br>when enabled, the model will perform reasoning before generating a response\<br>refer to the \<a href="https://docs.dataforseo.com/v3/ai_optimization/gemini/llm_responses/models/" target="\_blank">Models endpoint\</a> for a list of models t |
| `user_prompt` | string | no | \<em>prompt for the AI model\</em>\<br>\<strong>required field\</strong>\<br>the question or task you want to send to the AI model;\<br>you can specify \<strong>up to 500 characters\</strong> in the \<code>user_prompt\</code> field |
| `web_search` | boolean | no | \<em>enable web search for current information\</em>\<br>optional field\<br>when enabled, the AI model can access and cite current web information;\<br>\<strong>Note:\</strong> refer to the \<a href="https://docs.dataforseo.com/v3/ai_optimization/gemini/llm_responses/models/">Models endpoint\</a> for a list |

## Call it

```bash
curl -sS https://api.orcarouter.ai/v1/tools/dataforseo.x-ai-optimization-gemini-llm-responses-live/run \
  -H "Authorization: Bearer $ORCAROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{}}'
```

```python
import os, requests

resp = requests.post(
    "https://api.orcarouter.ai/v1/tools/dataforseo.x-ai-optimization-gemini-llm-responses-live/run",
    headers={"Authorization": f"Bearer {os.environ['ORCAROUTER_API_KEY']}"},
    json={"input":{}},
)
print(resp.json())
```

## Alternatives

| Tool | Source | Price | Health |
| --- | --- | --- | --- |
| [ChatGPT search results for a keyword, live](https://www.orcarouter.ai/tools/ai-search/ai-visibility/x-ai-optimization-chat-gpt-llm-scraper-live-advanced.md) | — | $0.0044 per call | OK |
| [Gemini search results for a keyword, live](https://www.orcarouter.ai/tools/ai-search/ai-visibility/x-ai-optimization-gemini-llm-scraper-live-advanced.md) | — | $0.0044 per call | OK |
| [Perplexity answer to a prompt, live](https://www.orcarouter.ai/tools/ai-search/ai-visibility/x-ai-optimization-perplexity-llm-responses-live.md) | — | $0.006448 per call | OK |
| [Brave AI Mode answer for a query](https://www.orcarouter.ai/tools/ai-search/ai-visibility/x-brave-ai-mode.md) | — | $0.0275 per call | OK |
| [ChatGPT answer to a prompt, live](https://www.orcarouter.ai/tools/ai-search/ai-visibility/x-ai-optimization-chat-gpt-llm-responses-live.md) | — | $0.032174 per call | OK |
| [Monthly LLM mention history for a keyword or domain](https://www.orcarouter.ai/tools/ai-search/ai-visibility/x-ai-optimization-llm-mentions-historical-live.md) | — | $0.1111 per call | OK |
| [LLM mention metrics for a keyword or domain, lite](https://www.orcarouter.ai/tools/ai-search/ai-visibility/x-ai-optimization-llm-mentions-target-metrics-lite-live.md) | — | $0.1111 per call | OK |
| [LLM mention metrics for a keyword or domain](https://www.orcarouter.ai/tools/ai-search/ai-visibility/x-ai-optimization-llm-mentions-target-metrics-live.md) | — | $0.1111 per call | OK |
| [Search LLM mentions of a keyword or domain in AI answers](https://www.orcarouter.ai/tools/ai-search/ai-visibility/x-ai-optimization-llm-mentions-search-mentions-live.md) | — | $0.1133 per call | OK |
| [Top brand categories in LLM mentions of a target, lite](https://www.orcarouter.ai/tools/ai-search/ai-visibility/x-ai-optimization-llm-mentions-top-mentioned-brand-categories-li.md) | — | $0.1133 per call | OK |

Showing the first 10 of 20.

## FAQ

### How much does Gemini answer to a prompt, live cost?

Gemini answer to a prompt, live costs $0.039882 per call: 1,000 calls cost $39.882.

### What does a $10 budget buy with Gemini answer to a prompt, live?

About 250 calls at $0.039882 per call.

### What inputs does Gemini answer to a prompt, live need?

It has no required inputs.

### How do I call Gemini answer to a prompt, live?

Send POST /v1/tools/{id}/run with your OrcaRouter API key and a JSON body {"input": {…}}, where {id} is the tool id POST /v1/tools/discover returns for it.

---

Markdown version of https://www.orcarouter.ai/tools/ai-search/ai-visibility/x-ai-optimization-gemini-llm-responses-live
