Requests to this API gdmscience.googleapis.com method google.gdm.gdmscience.alphagenome.v1main.DnaModelService.PredictVariant are blocked

Hi, I’m trying to use AlphaGenome according to Installation — AlphaGenome. I added API key to secrets as recommended, and tried to run the following scripts:

“from alphagenome.data import genome
from alphagenome.models import dna_client
from alphagenome.visualization import plot_components
import matplotlib.pyplot as plt

API_KEY = ‘MyAPIKey’
model = dna_client.create(API_KEY)

interval = genome.Interval(chromosome=‘chr22’, start=35677410, end=36725986)
variant = genome.Variant(
chromosome=‘chr22’,
position=36201698,
reference_bases=‘A’,
alternate_bases=‘C’,
)

outputs = model.predict_variant(
interval=interval,
variant=variant,
ontology_terms=[‘UBERON:0001157’],
requested_outputs=[dna_client.OutputType.RNA_SEQ],
)

, which is an example in google-deepmind/alphagenome: This API provides programmatic access to the AlphaGenome model developed by Google DeepMind. However I got the error as follows:

“grpc._channel._MultiThreadedRendezvous: <_MultiThreadedRendezvous of RPC that terminated with:
status = StatusCode.PERMISSION_DENIED
details = “Requests to this API Problems in using API method google.gdm.gdmscience.alphagenome.v1main.DnaModelService.PredictVariant are blocked.”
debug_error_string = “UNKNOWN:Error received from peer ipv4:142.250.74.74:443 {grpc_message:“Requests to this API Problems in using API method google.gdm.gdmscience.alphagenome.v1main.DnaModelService.PredictVariant are blocked.”, grpc_status:7}”

, which I raised in predict_variant step. I also checked that “Google DeepMind Science API“ is enabled. Could you please give some suggestions on this?

Hello Lei_Xia,

Thanks for reaching out. In order to assist further may I ask if you signed up and generated API key via the website here?

Hi,

Thanks for your quick response. I think I generated the key on other website. I have generated a new one, and I’ll try whether it works. Thanks again!

Best regards,
Lei

Daniel Scott via AlphaGenome <notifications@watermelon.discoursemail.com>于2025年8月29日 周五14:04写道: