# ESMFold
Fold a single protein chain from sequence alone. The cheapest way to fold.
- Job type: `ESMFOLD`
- Task: Structure prediction
- Price: 1 credit for one structure
- Behavior and limits: Monomers only. No complexes, ligands or nucleic acids.
- Source: Meta FAIR (https://github.com/facebookresearch/esm)
- Paper: Lin et al., Evolutionary-scale prediction of atomic-level protein structure with a language model. Science 2023. doi:10.1126/science.ade2574

## Example

### CLI

```bash
phi jobs submit ESMFOLD \
  --input sequences=NLYIQWLKDGGPSSGRPPPS \
  --param runtime=fair_esm_fp16 \
  --wait --out out
```

### Python

```python
from phi import PhiClient

with PhiClient() as phi:
    job = phi.jobs.submit(
        "ESMFOLD",
        inputs={
        "sequences": [
                "NLYIQWLKDGGPSSGRPPPS"
        ]
        },
        params={
        "runtime": "fair_esm_fp16"
        },
    )
    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": "ESMFOLD",
  "inputs": {
    "sequences": [
      "NLYIQWLKDGGPSSGRPPPS"
    ]
  },
  "params": {
    "runtime": "fair_esm_fp16"
  }
}'
```

## 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. |
| `runtime` (essential) | string one of fair_esm_fp16, dyno_hf_fp32 | `"fair_esm_fp16"` | ESMFold implementation and precision. dyno_hf_fp32 reproduces the DynoPsi reference scorer runtime. |
| `pmpnn_score_max` | number | `null` | Optional ProteinMPNN score gate: drop sequences scoring above this (negative log-prob/residue; lower is better) before folding. None = fold all. |

## Inputs

| Name | Type | Default | Description |
|---|---|---|---|
| `sequences` (essential) | list of string | FoldSequenceInput |  | Single-chain sequences to fold (bare strings or objects). Use the ESMFOLD2 job_type for multimers. |

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