# ESMFold2-Design
Optimise a binder sequence against a target by gradient guidance through ESMFold2.
- Job type: `BINDER_DESIGN_ESMFOLD2`
- Task: Binder design
- Price: 5 credits a run
- Workload: A fixed number of designs; time scales with the count.
- Behavior and limits: Sequence in, sequence out — it needs no target structure. Seeds are inputs here, not params.
- Source: Dyno Therapeutics (https://www.dynotx.com)
- Paper: citation pending

## Example

### CLI

```bash
phi jobs submit BINDER_DESIGN_ESMFOLD2 \
  --input target_sequence=NLYIQWLKDGGPSSGRPPPS \
  --input binder_sequence=NLYIQWLKDGGPSSGRPPPS \
  --input n_seeds=1 \
  --param steps=1 \
  --param top_n=1 \
  --wait --out out
```

### Python

```python
from phi import PhiClient

with PhiClient() as phi:
    job = phi.jobs.submit(
        "BINDER_DESIGN_ESMFOLD2",
        inputs={
        "target_sequence": [
                "NLYIQWLKDGGPSSGRPPPS"
        ],
        "binder_sequence": [
                "NLYIQWLKDGGPSSGRPPPS"
        ],
        "n_seeds": 1
        },
        params={
        "steps": 1,
        "top_n": 1
        },
    )
    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": "BINDER_DESIGN_ESMFOLD2",
  "inputs": {
    "target_sequence": [
      "NLYIQWLKDGGPSSGRPPPS"
    ],
    "binder_sequence": [
      "NLYIQWLKDGGPSSGRPPPS"
    ],
    "n_seeds": 1
  },
  "params": {
    "steps": 1,
    "top_n": 1
  }
}'
```

## 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. |
| `use_scaling_critics` | boolean | `false` | Add the cheaper scaling-critic ensemble (distogram proxy). |
| `steps` (essential) | integer | `null` | Design loop steps (default 10). |
| `top_n` (essential) | integer | `null` | Keep the top-N designs per group (default 84). |
| `isoelectric_point_max` | number | `null` | Drop minibinders with pI >= this (default 6.0). |

## Inputs

| Name | Type | Default | Description |
|---|---|---|---|
| `target_name` | string one of cd45, ctla4, egfr, pd-l1, pdgfr | `null` | Bundled target name. Provide exactly one of target_name/target_sequence. |
| `target_sequence` (essential) | string | `null` | Arbitrary target sequence. Provide exactly one of target_name/target_sequence. |
| `binder_name` | string one of minibinder, trastuzumab_framework_vhvl, atezolizumab_framework_vhvl, ocankitug_framework_vhvl | `null` | Bundled binder template. Provide exactly one of binder_name/binder_sequence. |
| `binder_sequence` (essential) | string | `null` | Binder prompt ('#' marks mutable positions). Provide exactly one of binder_name/binder_sequence. |
| `is_antibody` | boolean | `null` | Treat the binder as an antibody (inferred from bundled templates). |
| `seeds` (essential) | list of integer | `null` | Explicit seed list. Provide seeds or n_seeds, not both. |
| `n_seeds` (essential) | integer | `null` | Number of seeds (0..n-1). Provide seeds or n_seeds, not both. |
| `batch_size` | integer | `null` | Designs per batch (default 1). |

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