CellGemma API · Google DeepMind's cell response model
CellGemma API
Predict how a cell responds to a drug or a gene knockdown from your own code. One HTTP request with an API key: no GPU to rent, no model to host.
A first request
Make a key on the API keys page, put it in COROLLARY_API_KEY, and send the inputs. This one asks what happens in a K562 cell when MYC is knocked down, and is a short run: a minute or two.
curl https://corollary-labs.com/api/v1/models/cellgemma/runs \
-H "Authorization: Bearer $COROLLARY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"inputs": {
"dataset": "k562",
"perturbation": "MYC"
}
}'CellGemma writes for a minute or more, which is longer than a request should stay open, so the answer is a run that is still going:
{
"id": "job_x7k2p9q4",
"object": "model_run",
"model": "cellgemma",
"status": "running",
"outputs": null,
"error": null,
"poll_url": "https://corollary-labs.com/api/v1/model-runs/job_x7k2p9q4"
}What comes back
Read the poll_url every few seconds. When the status is succeeded, the outputs hold a table of genes, most changed first in each direction, and a summary in Markdown. This is the response to the request above, made on 2 December 2026, with the table cut to three rows each way:
{
"id": "job_x7k2p9q4",
"object": "model_run",
"model": "cellgemma",
"status": "succeeded",
"outputs": {
"table": {
"columns": ["Direction","Model rank","Gene","Predicted LFC","Control expression","Predicted expression"],
"rows": [
["up",1,"GYPB",0.5381,0.9823,1.5205],
["up",2,"BLVRB",0.4828,0.4427,0.9255],
["up",3,"TRAPPC6A",0.5122,0.6072,1.1195],
["down",1,"VIM",-0.5076,2.3483,1.8407],
["down",2,"PSMG1",-0.6348,1.9637,1.3289],
["down",3,"PAICS",-0.702,2.0746,1.3726]
]
},
"markdown": "**CellGemma (E4B), MYC knockdown in K562 (CVCL_0004) cells** … the model listed **291 genes going up and 221 going down** …"
},
"error": null,
"poll_url": null
}The log-fold change comes from the decoder trained for that dataset, on that dataset's own scale. A prediction starts from one untreated cell and the text is sampled, so send a seed and a cell_index when you need to repeat or vary a run.
A drug instead of a gene
For a small molecule in A549 cells, choose the Tahoe decoder and send the drug's name, its SMILES and a concentration. The model reads the structure as well as the name. A drug run usually writes its full list, so allow about ten minutes.
curl https://corollary-labs.com/api/v1/models/cellgemma/runs \
-H "Authorization: Bearer $COROLLARY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"inputs": {
"dataset": "tahoe",
"perturbation": "Panobinostat",
"smiles": "Cc1[nH]c2ccccc2c1CCNCc1ccc(/C=C/C(=O)NO)cc1",
"concentration": "0.5 uM"
}
}'Inputs
datasettahoe | k562, required, default tahoeWhich dataset's control cells and decoder to use. The repository ships eleven more decoders but no untreated cells for them, so they cannot be run from it.
perturbationtext, requiredFor Tahoe, the drug's name. For K562, one HGNC gene symbol; it needs an entry in CellGemma's knowledge graph, which 19,881 genes have.
smilessmilesRequired for a drug: the model reads the structure as well as the name.
concentrationtextA number and its unit, as in training: 0.5 uM. Required for a drug.
cell_indexnumber, default 0Which of the repository's 100 untreated cells for this dataset to start from. Different cells give different predictions.
top_genesnumber, default 20How many of the model's up and its down genes the table shows, most changed first.
max_new_tokensnumber, default 8192Advanced. The authors evaluate with 8,192, which is the default and what takes about ten minutes. A smaller number ends the list sooner, but the decoder is told how long the list is, so its log-fold changes come from the shorter list and differ from a full-length run; the genes are the start of the list.
seednumber, default 0The text is sampled, as the authors evaluate it. The seed fixes the sampler's random draws, so the same seed should repeat a result (exact repeats on a GPU are not guaranteed); another seed is another sample.
The same list, as JSON: GET https://corollary-labs.com/api/v1/models/cellgemma.
Hosted, or host it yourself
CellGemma's weights are open, so you can run it on your own GPU; it needs about 16 GB of GPU memory, plus the control cells, the knowledge-graph sentences and a decoder for each dataset. On 2 December 2026, its page on Hugging Face said that no inference provider had deployed it, and Google hosts a demo Space for trying it by hand.
Corollary runs the model card's own code, pinned to one commit of the release, behind the same API as every other model here. A prediction can also go straight into the research agent, which can run CellGemma and carry the gene list into the next analysis.
Questions
Is there an API for CellGemma?
Yes. On Corollary, CellGemma runs behind an HTTP API: POST https://corollary-labs.com/api/v1/models/cellgemma/runs with an API key and the inputs, then read the poll_url until the run has finished. There is no GPU to rent and no model to host.
Who else serves CellGemma?
On 2 December 2026, the model's page on Hugging Face said that no inference provider had deployed it. Google hosts a demo Space for trying the model, and the weights are open, so you can also serve it yourself on a GPU with about 16 GB of memory. Corollary is a hosted alternative with an API key, usage counted in credits, and the same request shape as every other model here.
How long does a call take?
The request itself answers in about a second with a run id. The run is a background job: the K562 knockdown on this page took 89 seconds from request to result, and a Tahoe drug prediction that writes its full list takes about nine to ten minutes.
What does a call cost?
A run is priced by the GPU time it uses, in credits: about 252 credits for a full ten-minute drug run, and less for a run that ends sooner. A free account includes 30,000 credits a month, and API calls spend the same balance as the website.
Which predictions can the API make?
Two of the model's thirteen dataset decoders run here, because the repository ships untreated control cells for only two: small-molecule treatments in A549 cells (Tahoe-100M) and CRISPRi gene knockdowns in K562 cells. The other eleven cannot be run from the released files.
Can I use the predictions commercially or clinically?
Not clinically: the model card says research use only, and a prediction needs experimental validation. The weights are Apache 2.0, but the model was trained on some datasets with non-commercial or academic-only terms, and whether those reach the weights is not settled, so check before any commercial use.