> ## 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.

# fold_max_accuracy

> Submit fold_max_accuracy items to the Batch API to predict molecular complexes with a generated MSA, five seeded folds, and a 4096-token input limit.

Use [Batch Submit](https://docs.biohub.ai/api/protein/models/batch_submit.md) with `endpoint: "fold_max_accuracy"` and one or more inputs in `payload`.
Each item must name `esmfold2-2026-05-cutoff-2025` as its model.
This operation is available on Biohub's Batch API.
The schema below describes one payload entry. See the [Batch API overview](https://docs.biohub.ai/api/protein/models/batch_overview.md) for submission, polling, and downloads.

## Inputs and limits

Supply a molecular complex through `all_atom_input` with protein, RNA, DNA, or ligand entries.
The total input length is limited to 4096 tokens.
Protein residues and RNA/DNA nucleotides count as one token each; ligands and modified residues count by heavy atom.
A submission holds at most 10 items, and each user can submit at most 10 items per rolling day.
See [Batch API limits](https://docs.biohub.ai/api/protein/models/batch_overview.md#limits) for how the quota is counted.

The service generates its own MSA by searching UniRef30 and ColabFold with the following settings:

* `max_prefilter` = 100,000
* `max_accept` = 10,000
* `diff` = 3,000
* `expand_diff` = 3,000

It then runs 5 folds with 5 different seeds and selects the best predicted structure.
The supported output options are `include_pae`, `include_pair_chains_iptm`, and `include_embeddings`.

## Python SDK

Use `FoldMaxAccuracyRequest` to specify each item's input and optional config.
The SDK selects the model automatically.

```python theme={null}
import os

from esm.sdk.api import FoldMaxAccuracyConfig, FoldMaxAccuracyRequest
from esm.sdk.forge import ForgeBatchClient
from esm.utils.structure.input_builder import ProteinInput, StructurePredictionInput

inputs = [
    StructurePredictionInput(sequences=[ProteinInput(id="A", sequence=sequence)])
    for sequence in ("MKTAYIAKQRQISFVKSHFSRQ", "GSHMASMTGGQQMGRGS")
]

with ForgeBatchClient(token=os.environ["ESM_API_KEY"]) as client:
    submission = client.fold_max_accuracy.submit(
        config=FoldMaxAccuracyConfig(include_pae=True),
        requests=[
            FoldMaxAccuracyRequest(all_atom_input=inputs[0]),
            FoldMaxAccuracyRequest(
                all_atom_input=inputs[1],
                config=FoldMaxAccuracyConfig(include_embeddings=True),
            ),
        ],
    )
    print("Batch ID:", submission.batch_id)
    client.fold_max_accuracy.wait(submission)
    results = client.fold_max_accuracy.results(submission)
```

The first request inherits the shared config and includes PAE. The second
request replaces the shared config and includes embeddings without PAE.
An omitted or `None` request config uses the shared config. The SDK doesn't
merge config fields.


## Related topics

- [Biohub MCP folding tools](https://docs.biohub.ai/biohub-mcp/folding-tools.md)
- [Batch folding](https://docs.biohub.ai/api/protein/models/batch_folding.md)
- [Batch API](https://docs.biohub.ai/api/protein/models/batch_overview.md)
- [Biohub MCP server](https://docs.biohub.ai/biohub-mcp/overview.md)
- [batch_submit](https://docs.biohub.ai/api/protein/models/batch_submit.md)
