Skip to main content

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

1

Install the esm Python package

2

Import the necessary libraries

3

Create an API key

Generate an API key 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.
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. To embed a sequence collection, use Embed multiple sequences with ESMC.

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.

Biohub MCP quickstart

Add the server to your AI client and run your first ESM Atlas search.