Boltz-2 NIM API Reference
This documentation contains the API reference for the Boltz-2 NIM.
OpenAPI Specification
You can download the complete OpenAPI Specification for the Boltz-2 NIM here.
Predict a Protein Structure
Endpoint path: /biology/mit/boltz2/predict
Request type: post
Input Parameters
-
polymers (list[Polymer]): Required. A list of polymers (DNA, RNA, or Protein). Minimum 1, maximum 5 polymers allowed. Each polymer contains:id (string): Optional. Unique identifier for the polymer chain. Can be either a single letter (A-Z) or a PDB-style ID (4 alphanumeric characters).molecule_type (string): Required. Type of molecule - “dna”, “rna”, or “protein”.sequence (string): Required. The sequence of the polymer. Must be 1-4,096 characters and contain only valid characters for the molecule type.cyclic (boolean): Optional (default: false). Whether the polymer forms a cyclic structure.msa (dictionary): Optional. Multiple Sequence Alignments for protein molecules only. This nested dictionary contains a mapping of database names to alignment formats and records (for example{"database_1" : {"A3M" : {"format" : "A3M", "alignment" : ">1\nMVNIDIAIAMAI", "rank" : 0}}}).modifications (list[Modification]): Optional. Chemical modifications to specific residues in the sequence. Each modification contains:ccd (string): Required. Chemical Component Dictionary (CCD) ID of the modification (1-3 alphanumeric characters).position (int): Required. The 1-based index of the residue to modify.
-
ligands (list[Ligand]): Optional (default: empty list). A list of ligands. Maximum 5 ligands allowed. Each ligand contains:id (string): Optional. A chain ID for the ligand.ccd (string): Optional. Chemical Component Dictionary (CCD) code for the ligand (1-3 alphanumeric characters).smiles (string): Optional. SMILES string representation of the ligand. Either CCD or SMILES must be provided, but not both.
-
constraints (list[Union[Pocket, Bond]]): Optional (default: empty list). Optional constraints for the prediction. Can be either:- Bond Constraint: Specifies atomic bonds between molecules
constraint_type: “bond”atoms (list[Atom]): List of atoms involved in the bond. Each atom contains:id (string): Optional. Chain identifier for the atom.residue_index (int): Required. Index of the residue containing the atom.atom_name (string): Required. Name of the specific atom.
- Pocket Constraint: Defines binding site interactions
constraint_type: “pocket”binder (string): Required. The ID of the binding molecule.contacts (list[Contact]): Required. List of contacts defining the pocket. Each contact contains:id (string): Optional. Chain identifier for the contact.residue_index (int): Required. Index of the residue in the binding site.
- Bond Constraint: Specifies atomic bonds between molecules
-
recycling_steps (int): Optional (default: 3). The number of recycling steps to use for prediction. Range: 1-6. -
sampling_steps (int): Optional (default: 50). The number of sampling steps to use for prediction. Range: 10-1,000. -
diffusion_samples (int): Optional (default: 1). The number of diffusion samples to use for prediction. Range: 1-5. -
step_scale (float): Optional (default: 1.638). The step size is related to the temperature at which the diffusion process samples the distribution. Lower values increase diversity among samples (recommended between 1 and 2). Range: 0.5-5.0. -
without_potentials (boolean): Optional (default: false). Returns the results without potentials. -
output_format (string): Optional (default: “mmcif”). The output format of the returned structure. Currently only “mmcif” is supported. -
concatenate_msas (boolean): Optional (default: false). Concatenate Multiple Sequence Alignments for a polymer into one alignment.
Outputs
-
structures (list[Structure]): The predicted protein structures. Each structure contains:structure (string): The contents of a single structural prediction in the specified format.format (string): The format of the structure record (currently “mmcif”).name (string): Optional name for the structure.source (string): Optional source file for the structure.
-
confidence_scores (list[float]): Confidence scores for each predicted structure. -
metrics (dictionary): Runtime metrics for the request, useful for debugging and measuring performance.
Example
Curl
Python
Predict a Protein-Ligand Complex
Example With Ligand
Curl
Python
Comprehensive Example with All Features
Example Showing All Possible Input Parameters
Curl
Python
Check Readiness
Endpoint path: /v1/health/ready
Input parameters
None.
Outputs
The output of the endpoint is a JSON response with a value that indicates the readiness of the microservice. When the NIM is ready, it returns the response 200.