How to get an AlphaGenome API key

how_to
Author

Temi

Published

July 3, 2025

Introduction

For the time being, Google requires a user to have an API key to access the AlphaGenome model. To get this key, follow the steps below.

Steps

1.

Create a google account (i.e. @gmail.com). You should be logged in to this account. Other domains e.g. @ucsf.edu will not work.

2.

Visit this website

You should be taken to a page that looks like this:

AlphaGenome’s website front page

Your google account should be displayed in the top right corner.

3.

Click on the Get API Key link. You should be taken to a page that looks like this:

AlphaGenome user-specific API page

Fill in the details and click on Create API Key.

4.

You should receive an API Key that you can copy and paste for access to the model. You can always go back to find your key by clicking on the Get API Key in step 1.

5.

To use the API key,

```{python}
#| echo: fenced
from alphagenome.models import dna_client

my_api_key = "<<this is the API key that I created>>"
alphagenome_model = dna_client.create(my_api_key)
```

From here, you can make predictions as in :

```{python}
alphagenome_model.predict_sequence("...ACGTGAAATA...")
```

Reuse

© HakyImLab and Listed Authors - CC BY 4.0 for Text and figures - MIT for code