Please rotate your device

To continue exploring this website, please rotate your device to a vertical orientation

BioNeMo Boltz2

NVIDIA/BioNeMo Boltz2

NVIDIA NIM for Boltz-2 structure prediction and binding-affinity prediction.

biology

BioNeMo Boltz-2 is a biomolecular foundation model that jointly models complex structures and binding affinities, going beyond AlphaFold3 and Boltz-1. It's the first deep learning model to approach the accuracy of physics-based free-energy perturbation methods while running roughly 1000x faster, making practical in silico screening feasible for early-stage drug discovery. It takes molecular inputs (proteins, DNA/RNA, and ligands, defined via YAML) and predicts 3D structures along with binding affinity scores, supporting both single-molecule predictions and complex multi-molecular assemblies for applications ranging from structural biology to drug discovery.

Call BioNeMo Boltz2 on Baseten using the NIM route for structure prediction.

Input

python
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/mit/boltz2/predict"
)

sequence = "GIVEQCCTSICSLYQLENYCN"

payload = {
    "polymers": [
        {
            "id": "A",
            "molecule_type": "protein",
            "sequence": sequence,
        }
    ],
    "recycling_steps": 3,
    "sampling_steps": 50,
    "diffusion_samples": 1,
    "step_scale": 1.638,
    "output_format": "mmcif",
}

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

json
{
  "structures": [
    {
      "structure": "<mmcif text>",
      "format": "mmcif"
    }
  ],
  "confidence_scores": [
    0.87
  ],
  "metrics": {}
}