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

# Get started with ESM models

> Set up the esm Python package and choose from ESMC, ESMFold2, SAEs, or ESM3 to begin fine-tuning or working with state-of-the-art biological AI models.

## Introduction

This quickstart shows you how to set up the ESM models by installing the `esm` Python package. After
you set up the `esm` package, you can choose from ESMC, ESMFold2, the ESMC sparse autoencoders (SAEs), or
ESM3 to begin fine-tuning or working with the model.

## Quickstart guide

> [tab] ESMC
>
> **1. Install the `esm` Python package**
>
> ```python theme={null}
> pip install esm
> ```
>
> **2. Import the necessary libraries**
>
> ```python theme={null}
> from esm.sdk.forge import ESMCForgeInferenceClient
> from esm.sdk import client
> from esm.sdk.api import ESMProtein, ESMProteinError, LogitsConfig, LogitsOutput
> ```
>
> **3. Create an API key**
>
> [Generate an API key](https://biohub.ai/developer-console/api-keys) and add it to your
> Biohub account. This API key manages your access to credits and tokens. The documentation uses
> the terms API key and API token interchangeably.
>
> **4. Connect to the Biohub API**
>
> Call the ESM client with the model you want to use and replace
> `<your API token>` with your token name.
>
> ```python theme={null}
> client = ESMCForgeInferenceClient(model="esmc-6b-2024-12", url="https://biohub.ai", token="<your API token>")
> ```
>
> **5. Run your inference**
>
> You can now use your model. For examples of specific use cases or to append an SAE
> to your ESMC model, see the [Tutorials](https://docs.biohub.ai/learn/tutorials/esmc).
> To embed a sequence collection, use [Embed multiple sequences with ESMC](https://docs.biohub.ai/learn/tutorials/esmc/batch-embed-esmc.md).

> [tab] ESMFold2
>
> **1. Install the `esm` Python package**
>
> ```python theme={null}
> pip install esm
> ```
>
> **2. Import the necessary libraries**
>
> ```python theme={null}
> from esm.sdk.forge import SequenceStructureForgeInferenceClient
> from esm.sdk import client
> from esm.sdk.api import ESMProtein, ESMProteinError, LogitsConfig, LogitsOutput
> ```
>
> **3. Create an API key**
>
> [Generate an API key](https://biohub.ai/developer-console/api-keys) and add it to your
> Biohub account. This API key manages your access to credits and tokens. The documentation uses
> the terms API key and API token interchangeably.
>
> **4. Connect to the Biohub API**
>
> Call the ESM client with the model you want to use and replace
> `<your API token>` with your token name.
>
> ```python theme={null}
> client = SequenceStructureForgeInferenceClient(model="esmfold2-fast-2026-05", url="https://biohub.ai", token="<your API token>")
> ```
>
> **5. Run your inference**
>
> You can now use your model. For examples of specific use cases, see the
> [Tutorials](https://docs.biohub.ai/learn/tutorials/esmfold2).

> [tab] ESM3
>
> **1. Install the `esm` Python package**
>
> ```python theme={null}
> pip install esm
> ```
>
> **2. Import the necessary libraries**
>
> ```python theme={null}
> from esm.sdk.forge import ESM3ForgeInferenceClient
> from esm.sdk import client
> from esm.sdk.api import ESMProtein, ESMProteinError, LogitsConfig, LogitsOutput
> ```
>
> **3. Create an API key**
>
> [Generate an API key](https://biohub.ai/developer-console/api-keys) and add it to your
> Biohub account. This API key manages your access to credits and tokens. The documentation uses
> the terms API key and API token interchangeably.
>
> **4. Connect to the Biohub API**
>
> Call the ESM client and replace `<your API token>` with your token name.
>
> ```python theme={null}
> client = ESM3ForgeInferenceClient(model="esm3-open-2024-03", url="https://biohub.ai", token="<your API token>")
> ```
>
> **5. Run your inference**
>
> You can now use your model. For examples of generating novel proteins with ESM3,
> see the [Tutorials](https://docs.biohub.ai/learn/tutorials/esm3).

## Use Biohub from an AI assistant

Connect Claude, Codex, ChatGPT, or Cursor to Biohub MCP at `https://biohub.ai/mcp` to search the ESM Atlas and view protein structures in chat.
You sign in once in your browser with a free Biohub account, and you don't need an API key.

> [card] [Biohub MCP quickstart](https://docs.biohub.ai/biohub-mcp/quickstart.md)
>
> Add the server to your AI client and run your first ESM Atlas search.


## Related topics

- [FAQ](https://docs.biohub.ai/learn/faq.md)
- [ESMC](https://docs.biohub.ai/models/esmc.md)
- [ESMFold2](https://docs.biohub.ai/models/esmfold2.md)
- [ESM3](https://docs.biohub.ai/models/esm3.md)
- [Protein Models API](https://docs.biohub.ai/api/protein/models/overview.md)
