Install the esm package
To runesm locally, download the PyPI package. You can also call the API directly over HTTP without it, but the package provides a simpler way to access the API and additional useful libraries.
SequenceStructureForgeInferenceClient, and for ESM3 use ESM3ForgeInferenceClient. See Get started for each model and Tutorials for code snippets that demonstrate how to use the esm SDK.
Operations
Example: send a request
Send a JSON body withContent-Type: application/json and authenticate with your API key:
Response formats
Responses are JSON by default. Most operations also support Python pickle responses, which can reduce payload size for tensors and arrays. Theesm Python SDK requests pickle automatically. See Response formats.
Input limits
Onfold and fold_all_atom, ESMFold2 models accept inputs up to 768 tokens. For inputs up to 4096 tokens, or to run many predictions asynchronously, use Batch folding.