{
"model": "esmfold2-2026-05-cutoff-2025",
"all_atom_input": {
"sequences": [
{
"id": "A",
"type": "protein",
"sequence": "MKTAYIAKQRQISFVKSHFSRQLEERLGLIEVQ"
}
]
},
"include_pae": true
}Batch API
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 with
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
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 for submission, polling, and downloads.
Inputs and limits
Supply a molecular complex throughall_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 for how the quota is counted.
The service generates its own MSA by searching UniRef30 and ColabFold with the following settings:
max_prefilter= 100,000max_accept= 10,000diff= 3,000expand_diff= 3,000
include_pae, include_pair_chains_iptm, and include_embeddings.
Python SDK
UseFoldMaxAccuracyRequest to specify each item’s input and optional config.
The SDK selects the model automatically.
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)
None request config uses the shared config. The SDK doesn’t
merge config fields.One maximum-accuracy folding input. The service generates its own MSA; caller-supplied MSAs and folding recipe parameters are not supported.