# Genie3
Genie3 campaign: generate backbones (unconditional, motif scaffolding, or target-conditioned binder design), then design sequences, fold and score them.
- Job type: `GENIE3`
- Task: Binder design
- Price: 15 credits per 100 designs
- Workload: A fixed number of designs; time scales with the count.
- Behavior and limits: Runs the whole chain: Genie3 backbones, ProteinMPNN, ESMFold, AlphaFold2 and analysis, so it costs more than a backbone-only generator. `generation_mode` selects unconditional, motif, or target; hotspots and binder lengths apply only to target mode.
- Source: AlQuraishi Lab (https://github.com/aqlaboratory/genie3)
- Paper: citation pending

## Example

### CLI

```bash
phi jobs submit GENIE3 \
  --input motif_pdb=@motif.pdb \
  --input motif_segment_config_str="<motif_segment_config_str>" \
  --input target_pdb=@target.pdb \
  --param generation_mode=unconditional \
  --param num_designs=8 \
  --param length_min=100 \
  --param length_max=100 \
  --wait --out out
```

### Python

```python
from phi import PhiClient

with PhiClient() as phi:
    motif_pdb = phi.files.upload(path="motif.pdb")
    target_pdb = phi.files.upload(path="target.pdb")
    job = phi.jobs.submit(
        "GENIE3",
        inputs={
        "motif_pdb_gcs_uri": motif_pdb,
        "motif_segment_config_str": "<motif_segment_config_str>",
        "target_pdb_gcs_uri": target_pdb
        },
        params={
        "generation_mode": "unconditional",
        "num_designs": 8,
        "length_min": 100,
        "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": "GENIE3",
  "inputs": {
    "motif_pdb_gcs_uri": "<gs:// uri from POST /v1/uploads/url>",
    "motif_segment_config_str": "<motif_segment_config_str>",
    "target_pdb_gcs_uri": "<gs:// uri from POST /v1/uploads/url>"
  },
  "params": {
    "generation_mode": "unconditional",
    "num_designs": 8,
    "length_min": 100,
    "length_max": 100
  }
}'
```

## Parameters

| Name | Type | Default | Description |
|---|---|---|---|
| `generation_mode` (essential) | string one of unconditional, motif, target | `"unconditional"` | Genie3 generation.dataset.source. 'unconditional' is de-novo monomer generation; 'motif' is motif scaffolding; 'target' is target-conditioned binder design. Motif/target modes require the matching inputs. |
| `num_designs` (essential) | integer | `8` | Backbones to generate per length/problem (generation.dataset.n_sample). |
| `length_min` (essential) | integer | `100` | Unconditional: minimum backbone length, inclusive (generation.dataset.min_length). |
| `length_max` (essential) | integer | `100` | Unconditional: maximum backbone length, inclusive (generation.dataset.max_length). |
| `length_step` | integer | `1` | Unconditional: increment between sampled lengths (generation.dataset.length_step). |
| `direction_scale` | number | `null` | Quality–diversity trade-off (generation.sampler.sampler.direction_scale). The README recommends 0.8 for monomers of length <=300, 0.0 for length >300, and 0.1 for motif scaffolding. Unset applies the README-recommended value for the resolved mode and length. |
| `seed` | integer | `null` | Random seed for reproducible sampling. Unset uses Genie3's own. |
| `compile_denoiser` | boolean | `false` | Enable torch.compile for the denoiser (generation.compile). Faster steady state at the cost of a one-off compile on the first batch. |
| `outputs_pdb` | boolean | `false` | Also emit PDB alongside the canonical CIF backbones. |
| `hotspots` (essential) | list of string |  | Target mode: interface hotspot residues in '<Chain><Residue>' form (e.g. 'A65'), max 12. |
| `binder_length_min` | integer | `null` | Target mode: minimum generated binder length. |
| `binder_length_max` | integer | `null` | Target mode: maximum generated binder length. |

## Inputs

| Name | Type | Default | Description |
|---|---|---|---|
| `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` | 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` (essential) | string | `null` | gs:// URI to the target PDB. |
| `target_chain_id` (essential) | string | `"A"` | Chain ID(s) of the target in the structure (target mode). |
| `motif_pdb` | string | `null` | Motif mode: motif structure as base64-encoded PDB carrying the Genie3 REMARK 999 segment header. Provide motif_pdb or motif_pdb_gcs_uri. |
| `motif_pdb_gcs_uri` (essential) | string | `null` | Motif mode: gs:// URI to the motif PDB. |
| `motif_segment_config_str` (essential) | string | `null` | Motif mode: Genie3 segment_config_str, e.g. '8-15,A3,16-30,A4,16-30,A2,16-30,A1,8-15'. Motif segment IDs index the REMARK 999 segments; bare ranges are flanking scaffold lengths. |
| `motif_total_length_min` | integer | `null` | Motif mode: minimum total scaffold length. |
| `motif_total_length_max` | integer | `null` | Motif mode: maximum total scaffold length. |

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