# RFdiffusion 3
Generate all-atom binder backbones against a target with RFdiffusion3.
- Job type: `RFDIFFUSION3`
- Task: Binder design
- Price: 10 credits per 100 designs
- Workload: A fixed number of designs; time scales with the count.
- Behavior and limits: Emits backbones only; score them with PROTEINMPNN plus a folding model afterwards.
- Hotspot input: `params.hotspots`, author numbered
- Source: Baker Lab, RosettaCommons (https://github.com/RosettaCommons)
- Paper: citation pending

## Example

### CLI

```bash
phi jobs submit RFDIFFUSION3 \
  --input target_pdb=@target.pdb \
  --input target_chain_id=A \
  --input target_crop="<target_crop>" \
  --param hotspots=A150,A154,A156 \
  --param num_designs=100 \
  --param binder_length_min=70 \
  --param binder_length_max=100 \
  --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(
        "RFDIFFUSION3",
        inputs={
        "target_pdb_gcs_uri": target_pdb,
        "target_chain_id": "A",
        "target_crop": "<target_crop>"
        },
        params={
        "hotspots": [
                "A150",
                "A154",
                "A156"
        ],
        "num_designs": 100,
        "binder_length_min": 70,
        "binder_length_max": 100
        },
    )
    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": "RFDIFFUSION3",
  "inputs": {
    "target_pdb_gcs_uri": "<gs:// uri from POST /v1/uploads/url>",
    "target_chain_id": "A",
    "target_crop": "<target_crop>"
  },
  "params": {
    "hotspots": [
      "A150",
      "A154",
      "A156"
    ],
    "num_designs": 100,
    "binder_length_min": 70,
    "binder_length_max": 100
  }
}'
```

## 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. |
| `hotspots` (essential) | list of string |  | Target hotspot residue IDs (max 12). |
| `num_designs` (essential) | integer | `100` | Number of backbones to generate. |
| `num_timesteps` (essential) | integer | `200` | Diffusion timesteps. |
| `step_scale` | number | `1.5` | Sampling step scale; lower = lower temperature/diversity. |
| `gamma_0` | number | `0.6` | Noise schedule parameter. |
| `is_non_loopy` | boolean | `true` | Penalize loop-heavy backbones. null leaves it unset for RFD3's native default. |
| `save_pdb` | boolean | `false` | Also emit PDB alongside CIF outputs. |
| `contig` | string | `null` | Advanced: explicit RFdiffusion contig string. |
| `rfd3_batch_size` | integer | `8` | Advanced: designs per diffusion batch. |
| `infer_ori_strategy` | string | `null` | Advanced: target-orientation strategy ('hotspots'/'com'). Defaults to 'hotspots' when hotspots are set, else 'com'. |
| `inpaint_seq` | string | `null` | Advanced: RFdiffusion inpaint_seq spec. |
| `inpaint_str` | string | `null` | Advanced: RFdiffusion inpaint_str spec. |
| `ori_token` | list of number | `null` | Advanced: explicit target-orientation token (3-vector). |
| `use_explicit_ori_token` | boolean | `false` | Advanced: use the supplied ori_token instead of inferring orientation. |
| `select_fixed_atoms` | boolean | string | object | `null` | Atoms held fixed in 3D space. bool, contig string, or {range: atom-spec} dict (e.g. {'A1-2': 'BKBN', 'A3': 'N,CA,C,O,CB'}). |
| `select_unfixed_sequence` | boolean | string | object | `null` | Input regions whose sequence may change during diffusion. bool, contig string, or {range: atom-spec} dict. |
| `unindex` | string | object | `null` | Unindexed motif components whose sequence placement is unknown (scaffolding around active sites). Contig string or {range: atom-spec} dict. |
| `ligand` | string | `null` | Ligand(s) by chemical component name or index (e.g. 'HAX,OAA'). |
| `length` | string | `null` | Total design length constraint: 'min-max' or an integer string. |
| `partial_t` | number | `null` | Partial-diffusion noise level in Angstroms (enables partial diffusion; recommended 5.0-15.0). |
| `redesign_motif_sidechains` | boolean | `null` | Fix motif backbones but redesign their sidechains. |
| `plddt_enhanced` | boolean | `null` | Enable pLDDT enhancement (RFD3 default True). |
| `select_buried` | boolean | string | object | `null` | RASA conditioning: residues/atoms to mark buried. Contig string or dict. |
| `select_partially_buried` | boolean | string | object | `null` | RASA conditioning: residues/atoms to mark partially buried. Contig string or dict. |
| `select_exposed` | boolean | string | object | `null` | RASA conditioning: residues/atoms to mark exposed. Contig string or dict. |
| `select_hbond_donor` | object | `null` | Atom-wise hydrogen-bond donor flags ({range: atom-spec} dict only). |
| `select_hbond_acceptor` | object | `null` | Atom-wise hydrogen-bond acceptor flags ({range: atom-spec} dict only). |
| `cif_parser_args` | object | `null` | Pass-through options for the CIF loader (AtomWorks parser args). |
| `opt_mode` | string one of off, exact, fast | `"off"` | Optimization-kit mode. 'off' runs stock RFdiffusion3 and is the kill switch; 'exact' is bitwise-identical to 'off' and faster; 'fast' is faster still with small documented numeric differences. This kit ships no 'big' mode. |
| `n_recycle` | integer | `null` | Recycling iterations per diffusion step (RFD3 checkpoint default 2). |
| `noise_scale` | number | `null` | Inference noise scaling (RFD3 default 1.003); lower = less diverse. |
| `p` | number | `null` | Noise-schedule shape parameter (RFD3 default 7). |
| `gamma_min` | number | `null` | Timestep threshold above which gamma_0 is applied. |
| `s_trans` | number | `null` | Translational noise scale for inference augmentation (default 1.0). |
| `s_jitter_origin` | number | `null` | Std dev of the Gaussian used to jitter the motif offset (default 0.0, no jitter). |
| `center_option` | string one of all, motif, diffuse | `null` | Coordinate centering strategy during inference (RFD3 default 'all'). |
| `allow_realignment` | boolean | `null` | Allow realigning the noised structure to a motif during inference. |
| `low_memory_mode` | boolean | `null` | Memory-efficient tokenization mode; enable if GPU RAM is tight. |

## 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"` | Auth chain ID(s) of the target in the structure. A single chain ('A') or a comma-separated list ('V,W') for a multi-chain target. Omit when target_crop names the chains. |
| `target_crop` (essential) | string | `null` | Target crop range(s) in unambiguous 'Chain:Start-End' format ('A7:17-209'), comma-separated per chain for multi-chain targets. Legacy forms such as 'V14-107,W14-107' remain accepted. Omit to use the full target chain(s). |

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