
NVIDIA/BioNeMo OpenFold3
NVIDIA NIM for OpenFold3 diffusion-based structure prediction.
OpenFold3 is an all-atom biomolecular complex structure prediction model from the OpenFold Consortium and the AlQuraishi Laboratory, a PyTorch implementation of the JAX-based AlphaFold3 model that extends structure prediction to complete biomolecular complexes including proteins, DNA, RNA, and small molecule ligands. It takes protein, DNA, RNA, and ligand sequences as input — plus optional MSAs and, for proteins, structural templates in CIF format — and outputs the all-atom 3D structure of the complex.
Call BioNeMo OpenFold3 on Baseten using the NIM structure prediction route.
Input
import os
import requests
MODEL_ID = os.environ["BASETEN_MODEL_ID"]
BASETEN_API_KEY = os.environ["BASETEN_API_KEY"]
BASETEN_URL = (
f"https://model-{MODEL_ID}.api.baseten.co/environments/production/sync"
"/biology/openfold/openfold3/predict"
)
sequence = "LSDEDFKAVFGMTRSAFANLPLWKQQNLKKEKGLF"
minimal_msa = f">query\n{sequence}\n"
payload = {
"inputs": [
{
"input_id": "villin_hp35_test",
"molecules": [
{
"type": "protein",
"sequence": sequence,
"msa": {
"main": {
"a3m": {
"alignment": minimal_msa,
"format": "a3m",
}
}
},
}
],
"diffusion_samples": 1,
"output_format": "pdb",
}
]
}
response = requests.post(
BASETEN_URL,
headers={
"Authorization": f"Bearer {BASETEN_API_KEY}",
"Content-Type": "application/json",
},
json=payload,
timeout=300,
)
response.raise_for_status()
result = response.json()
print(result)
Output
{
"outputs": [
{
"input_id": "villin_hp35_test",
"structures_with_scores": [
{
"structure": "<PDB text>",
"format": "pdb",
"confidence_score": 0.85
}
]
}
]
}