# OpenFold 3
OpenFold3 co-folding for explicitly specified multi-entity complexes.
- Job type: `OPENFOLD3`
- Task: Structure prediction
- Price: 2 credits for one structure
- Behavior and limits: No flat sequence shortcut — every chain is declared in `complexes`. `num_diffusion_samples` and `seeds` are best-of: one structure per complex unless `return_all_samples` is true.
- Source: OpenFold Consortium (https://github.com/aqlaboratory/openfold-3)
- Paper: citation pending

## Example

### CLI

```bash
# complexes takes a list the example cannot fill; pass it from Python or HTTP
# seeds takes a list the example cannot fill; pass it from Python or HTTP
phi jobs submit OPENFOLD3 \
  --param num_diffusion_samples=5 \
  --param use_msa=true \
  --param use_templates=false \
  --wait --out out
```

### Python

```python
from phi import PhiClient

with PhiClient() as phi:
    job = phi.jobs.submit(
        "OPENFOLD3",
        inputs={
        "complexes": []
        },
        params={
        "num_diffusion_samples": 5,
        "seeds": [],
        "use_msa": true,
        "use_templates": false
        },
    )
    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": "OPENFOLD3",
  "inputs": {
    "complexes": []
  },
  "params": {
    "num_diffusion_samples": 5,
    "seeds": [],
    "use_msa": true,
    "use_templates": false
  }
}'
```

## 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. |
| `seed` | integer | `null` | Single seed (default 101). Mutually exclusive with `seeds`. |
| `seeds` (essential) | list of integer | `null` | Multiple seeds. Mutually exclusive with `seed`. |
| `num_diffusion_samples` (essential) | integer | `5` | Diffusion samples per seed (OpenFold3 --num-diffusion-samples). Only the top-ranked sample across all seeds is returned unless `return_all_samples` is true. |
| `use_msa` (essential) | boolean | `true` | Use/generate protein MSA features. |
| `use_templates` (essential) | boolean | `false` | Use/generate structural templates. |
| `return_all_samples` (essential) | boolean | `false` | Return every seed and diffusion sample's structure and confidence under `samples`, not only the top-ranked one. The top-ranked sample remains each row's primary structure. |
| `low_mem` | boolean | `false` | Trade speed for lower peak GPU memory on large complexes. |
| `opt_mode` | string one of off, exact, fast, big | `"off"` | Optimization-kit mode. 'off' runs stock OpenFold3 and is the kill switch; 'exact' is bitwise-identical to 'off' and faster; 'fast' is faster still with small documented numeric differences; 'big' minimizes GPU memory for large inputs. |
| `n_gpu` | integer one of 1, 2, 4, 8 | `1` | GPUs to shard one 'big'-mode prediction across on a single host (kit --n_gpu). Requires opt_mode='big'; the GPU class must be h100, h100_preferred, or left unset (the scheduler then pins h100). 1 runs unsharded on one GPU. |

## Inputs

| Name | Type | Default | Description |
|---|---|---|---|
| `complexes` (essential) | list of Of3ComplexInput |  | Queries to co-fold; each is one OpenFold3 query. |

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