# BoltzGen
End-to-end BoltzGen design: diffusion, inverse folding, refolding, ranking and filtering in one job.
- Job type: `BOLTZGEN`
- Task: Binder design
- Price: 10 credits per 100 designs
- Workload: A fixed number of designs; time scales with the count.
- Automatic routing: BoltzGen diffuses, inverse-folds, refolds and ranks in one job, so a batch of candidates comes back already filtered.
- Behavior and limits: Has built-in nanobody and antibody scaffolds, so it can produce VHH as well as miniproteins. Those scaffold protocols require a design spec.
- Hotspot input: `params.hotspots`, author numbered
- Source: Boltz (https://github.com/HannesStark/boltzgen)
- Paper: citation pending

## Example

### CLI

```bash
phi jobs submit BOLTZGEN \
  --input target_cif=@target.cif \
  --input target_chain_id=A \
  --input design_spec_yaml="<design_spec_yaml>" \
  --param protocol=protein-anything \
  --param num_designs=200 \
  --param hotspots=A150,A154,A156 \
  --param binder_length_min=70 \
  --wait --out out
```

### Python

```python
from phi import PhiClient

with PhiClient() as phi:
    target_cif = phi.files.upload(path="target.cif")
    job = phi.jobs.submit(
        "BOLTZGEN",
        inputs={
        "target_cif_gcs_uri": target_cif,
        "target_chain_id": "A",
        "design_spec_yaml": "<design_spec_yaml>"
        },
        params={
        "protocol": "protein-anything",
        "num_designs": 200,
        "hotspots": [
                "A150",
                "A154",
                "A156"
        ],
        "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": "BOLTZGEN",
  "inputs": {
    "target_cif_gcs_uri": "<gs:// uri from POST /v1/uploads/url>",
    "target_chain_id": "A",
    "design_spec_yaml": "<design_spec_yaml>"
  },
  "params": {
    "protocol": "protein-anything",
    "num_designs": 200,
    "hotspots": [
      "A150",
      "A154",
      "A156"
    ],
    "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. |
| `protocol` (essential) | string one of protein-anything, peptide-anything, protein-small_molecule, antibody-anything, nanobody-anything, protein-redesign | `"protein-anything"` | BoltzGen design protocol. |
| `steps` | list of string | `null` | Pipeline steps to run (BoltzGen --steps). Omit to use the job type's default step list. |
| `num_designs` (essential) | integer | `200` | Number of designs to generate. |
| `budget` | integer | `null` | Optional sampling budget override. |
| `hotspots` (essential) | list of string |  | Target hotspot residue IDs (max 12). |
| `inverse_fold_num_sequences` (essential) | integer | `1` | Sequences per backbone in the inverse-folding step. |
| `refolding_rmsd_threshold` | number | `null` | Max refolding RMSD (Angstrom) to keep a design. |
| `alpha` | number | `null` | Scoring blend weight. |
| `save_pdb` | boolean | `false` | Also emit PDB alongside CIF outputs. |
| `diffusion_batch_size` | integer | `null` | Designs per GPU forward pass (BoltzGen --diffusion_batch_size). Designs in a batch share a sampled binder length; omit to use BoltzGen's default. |
| `inverse_fold_avoid` | string | `null` | Amino acids to omit during inverse folding (BoltzGen --inverse_fold_avoid); pass 'empty' to allow all (e.g. keep Cys for nanobody/peptide). |
| `additional_filters` | list of string |  | Extra BoltzGen post-filters passed verbatim (--additional_filters), e.g. ['filter_rmsd_design<2.0']. |
| `config` | list of string |  | BoltzGen --config overrides passed verbatim, e.g. ['filtering filter_bindingsite=true']. |
| `use_kernels` | string one of auto, true, false | `"false"` | BoltzGen --use_kernels (cuEquivariance fused kernels). Defaults off: the cluster's CUDA 12.2 driver cannot run the cu128 sm_90 kernels. Enable after a driver upgrade. |

## Inputs

| Name | Type | Default | Description |
|---|---|---|---|
| `design_spec_files` | list of SpecFile | `null` | Design-spec bundle: the entry YAML plus every file it references (scaffold YAMLs, target/framework structures), each tagged with its relative path. Provide a design spec via this, design_spec_gcs_prefix, or design_spec_yaml. |
| `design_spec_entry` | string | `null` | Relative path (within the bundle) of the YAML to run with `boltzgen run`. Defaults to the sole top-level *.yaml when unambiguous. |
| `design_spec_gcs_prefix` | string | `null` | gs:// prefix whose objects already mirror the design-spec bundle tree (alternative to design_spec_files for large/reused frameworks). Use with design_spec_entry. |
| `design_spec_yaml` (essential) | string | `null` | Inline single-file design spec with no external file references. Sugar for a one-file design_spec_files bundle. |
| `target_cif` | string | `null` | Target structure as base64-encoded CIF (preferred). Falls back to target_cif_gcs_uri, then target_pdb / target_pdb_gcs_uri. |
| `target_cif_gcs_uri` (essential) | string | `null` | gs:// URI to the target CIF. |
| `target_pdb` | string | `null` | Target structure as base64-encoded PDB (CIF is auto-converted). |
| `target_pdb_gcs_uri` | string | `null` | gs:// URI to the target PDB. |
| `target_chain_id` (essential) | string | `"A"` | Chain ID of the target in the structure. |

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