Agent Search offers multiple model versions for you to choose when
generating answers. You can choose the model versions when using [search
summaries](https://docs.cloud.google.com/generative-ai-app-builder/docs/get-search-summaries) and [answers and
follow-ups](https://docs.cloud.google.com/generative-ai-app-builder/docs/answer).

## Available models

Agent Search uses two types of models for question and answering
use cases:

- Gemini Enterprise Agent Platform LLM models that have been tested on question and answering tasks
- Agent Search models that are based on Agent Platform LLM models and further trained to address question and answering tasks

Agent Search models share the same discontinuation date as their
base Agent Platform LLM models. The base LLM model is
available for six months after the release date of the next version of the
model, according to the [Model versions and
lifecycle](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/model-versions). Leave
enough time to migrate to new models before the discontinuation dates.

The following table lists model version specifications. When you set a model
specification, the API uses the specified model to generate answers.

| Model version^1^ | Description | Context window^2^ | Discontinuation date |
|---|---|---|---|
| `stable` | The default model choice if the model version is not set. The `stable` model specification points to `gemini-3.5-flash/answer_gen/v1`. The model designated as `stable` changes periodically as new models and versions become available. | 128K | N/A |
| `gemini-3.1-pro-preview/answer_gen/v1` | The [`gemini-3.1-pro-preview`](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/gemini/3-1-pro.md.txt) model. | 128K | N/A |
| `gemini-3-flash-preview/answer_gen/v1` | The [`gemini-3-flash-preview`](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/gemini/3-flash.md.txt) model. | 128K | N/A |
| `gemini-3.5-flash/answer_gen/v1` | The [`gemini-3.5-flash`](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/gemini/3-5-flash.md.txt) model. | 128K | N/A |

^1^ The latest Gemini models might not be available for
use with this API.

^2^ For quality and latency reasons, this context window is smaller
than allowed elsewhere for these models.