> [!NOTE]
>
> **Private Preview**
>
>
> This product is
>
> subject to the "Pre-GA Offerings Terms" in the General Service Terms section of the
> [Service Specific
> Terms](https://docs.cloud.google.com/terms/service-terms#1), and the
> [Additional Terms for Generative AI
> Preview Products](https://cloud.google.com/trustedtester/aitos).
>
> You can process personal data for
>
> this product
>
> as outlined in the
> [Cloud Data
> Processing Addendum](https://docs.cloud.google.com/terms/data-processing-addendum), subject to the obligations and restrictions described in the
> agreement under which you access Google Cloud.
>
> Pre-GA products are available "as is" and might have limited support.
>
> For more information, see the
> [launch stage descriptions](https://cloud.google.com/products/#product-launch-stages).

> [!IMPORTANT]
> **Important:** AlphaGenome 2 is a research tool and is **not** intended or cleared for clinical diagnostic use.

[AlphaGenome 2](https://doi.org/10.64898/2026.11.11.765857) is Google
DeepMind's next-generation deep learning foundation model for predicting the
functional regulatory effects of DNA sequences at single-base resolution.
Building on
[AlphaGenome 1](https://doi.org/10.1038/s41586-025-10014-0),
AlphaGenome 2 introduces improved cell-type specificity, modality
imputation across 2,799 Human and 838 Mouse biological conditions, and
generalization to custom single-cell RNA-seq datasets.

With **AlphaGenome 2 Managed Model-as-a-Service (MaaS)**
(`google/alphagenome2-maas`), you can run online sequence, interval, variant,
*in silico* mutagenesis (ISM), and single-cell conditioned predictions directly
against a Google-managed serverless endpoint on Gemini Enterprise Agent Platform. You don't need
to provision GPUs or manage endpoints, and usage is billed on demand per
**Science Token**.

> [!NOTE]
> **Note:** If you need dedicated, self-managed GPU capacity in your own Google Cloud project or deployment outside `us-central1`, see [AlphaGenome 2 (Self-deployed)](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/open-models/alphagenome-2-self-deployed.md.txt).

## Key capabilities

AlphaGenome 2 MaaS provides the following capabilities:

- **Zero-infrastructure serverless inference** : Invoke Google-hosted H100 infrastructure directly from your Google Cloud project over HTTPS (`us-central1`) with built-in Identity and Access Management (IAM) authentication and VPC Service Controls (`restricted.googleapis.com`) compatibility.
- **Zero data retention (ZDR)**: Sequence, variant, and single-cell payloads are processed ephemerally in memory to fulfill your prediction request and aren't logged, persisted at rest, or used for model training.
- **Multimodal and multi-species predictions** : Predict regulatory activity across 14 genomic modalities: gene expression (`RNA_SEQ`, `CAGE`), chromatin accessibility (`ATAC`, `DNASE`), histone modifications and transcription factor binding (`CHIP_HISTONE`, `CHIP_TF`), DNA methylation (`METHYLATION`), RNA splicing (`SPLICE_SITES`, `SPLICE_SITE_USAGE`, `SPLICE_JUNCTIONS`), 3D chromatin contact maps (`CONTACT_MAPS`), and single-cell modalities (`SC_ATAC`, `SC_GENE_EXPRESSION`, and `SC_GENE_EXPRESSION_DENOISED`, which requires `cell_conditioning`) for Human (`GRCh38` / `Organism.HOMO_SAPIENS`) and Mouse (`GRCm38` / `Organism.MUS_MUSCULUS`).
- **Flexible context windows up to 1 MB** : Supports DNA sequence lengths of 16 KB (`16,384 bp`), 100 KB (`131,072 bp`), 500 KB (`524,288 bp`), and 1 MB (`1,048,576 bp`).
- **Single-cell conditioning and cell state encoder** :
  - Condition DNA sequence and variant predictions on custom single-cell RNA-seq count matrices (`anndata.AnnData` with raw integer UMI counts and Ensembl `ENSG...` gene IDs) by passing `cell_conditioning`.
  - Extract latent single-cell embeddings (`CELL_EMBEDDINGS`) using `dna_model.encode_cells(adata)`.
- **Model fold selection** : Query either the full post-trained ensemble (`ModelVersion.ALL_FOLDS`, default) or cross-validation fold 1 (`ModelVersion.FOLD_1`). When using `ModelVersion.FOLD_1` with `encode_cells` or `cell_conditioning`, the cell encoder masks genes outside fold 1 training intervals.
- **Built-in Science Token usage tracking** : `MaasDnaClient` automatically records per-request and cumulative session token usage through `dna_model.last_usage_metadata` and `dna_model.total_usage_metadata`.

### Differences from AlphaGenome 1

Compared with [AlphaGenome 1](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/open-models/alphagenome.md.txt),
AlphaGenome 2 introduces the following changes:

- **Condition required on every call** : Every prediction and scoring call requires either a reference condition (`condition=`) or human single-cell expression conditioning (`cell_conditioning=`), evaluating one condition per call.
- **Cell-type-specific conditioning and imputation** : Query observed and imputed tracks across 2,799 Human (`Organism.HOMO_SAPIENS`) and 838 Mouse (`Organism.MUS_MUSCULUS`) reference ontology conditions using `supported_conditions()`. Every output track carries an `imputation_mode` label (`observed`, `imputed_supported`, or `imputed_exploratory`).
- **Expression conditioning without fine-tuning** : Pass your own human single-cell RNA-seq count matrix (`anndata.AnnData`) through `cell_conditioning` to predict regulatory activity and variant effects in unseen cell states, or extract latent embeddings with `encode_cells`.
- **Updated modalities and variant scores** : Adds `METHYLATION`, `SC_ATAC`, `SC_GENE_EXPRESSION`, and `SC_GENE_EXPRESSION_DENOISED`, and removes `PROCAP` (use `CAGE` for transcription start site activity). `SPLICE_SITES` is condition-specific with five channels per condition, `CONTACT_MAPS` values aren't directly comparable to AlphaGenome 1, and variant scorers return `raw_score` only (no `quantile_score` column). For full porting details, see [Migrating from AlphaGenome 1](https://www.alphagenomedocs.com/user_guides/ag1_vs_ag2.html).

## Service configuration, regions, and quotas

The following table lists the service configuration, regional availability,
IAM requirements, and quota metrics for AlphaGenome 2
MaaS:

| Property | Value |
|---|---|
| **Publisher Model ID** | `publishers/google/models/alphagenome2-maas` |
| **Supported region** | `us-central1` |
| **API endpoint** | `https://us-central1-aiplatform.googleapis.com/v1/projects/PROJECT_ID/locations/us-central1/endpoints/google/science/inference` |
| **Required IAM role** | Agent Platform User (`roles/aiplatform.user`, which grants `aiplatform.endpoints.predict`) on your consumer project |
| **Rate quota metric** | `aiplatform.googleapis.com/online_prediction_requests_per_base_model` (`base_model=alphagenome2-maas`, default 100 QPM per consumer project) |
| **Maximum context length** | Up to 1 MB (`1,048,576 bp`) sequence length |

Each 10 bp ISM chunk, batch item, and `encode_cells` batch (up to 256 cells)
counts as a separate request against the per-project QPM quota. The Cloud SDK
automatically retries HTTP `429` responses with exponential backoff.

## Get started

To query AlphaGenome 2 MaaS, configure authentication, install the
Python SDK, and initialize `MaasDnaClient`.

### Prerequisites and authentication

Before querying AlphaGenome 2 MaaS, complete the following steps:

1. **Enable the Agent Platform API** (`aiplatform.googleapis.com`) on your consumer
   project:

   ```bash
   gcloud services enable aiplatform.googleapis.com --project=PROJECT_ID
   ```
2. **IAM permissions and Application Default Credentials**:

   - Grant your user account or service account the Agent Platform User (`roles/aiplatform.user`) role on `<var>PROJECT_ID</var>`. If you use service account impersonation (`service_account=...`), your caller credentials also need the Service Account Token Creator (`roles/iam.serviceAccountTokenCreator`) role on the target service account.
   - Authenticate Application Default Credentials (ADC) in your local
     terminal, VM, Gemini Enterprise Agent Platform Workbench, or Colab Enterprise
     environment:

     ```bash
     gcloud auth application-default login
     ```

### Install the Python SDK

The wheel file for the AlphaGenome 2 Cloud SDK (`v0.1.4`) is available
in the
[GoogleCloudPlatform GitHub repository](https://github.com/GoogleCloudPlatform/vertex-ai-samples/blob/main/notebooks/community/alphagenome/whl/alphagenomev2_cloud_sdk-0.1.4-py3-none-any.whl).
In a Python 3.11 or later virtual environment, download and install the wheel
file (which also installs `alphagenome>=2.0.0` and required dependencies):

```bash
# Download the AlphaGenome 2 Cloud SDK wheel file
wget -q https://github.com/GoogleCloudPlatform/vertex-ai-samples/raw/main/notebooks/community/alphagenome/whl/alphagenomev2_cloud_sdk-0.1.4-py3-none-any.whl

# Install the wheel file and runtime dependencies
pip install alphagenomev2_cloud_sdk-0.1.4-py3-none-any.whl
```

### Initialize the MaaS client

Initialize `MaasDnaClient` by passing your Google Cloud `<var>PROJECT_ID</var>`
and `location="us-central1"`. `MaasDnaClient` implements the standard
AlphaGenome 2 `DnaModel` interface:

```python
import alphagenomev2_cloud_sdk

# Replace PROJECT_ID with your Google Cloud project ID.
dna_model = alphagenomev2_cloud_sdk.create_maas_client(
    project="PROJECT_ID",
    location="us-central1",
    # service_account="SERVICE_ACCOUNT_EMAIL",  # Optional: SA impersonation
    model_version=alphagenomev2_cloud_sdk.ModelVersion.ALL_FOLDS,  # Or ModelVersion.FOLD_1
)
```

Replace the following:

- `<var>PROJECT_ID</var>`: Your Google Cloud project ID.
- `<var>SERVICE_ACCOUNT_EMAIL</var>`: Optional email address of a service account to impersonate.

## Examples and tutorials

Because `dna_model` implements the standard AlphaGenome 2 `DnaModel`
interface (`predict_sequence`, `predict_interval`, `predict_variant`,
`score_variant`, `score_interval`, `score_ism_variants`, `encode_cells`,
`supported_conditions`, and `observed_metadata`), you can run the examples,
tutorials, and biological workflows in the
[official Google DeepMind AlphaGenome documentation](https://www.alphagenomedocs.com)
directly against AlphaGenome 2 MaaS (`predict_interval_gradients` isn't
available on Managed MaaS):

1. Install `alphagenomev2_cloud_sdk-0.1.4-py3-none-any.whl` as shown in [Install the Python SDK](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/open-models/alphagenome-2-maas.md.txt#install-the-python-sdk).
2. Replace the `dna_client.create(...)` client initialization step in the example with `dna_model = alphagenomev2_cloud_sdk.create_maas_client(project="PROJECT_ID", location="us-central1")` as shown in [Initialize the MaaS client](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/open-models/alphagenome-2-maas.md.txt#initialize-the-maas-client).
3. Run all downstream prediction, variant scoring, *in silico* mutagenesis, single-cell conditioning (`cell_conditioning`), and visualization code unchanged.

## Science Token metering and usage tracking

AlphaGenome 2 MaaS meters consumption under the **AlphaGenome2 -
Science Tokens** SKU (`CF73-DCB1-B1E7`, metric
`com.googleapis/services/aiplatform/Publisher/prediction/input_tokens`) billed
to your consumer Google Cloud project.

### Science Token calculation

For DNA prediction and scoring calls (`predict_sequence`, `predict_interval`,
`predict_variant`, `score_interval`, and `score_variant`), Science Tokens are
calculated per request instance based on input DNA context length (**1 Science
Token = 1,000 input base pairs** , rounded up using `ceil(base_pairs / 1,000)`),
independent of the number of requested output modalities. Because each call
evaluates one condition, querying multiple conditions bills each condition
separately (for example, scoring 50 conditions at 1 MB consumes 52,450 Science
Tokens):

| Input sequence context window | Base pairs | Science Tokens (`inputTokenCount`) |
|---|---|---|
| `SEQUENCE_LENGTH_16KB` | `16,384 bp` | **17** |
| `SEQUENCE_LENGTH_100KB` | `131,072 bp` | **132** |
| `SEQUENCE_LENGTH_500KB` | `524,288 bp` | **525** |
| `SEQUENCE_LENGTH_1MB` | `1,048,576 bp` | **1,049** |

> [!NOTE]
> **Note:** Because `score_ism_variants` splits `ism_interval` into 10 bp chunks on the client (`MAX_ISM_INTERVAL_WIDTH = 10`) and sends a separate request for each chunk, every 10 bp chunk is billed for the full `interval` context window (`ceil(base_pairs / 1,000)` Science Tokens) and counts as 1 QPM request. For example, scoring a 50 bp `ism_interval` within a 1 MB context window sends 5 requests and consumes 5 x 1,049 = 5,245 Science Tokens.

Metadata and helper operations (`supported_conditions()`, `observed_metadata()`,
and `encode_cells()`) don't consume DNA Science Tokens.

### Inspect token usage in Python

`MaasDnaClient` automatically captures the `usageMetadata` envelope returned by
the MaaS endpoint on every request. `last_usage_metadata` reflects only the most
recent HTTP request; for calls that issue multiple requests (such as
`score_ism_variants` or batch methods), call `reset_usage_metadata()` beforehand
and read `total_usage_metadata` afterward:

```python
# Inspect token consumption from the most recent HTTP request
print("Last HTTP request token usage:", dna_model.last_usage_metadata)
# Example for 1 MB: {'inputTokenCount': 1049, 'outputTokenCount': 0}

# Inspect cumulative token consumption across the client session
print("Cumulative session token usage:", dna_model.total_usage_metadata)

# Reset cumulative session counters at any time
dna_model.reset_usage_metadata()
```

For commercial pricing details,
[contact a Google Cloud sales specialist](https://cloud.google.com/contact) or
work with your Google Cloud account team.

## Limitations

AlphaGenome 2 MaaS has the following limitations:

- **Research use only**: AlphaGenome 2 is a research tool and isn't intended or cleared for clinical diagnostic use.
- **1 MB context horizon and sequence alphabet** : A single prediction query can't capture long-range genomic interactions spanning more than 1 MB (`1,048,576 bp`). Input sequences accept only `A`, `C`, `G`, `T`, and `N` characters.
- **Single-cell conditioning scope and batch limits** : Dynamic single-cell conditioning (`cell_conditioning`) and cell encoding (`encode_cells`) support Human (`Organism.HOMO_SAPIENS`) data only and don't perform batch-effect correction across datasets. Passing `cell_conditioning=adata` to prediction or variant-scoring methods enforces a hard maximum of 256 cells (`MAX_CONDITIONING_CELLS = 256`) and doesn't auto-batch. Passing more than 256 cells raises `ValueError`; subsample larger populations using `gene_counts_condition.subsample(adata, n_cells=256, label_key=...)` from `alphagenome.models.v2`. By contrast, `dna_model.encode_cells(adata)` automatically batches larger `AnnData` inputs into parallel requests of at most 256 cells.
- **Variant scorer limits** : Each `score_variant` call accepts at most 23 scorers (`MAX_VARIANT_SCORERS_PER_REQUEST = 23`). `PolyadenylationScorer` (`RECOMMENDED_VARIANT_SCORERS["POLYADENYLATION"]`) is supported for Human (`Organism.HOMO_SAPIENS`) only and raises `ValueError` on Mouse (`Organism.MUS_MUSCULUS`).
- **No fine-tuning or input gradients** : Fine-tuning on private training datasets isn't supported; use `cell_conditioning` to adapt to unseen human cell states without retraining. Managed MaaS doesn't support `predict_interval_gradients`.
- **Online stateless inference**: AlphaGenome 2 MaaS is scoped to stateless online inference (1 DNA sequence, interval, or variant instance per HTTP request, with batch calls parallelized automatically by the client SDK; no customer Cloud Storage bucket I/O).

## Scientific reference directory

The following table lists primary reference materials, literature, and resources
for AlphaGenome 2:

| Resource type | Title and link | Description |
|---|---|---|
| Pre-print article | [AlphaGenome 2 predicts regulatory activity and variant effects across cell states, bioRxiv (November 2026)](https://doi.org/10.64898/2026.11.11.765857) | Scientific manuscript detailing the AlphaGenome 2 conditional architecture, expression conditioning, imputation, and benchmarks. |
| Announcement | [AlphaGenome 2: Deciphering how cells read DNA to better understand disease, Google DeepMind blog (November 2026)](https://deepmind.google/blog/alphagenome-2-deciphering-how-cells-read-dna-to-better-understand-disease/) | Release blog post outlining cell-type-specific variant prediction and single-cell conditioning capabilities. |
| Overview hub | [AlphaGenome, Google DeepMind](https://deepmind.google/science/alphagenome/) | Overview of AlphaGenome 2, AlphaGenome Atlas, case studies, and research tools. |
| API documentation | [AlphaGenome documentation](https://www.alphagenomedocs.com) | Technical documentation, Python SDK reference, tutorials, and the [AlphaGenome 1 migration guide](https://www.alphagenomedocs.com/user_guides/ag1_vs_ag2.html). |
| AlphaGenome 1 paper | [Advancing regulatory variant effect prediction with AlphaGenome, *Nature* (January 2026)](https://doi.org/10.1038/s41586-025-10014-0) | Peer-reviewed publication for the AlphaGenome 1 model. |
| AlphaGenome Atlas pre-print | [AlphaGenome Atlas: in silico mutagenesis of the entire human genome improves prioritization and interpretation of non-coding variants, medRxiv (September 2026)](https://doi.org/10.64898/2026.09.16.26363192) | Manuscript describing genome-wide in silico mutagenesis across 9 billion human variants and the AlphaGenome Variant Impact (AVI) score. |

## Support and feedback

You can get documentation and support for AlphaGenome 2 MaaS in the
following ways:

- **API reference and tutorials** : See the [official AlphaGenome documentation](https://www.alphagenomedocs.com) for full API schemas, data structures, and biological tutorials. To run any official tutorial against AlphaGenome 2 MaaS, replace the `dna_client` initialization step with `create_maas_client(project="PROJECT_ID", location="us-central1")` as shown in [Initialize the MaaS client](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/open-models/alphagenome-2-maas.md.txt#initialize-the-maas-client).
- **Genomic science and model output support** : Join the [AlphaGenome Community Forum](https://www.alphagenomecommunity.com/) for questions about biology, model predictions, and interpretation.
- **Platform and quota support** : For questions about QPM rate quotas (`alphagenome2-maas`) or Science Token billing, contact your Google Cloud account team or open a case with Cloud Customer Care.

## What's next

- Deploy dedicated GPU endpoints with [AlphaGenome 2 (Self-deployed)](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/open-models/alphagenome-2-self-deployed.md.txt).
- Learn about GA self-deployed versions in [AlphaGenome 1](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/open-models/alphagenome.md.txt).