AlphaGenome 2 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, 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.
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, andSC_GENE_EXPRESSION_DENOISED, which requirescell_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.AnnDatawith raw integer UMI counts and EnsemblENSG...gene IDs) by passingcell_conditioning. - Extract latent single-cell embeddings (
CELL_EMBEDDINGS) usingdna_model.encode_cells(adata).
- Condition DNA sequence and variant predictions on custom single-cell
RNA-seq count matrices (
- Model fold selection: Query either the full post-trained ensemble
(
ModelVersion.ALL_FOLDS, default) or cross-validation fold 1 (ModelVersion.FOLD_1). When usingModelVersion.FOLD_1withencode_cellsorcell_conditioning, the cell encoder masks genes outside fold 1 training intervals. - Built-in Science Token usage tracking:
MaasDnaClientautomatically records per-request and cumulative session token usage throughdna_model.last_usage_metadataanddna_model.total_usage_metadata.
Differences from AlphaGenome 1
Compared with AlphaGenome 1, 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 usingsupported_conditions(). Every output track carries animputation_modelabel (observed,imputed_supported, orimputed_exploratory). - Expression conditioning without fine-tuning: Pass your own human
single-cell RNA-seq count matrix (
anndata.AnnData) throughcell_conditioningto predict regulatory activity and variant effects in unseen cell states, or extract latent embeddings withencode_cells. - Updated modalities and variant scores: Adds
METHYLATION,SC_ATAC,SC_GENE_EXPRESSION, andSC_GENE_EXPRESSION_DENOISED, and removesPROCAP(useCAGEfor transcription start site activity).SPLICE_SITESis condition-specific with five channels per condition,CONTACT_MAPSvalues aren't directly comparable to AlphaGenome 1, and variant scorers returnraw_scoreonly (noquantile_scorecolumn). For full porting details, see Migrating from AlphaGenome 1.
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:
Enable the Agent Platform API (
aiplatform.googleapis.com) on your consumer project:gcloud services enable aiplatform.googleapis.com --project=PROJECT_IDIAM 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:
gcloud auth application-default login
- Grant your user account or service account the
Agent Platform User (
Install the Python SDK
The wheel file for the AlphaGenome 2 Cloud SDK (v0.1.4) is available
in the
GoogleCloudPlatform GitHub repository.
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):
# 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:
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
directly against AlphaGenome 2 MaaS (predict_interval_gradients isn't
available on Managed MaaS):
- Install
alphagenomev2_cloud_sdk-0.1.4-py3-none-any.whlas shown in Install the Python SDK. - Replace the
dna_client.create(...)client initialization step in the example withdna_model = alphagenomev2_cloud_sdk.create_maas_client(project="PROJECT_ID", location="us-central1")as shown in Initialize the MaaS client. - 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 |
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:
# 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 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 onlyA,C,G,T, andNcharacters. - 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. Passingcell_conditioning=adatato 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 raisesValueError; subsample larger populations usinggene_counts_condition.subsample(adata, n_cells=256, label_key=...)fromalphagenome.models.v2. By contrast,dna_model.encode_cells(adata)automatically batches largerAnnDatainputs into parallel requests of at most 256 cells. - Variant scorer limits: Each
score_variantcall 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 raisesValueErroron Mouse (Organism.MUS_MUSCULUS). - No fine-tuning or input gradients: Fine-tuning on private training
datasets isn't supported; use
cell_conditioningto adapt to unseen human cell states without retraining. Managed MaaS doesn't supportpredict_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) | 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) | Release blog post outlining cell-type-specific variant prediction and single-cell conditioning capabilities. |
| Overview hub | AlphaGenome, Google DeepMind | Overview of AlphaGenome 2, AlphaGenome Atlas, case studies, and research tools. |
| API documentation | AlphaGenome documentation | Technical documentation, Python SDK reference, tutorials, and the AlphaGenome 1 migration guide. |
| AlphaGenome 1 paper | Advancing regulatory variant effect prediction with AlphaGenome, Nature (January 2026) | 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) | 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
for full API schemas, data structures, and biological tutorials. To run any
official tutorial against AlphaGenome 2 MaaS, replace the
dna_clientinitialization step withcreate_maas_client(project="PROJECT_ID", location="us-central1")as shown in Initialize the MaaS client. - Genomic science and model output support: Join the AlphaGenome Community Forum 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).
- Learn about GA self-deployed versions in AlphaGenome 1.