# BindCraft, PyRosetta-free
Hunt for de novo miniprotein binders by AlphaFold2 hallucination, without PyRosetta filters.
- Job type: `FREE_BINDCRAFT`
- Task: Binder design
- Price: 10 credits per accepted design
- Workload: Holds a GPU until enough designs pass, often for hours; the count you ask for is a budget, not a batch size.
- Automatic routing: BindCraft hallucinates against AlphaFold2 and holds a GPU until it accepts a design, which finds binders batch diffusion misses.
- Behavior and limits: Hours per accepted design. `number_of_final_designs` is a budget, not a batch size.
- Hotspot input: `params.hotspots`, author numbered
- Source: Martin Pacesa, EPFL (https://github.com/martinpacesa/BindCraft)
- Paper: Pacesa et al., One-shot design of functional protein binders with BindCraft. Nature 2025.

## Example

### CLI

```bash
phi jobs submit FREE_BINDCRAFT \
  --input target_pdb=@target.pdb \
  --input target_chain_id=A \
  --param hotspots=A150,A154,A156 \
  --param number_of_final_designs=1 \
  --param max_trajectories=15 \
  --param binder_length_min=70 \
  --wait --out out
```

### Python

```python
from phi import PhiClient

with PhiClient() as phi:
    target_pdb = phi.files.upload(path="target.pdb")
    job = phi.jobs.submit(
        "FREE_BINDCRAFT",
        inputs={
        "target_pdb_gcs_uri": target_pdb,
        "target_chain_id": "A"
        },
        params={
        "hotspots": [
                "A150",
                "A154",
                "A156"
        ],
        "number_of_final_designs": 1,
        "max_trajectories": 15,
        "binder_length_min": 70
        },
    )
    print(phi.jobs.wait(job.job_id).status)
```

### HTTP

```bash
curl -X POST https://api.dynophi.com/v1/jobs \
  -H "x-api-key: $PHI_KEY" -H "content-type: application/json" \
  -d '{
  "job_type": "FREE_BINDCRAFT",
  "inputs": {
    "target_pdb_gcs_uri": "<gs:// uri from POST /v1/uploads/url>",
    "target_chain_id": "A"
  },
  "params": {
    "hotspots": [
      "A150",
      "A154",
      "A156"
    ],
    "number_of_final_designs": 1,
    "max_trajectories": 15,
    "binder_length_min": 70
  }
}'
```

## Parameters

| Name | Type | Default | Description |
|---|---|---|---|
| `gpu` | string one of a100, t4, a100_80gb, h100, a100_or_h100, a100_80gb_or_h100, a100_preferred, h100_preferred | `null` | Per-job GPU class override. |
| `binder_length_min` (essential) | integer | `70` | Minimum designed binder length. |
| `binder_length_max` (essential) | integer | `100` | Maximum designed binder length. |
| `number_of_final_designs` (essential) | integer | `1` | Designs passing every filter to hunt for before the job stops (BindCraft number_of_final_designs). Upstream suggests 100 before ordering, which takes hundreds of trajectories. |
| `max_trajectories` (essential) | integer | `15` | Cap on trajectories that fold and relax successfully. BindCraft measures its own cap against these, not against attempts, so a hard target can spend more attempts than this and the stage timeout is the outer bound. Upstream's default is unbounded, which is not usable for a billed job. |
| `max_attempts` | integer | `null` | Runner-enforced cap on design trajectory attempts started, distinct from max_trajectories (which counts only trajectories that fold and relax). Unset leaves the hunt bounded by max_trajectories and the stage timeout; when set the runner stops BindCraft after this many trajectory starts. |
| `hotspots` (essential) | list of string |  | Target hotspot residue IDs (max 12), e.g. ['A56','A58']. Empty lets AF2 pick the binding site; a small patch narrows the search. |
| `advanced_preset` | string one of default_4stage_multimer, default_4stage_multimer_flexible, default_4stage_multimer_flexible_hardtarget, default_4stage_multimer_hardtarget, default_4stage_multimer_mpnn, default_4stage_multimer_mpnn_flexible, default_4stage_multimer_mpnn_flexible_hardtarget, default_4stage_multimer_mpnn_hardtarget, betasheet_4stage_multimer, betasheet_4stage_multimer_flexible, betasheet_4stage_multimer_flexible_hardtarget, betasheet_4stage_multimer_hardtarget, betasheet_4stage_multimer_mpnn, betasheet_4stage_multimer_mpnn_flexible, betasheet_4stage_multimer_mpnn_flexible_hardtarget, betasheet_4stage_multimer_mpnn_hardtarget, peptide_3stage_multimer, peptide_3stage_multimer_flexible, peptide_3stage_multimer_mpnn, peptide_3stage_multimer_mpnn_flexible | `"default_4stage_multimer"` | BindCraft advanced-settings bundle. 'default' is the general 4-stage protocol, 'betasheet' biases towards beta sheets, 'peptide' is the shorter 3-stage protocol; '_mpnn' fixes the interface during MPNN redesign, '_flexible' drops target template restraints, '_hardtarget' loosens the trajectory acceptance criteria. |
| `filters_preset` | string one of default_filters, relaxed_filters, no_filters, peptide_filters, peptide_relaxed_filters | `"default_filters"` | BindCraft filter thresholds applied to each MPNN design. 'no_filters' accepts everything and is only useful for benchmarking. |
| `rank_by` (essential) | string one of i_pTM, ipSAE | `"i_pTM"` | Metric FreeBindCraft ranks accepted designs by. 'i_pTM' matches the internal BINDCRAFT runner; 'ipSAE' is FreeBindCraft's native interface score. |

## Inputs

| Name | Type | Default | Description |
|---|---|---|---|
| `target_pdb` | string | `null` | Target structure as base64-encoded PDB (CIF is auto-converted). Provide this or target_pdb_gcs_uri. |
| `target_pdb_gcs_uri` (essential) | string | `null` | gs:// URI to the target PDB. Provide this or target_pdb. |
| `target_chain_id` (essential) | string | `"A"` | Chain ID(s) of the target in the structure (BindCraft 'chains'). Comma-separate to design against several chains, e.g. 'A,B'; every other chain in the PDB is ignored. |

---
Source: https://dynophi.com/docs/models/FREE_BINDCRAFT. From the live API schema and phi-api's model catalog, 2026-11-23.