> ## Documentation Index
> Fetch the complete documentation index at: https://docs.biohub.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# design_binder

> Fields of a design_binder item submitted to the Batch API, and the record it returns.

Use [Batch Submit](https://docs.biohub.ai/api/protein/models/batch_submit.md) with `endpoint: "design_binder"` and one or more items in `payload`.
One item is one design trajectory: the service picks a starting binder, folds it with the target, and descends a distogram loss.
There is no synchronous design operation, and an item does not name a model.
See the [Batch API overview](https://docs.biohub.ai/api/protein/models/batch_overview.md) for submission, polling, and downloads.

## Limits and validation

| Constraint | Value |
| - | - |
| Target plus binder | At most 680 residues. |
| Target chains | At most 26. |
| Hotspots | Nonempty list of valid chain-local addresses. |

The per-submission ceiling, the hourly quota, and the per-minute submission limit are listed under [Batch API limits](https://docs.biohub.ai/api/protein/models/batch_overview.md#limits).

The target must leave room for the longest binder the deployed format configuration can produce.
Worker configuration can impose a smaller target limit.
Read the allowed length from the validation error rather than assuming the full complex budget is available to the target.

The recipe steers its losses toward the hotspots and measures the contacts the binder reaches.
The service ignores unknown design-payload fields, so a caller-supplied `label`, recipe version, binder length, or trajectory time limit does not configure the run.

The batch handler checks the envelope and limits; scientific payload validation occurs in the worker.
As a result, an item can fail with a validation error even after a `200` submission response.

## Request

One `payload` entry holds these fields.
Supply the target through `target_chains` or `target_sequence`, not both.

| Field | Type | Description |
| - | - | - |
| `target_chains` | array or null | The target as named chains. A hotspot can then name a chain id rather than a position in one exact string. |
| `target_sequence` | string or null | The target as one string, where a vertical bar separates chains. The server names the chains `A`, `B`, `C`, and the returned structure uses those labels. |
| `hotspots` | array | Required. The target residues the binder must contact, each addressed per chain. They steer the design and they score it. |
| `binder_format` | string | One of `minibinder`, `vhh`, `scfv`, or `antibody`. |
| `seed` | integer | Base seed. In a batch, the service adds the item index to it, so each trajectory starts from a different point. The sum wraps at 2147483647. |
| `potential_sequence_of_concern` | boolean | Disclose potential sequences of concern. For approved users, such sequences skip additional safety filtering. |

## Result

[List batch items](https://docs.biohub.ai/api/protein/models/batch_list.md) returns design records inline when you set `include_responses: true`.
[Read a task](https://docs.biohub.ai/api/protein/models/batch_status.md) returns one record in `data.response` and a signed PDB download in `data.artifacts.structure`.
List responses never include those artifact URLs.

| Field | Type | Description |
| - | - | - |
| `created` | string | The time the service created the record. |
| `potential_sequence_of_concern` | boolean | The returned sequence can be of potential concern. |
| `tokens_used` | integer | The tokens the item consumed. |
| `warning_messages` | array or null | Warnings the service returned. |
| `target_sequence` | string | The target the trajectory designed against. |
| `hotspots` | array or null | The requested hotspots with the residue each one landed on, as `{chain, position, residue}`. |
| `target_chain_ids` | array or null | The caller's target chain IDs in target order, or the generated `A`, `B`, `C` IDs. The PDB artifact uses positional chain labels, which can differ from these IDs. |
| `binder_format` | string | The binder format the trajectory ran. |
| `seed` | integer | The seed of this trajectory. `repeat` offsets the seed by the item index. |
| `binder_sequence` | string or null | The designed binder. Absent unless `generation_metadata.stopped_reason` is `completed`. |
| `self_scored` | object or null | The design models' scores for the final complex. |
| `self_scored_by_replica` | array or null | The same scores per replica, in the order of `generation_metadata.fold_replicas`. |
| `generation_metadata` | object or null | What ran: recipe version, models, schedule, steps, and stop reason. |
| `accounting` | object or null | The compute the trajectory used. |

`self_scored` holds:

| Field | Type | Description |
| - | - | - |
| `ptm` | number or null | Predicted TM-score of the complex. |
| `interface_ptm` | number or null | Predicted TM-score of the interface. |
| `plddt_mean` | number or null | Mean pLDDT of the complex. |
| `hotspot_min_distances_angstrom` | array or null | Per hotspot, the binder's closest heavy-atom approach, in the order the caller gave the hotspots. |

Each entry of `self_scored_by_replica` holds `ptm`, `interface_ptm`, and `plddt_mean`, plus:

| Field | Type | Description |
| - | - | - |
| `model` | string | The checkpoint that produced these numbers. |
| `step` | integer or null | The last step this replica folded. |

`generation_metadata` holds:

| Field | Type | Description |
| - | - | - |
| `recipe_version` | integer | The recipe configuration this design ran under. A request cannot ask for a version. |
| `fold_model` | string or null | The checkpoint that drove the fold, when the trajectory used one. |
| `fold_replicas` | array or null | The folding replicas the trajectory alternated between. |
| `fold` | object or null | `num_recycles` and `num_sampling_steps`. |
| `schedule` | object or null | Steps per stage: `warm_up`, `softmax_annealing`, `temperature_annealing`, and `straight_through`. |
| `steps_run` | integer | The steps the trajectory ran. |
| `stopped_reason` | string | `completed` or `error`. A trajectory runs its configured steps or raises; there is no wall-clock stop. |

`accounting` holds `gradient_steps` and `gpu_seconds`.

### Interpretation

`self_scored` is the design models' assessment of the complex they optimized.
It comes from the models the trajectory spent every step optimizing against, so it is inflated.
Rank a population with it, then judge the winners with independent folds of your own.
`self_scored_by_replica` preserves per-model disagreement that an average can hide.

`self_scored.hotspot_min_distances_angstrom` follows the requested hotspot order.
A null distance is missing evidence, not a passing contact.
Check the echoed hotspot residue letters against your intended crop.
PDB numbering and chain labels can differ from request addresses, so retain the mapping you submitted.

`generation_metadata` records the recipe version, models, schedule, steps run, and stop reason.
It describes what ran; it does not let the caller select a historical recipe.
`accounting` reports gradient steps and GPU seconds, while the task's `tokens_used` reports billed usage when available.

```json DesignBinderRequest theme={null}
{
  "endpoint": "design_binder",
  "payload": [
    {
      "target_chains": [
        { "id": "A", "sequence": "MKTAYIAKQRQISFVKSHFSRQLEERLGLIEVQ" }
      ],
      "hotspots": [{ "chain": "A", "position": 12 }],
      "binder_format": "minibinder",
      "seed": 0
    }
  ]
}
```

```json DesignBinderResponse theme={null}
{
  "created": "2026-10-15T21:54:24Z",
  "tokens_used": 33,
  "target_sequence": "MKTAYIAKQRQISFVKSHFSRQLEERLGLIEVQ",
  "target_chain_ids": ["A"],
  "hotspots": [{ "chain": "A", "position": 12, "residue": "I" }],
  "binder_format": "minibinder",
  "seed": 0,
  "binder_sequence": "SLEELRKRIEELERKLGSGSGDPELLRRLEELLRRLEELLK",
  "self_scored": {
    "ptm": 0.81,
    "interface_ptm": 0.73,
    "plddt_mean": 0.87,
    "hotspot_min_distances_angstrom": [3.6]
  },
  "generation_metadata": {
    "recipe_version": 3,
    "fold": { "num_recycles": 1, "num_sampling_steps": 2 },
    "steps_run": 150,
    "stopped_reason": "completed"
  },
  "accounting": { "gradient_steps": 150, "gpu_seconds": 221.4 }
}
```


## Related topics

- [Binder design](https://docs.biohub.ai/learn/tutorials/esmfold2/binder-design.md)
- [Batch API](https://docs.biohub.ai/api/protein/models/batch_overview.md)
- [batch_submit](https://docs.biohub.ai/api/protein/models/batch_submit.md)
- [ESMFold2](https://docs.biohub.ai/learn/tutorials/esmfold2.md)
