> ## Documentation Index
> Fetch the complete documentation index at: https://proto.evodesign.org/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Boltz-2 Binding Affinity

> Score protein-ligand binding via Boltz-2 binder probability or predicted log10 IC50.

![Boltz-2 Binding Affinity](https://proto-bio.github.io/proto-assets/images/constraint/boltz2-affinity/hero.png)

> [!NOTE]
>
> **License:** Boltz-2 is open source and free for academic and commercial use under an MIT license. Please refer to [the license](https://github.com/jwohlwend/boltz/blob/main/LICENSE) for full terms.

This constraint is open source. Any third-party models, product names, or trademarks referenced are the property of their respective owners, and Proto is not affiliated with them.

***

&#x20;Tools Used Tools Used  Source Source  Cite Cite

![](https://proto-bio.github.io/proto-assets/images/tool/boltz2/social.png)

&#x20;Go to Tool Page

[Open](https://proto.evodesign.org/docs/tools/structure-prediction/boltz2.md)

![Proto](https://mintcdn.com/bio-pro/cMLt8hAqaP9M3LKy/assets/logo/logo-light.svg?fit=max\&auto=format\&n=cMLt8hAqaP9M3LKy\&q=85\&s=f5e5dfd1b8f9b9db3a0be0e2eb01f678)

evo-design/proto-language

&#x20;View source

[Open](https://github.com/evo-design/proto-language/blob/1a97e675c7e5e4ae0e92be91b1bb7b49f1331104/proto_language/constraint/protein_structure/boltz2_affinity_constraint.py#L82)

@articlepassaro2025boltz2\@articlewohlwend2024boltz1

```bibtex theme={null}
@article{passaro2025boltz2,
  title={Boltz-2: Towards Accurate and Efficient Binding Affinity Prediction},
  author={Passaro, Saro and Corso, Gabriele and Wohlwend, Jeremy and Reveiz, Mateo and Thaler, Stephan and Somnath, Vignesh Ram and Getz, Noah and Portnoi, Tally and Roy, Julien and St{\"a}rk, Hannes and Kwabi-Addo, David and Beaini, Dominique and Jaakkola, Tommi and Barzilay, Regina},
  journal={bioRxiv},
  year={2025},
  doi={10.1101/2025.06.14.659707},
  publisher={Cold Spring Harbor Laboratory}
}

@article{wohlwend2024boltz1,
  title={Boltz-1: Democratizing Biomolecular Interaction Modeling},
  author={Wohlwend, Jeremy and Corso, Gabriele and Passaro, Saro and Reveiz, Mateo and Leidal, Ken and Swanson, Wojtek and Turnbull, Robert and Shuaibi, Muhammed and Ahdritz, Gustaf and Getz, Gad and Jaakkola, Tommi and Barzilay, Regina},
  journal={bioRxiv},
  year={2024},
  doi={10.1101/2024.11.19.624167},
  publisher={Cold Spring Harbor Laboratory}
}
```

&#x20;Copy citation

Constraint contributors[![](https://avatars.githubusercontent.com/u/61667248?v=4\&s=64)adititm](https://github.com/adititm)[![](https://avatars.githubusercontent.com/u/21143637?v=4\&s=64)bviggiano](https://github.com/bviggiano)
Score protein-ligand complexes with Boltz-2 affinity predictions.

## API Reference

ConfigBoltz2AffinityConstraintConfig[ Source](https://github.com/evo-design/proto-language/blob/1a97e675c7e5e4ae0e92be91b1bb7b49f1331104/proto_language/constraint/protein_structure/boltz2_affinity_constraint.py#L31)

Configuration for the Boltz-2 binding-affinity constraint.

**metric** `enum` (default: probability)

'probability' (1 - binder probability) or 'affinity' (log10 IC50 μM vs target).

Options: `probability`, `affinity`

**target\_affinity** `number` (default: -1.0)

log10 IC50 (μM) at or below which the affinity score is 0 (-1.0 = 100 nM).

**affinity\_tolerance** `number` (default: 3.0)

log10 units above target\_affinity at which the affinity score reaches 1.0.

**boltz2\_affinity\_config** `Boltz2AffinityConfig`

Boltz-2 affinity tool configuration.

ReturnsConstraintOutput

Per-complex score in `[0.0, 1.0]` (0 = strong predicted
binder). The predicted pose is attached to the first slot. `metadata` carries
`affinity_pred_value` (log10 IC50 μM) and `affinity_probability_binary`.

## Usage

```python python icon="python" theme={null}
from proto_language.core import Constraint
from proto_language.constraint import boltz2_affinity_constraint, Boltz2AffinityConstraintConfig

constraint = Constraint(
    inputs=[segment],
    function=boltz2_affinity_constraint,
    function_config=Boltz2AffinityConstraintConfig(
        # Configure parameters here
    ),
)

scores = constraint.evaluate()
```

## Metadata

| Property | Value |
| - | - |
| Key | `boltz2-affinity` |
| Function | `boltz2_affinity_constraint` |
| Category | `protein_structure` |
| Mode | `discrete` |
| Uses GPU | `True` |
| Supported Types | `protein`, `ligand` |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.