# Run a biology model from a coding agent

How a coding agent, or the person running it, gets a key, picks a model, reads the price and runs a job on the Arca Bio API. Every step below is a plain HTTP call or one MCP command.

## Get an API key

A person creates the account. Open [the sign-up link](https://platform.arca.inc/login?intent=bio&callbackUrl=%2Fplatform), sign in, and create an API key at [platform.arca.inc/keys](https://platform.arca.inc/keys). It starts with `arca_pk_`. There is no keyless or agent-only sign-up.

Free tier: $5 of compute a month after you sign in with Microsoft or Google; no card.

Give the key to the agent as an environment variable and keep it out of the chat and out of the repository.

```bash
export ARCA_BIO_KEY=arca_pk_...
```

## Pick a model

Models are listed by task. The full list with papers, licences and inputs is in [llms-full.txt](https://www.arca.inc/models/llms-full.txt); each model page has a `.md` twin.

**Structure prediction** (What does this protein or complex look like)

- [ESMFold2](https://www.arca.inc/models/esmfold2.md), type `esmfold2`, example $0.031
- [Boltz-2](https://www.arca.inc/models/boltz-2.md), type `boltz2`, example $0.0428 (run time only, excludes the $0.15 per-chain alignment search)
- [Chai-1](https://www.arca.inc/models/chai-1.md), type `chai1`, example $0.0392 (run time only, excludes the $0.15 per-chain alignment search)
- [OpenFold3](https://www.arca.inc/models/openfold3.md), type `openfold3`, example $0.0257 (run time only, excludes the $0.15 per-chain alignment search)
- [Protenix v1](https://www.arca.inc/models/protenix.md), type `protenix`, example $0.0245 (run time only, excludes the $0.15 per-chain alignment search)

**Binding and docking** (Will this molecule bind, and how)

- [Boltz-2](https://www.arca.inc/models/boltz-2.md), type `boltz2`, example $0.0428 (run time only, excludes the $0.15 per-chain alignment search)
- [gnina 1.3.3](https://www.arca.inc/models/gnina.md), type `gnina`, example $0.0074

**Design** (Design a backbone, a sequence or an antibody)

- [RFdiffusion3](https://www.arca.inc/models/rfdiffusion3.md), type `rfdiffusion3`, example $0.0289
- [ProteinMPNN](https://www.arca.inc/models/proteinmpnn.md), type `proteinmpnn`, example $0.0064
- [RFantibody](https://www.arca.inc/models/rfantibody.md), type `rfantibody`, example $0.381

**Embeddings** (Turn sequences into features for my own model)

- [ESM-C 600M](https://www.arca.inc/models/esm-c.md), type `esmc`, example $0.0738

**Molecule properties** (Which of these molecules look drug-like)

- [ADMET-AI](https://www.arca.inc/models/admet-ai.md), type `admetai`, example $0.0011

**Cell response** (How will a cell respond to a drug or knockdown)

- [CellGemma](https://www.arca.inc/models/cellgemma.md), type `cellgemma`, example $0.1445

With a key, `GET https://app.arca.inc/api/bio/v1/tools/{type}/schema` returns the JSON Schema of one model's request, and `GET https://app.arca.inc/api/bio/v1/tools` returns the live price list for the account.

## Quote before submitting

`POST /validate-job` checks a request exactly as `submit-job` would and returns the quote: an estimate and `holdUsd`, the most the job can cost. It creates no job and is free. Tell the person the hold and wait for a yes before the next call. A job is billed for the time it ran, and the rest of the hold is released.

## Submit, poll and fetch

This runs Boltz-2 on ubiquitin. The other models take the same four calls; only `type` and `settings` change. Poll every 5 to 15 seconds until `status` is `complete`, `failed` or `stopped`. `POST /result` returns a signed download link.

```bash
export ARCA_BIO_KEY=arca_pk_...   # create one at https://platform.arca.inc/keys
BASE=https://app.arca.inc/api/bio/v1

cat > job.json <<'JSON'
{
  "jobName": "ubq-boltz2",
  "type": "boltz2",
  "settings": {
    "entities": [
      {
        "type": "protein",
        "sequence": "MQIFVKTLTGKTITLEVEPSDTIENVKAKIQDKEGIPPDQQRLIFAGKQLEDGRTLSDYNIQKESTLHLVLRLRGG"
      }
    ]
  }
}
JSON

# Check the request and read the quote. Free, creates no job.
curl -s -H "Authorization: Bearer $ARCA_BIO_KEY" -d @job.json $BASE/validate-job

# Queue the job. The quote's holdUsd is the most it can cost.
curl -s -H "Authorization: Bearer $ARCA_BIO_KEY" -H "Idempotency-Key: ubq-boltz2" -d @job.json $BASE/submit-job

# Poll until status is complete, failed or stopped, then fetch a signed link.
curl -s -H "Authorization: Bearer $ARCA_BIO_KEY" "$BASE/jobs?jobName=ubq-boltz2"
curl -s -H "Authorization: Bearer $ARCA_BIO_KEY" -d '{"jobName":"ubq-boltz2"}' $BASE/result
```

Prices for this example: start fee $0.034 plus $0.0017552 a second on the batch queue. Errors are listed in the [API reference](https://docs.arca.inc/model-inference).

## Use the MCP server instead

The hosted server at `https://mcp.arca.inc/bio/mcp` takes the same key in an `x-api-key` header. Its submit tool asks the person to approve the exact job and its maximum charge. In Claude Code:

```bash
claude mcp add --transport http arca-bio https://mcp.arca.inc/bio/mcp \
  --header "x-api-key: $ARCA_BIO_KEY"
```

Other MCP clients that support streamable HTTP and custom headers can use the same URL and header.

## Machine-readable files

- [llms.txt](https://www.arca.inc/models/llms.txt) and [llms-full.txt](https://www.arca.inc/models/llms-full.txt): the model list and the full facts in plain text.
- [openapi.json](https://www.arca.inc/models/openapi.json): OpenAPI 3.1 for every endpoint, no key needed.
- The model pages, pricing and the directory answer `Accept: text/markdown` with their markdown twin, and the same twin is at the page URL plus `.md`.

## Paste into AGENTS.md

Add this to the AGENTS.md or CLAUDE.md of a project that uses the API.

```markdown
## Arca Bio API (biology models)

- Agent guide: https://www.arca.inc/models/agents.md
- Models and prices: https://www.arca.inc/models/llms.txt
- API base https://app.arca.inc/api/bio/v1. The key is in $ARCA_BIO_KEY (an arca_pk_ key from https://platform.arca.inc/keys). Never print it or write it to a file in the repo.
- Before a job, POST the request to validate-job. It is free and returns the quote. Tell the person the quote's holdUsd and wait for a yes before submit-job.
- Send an Idempotency-Key on submit-job. Poll jobs every 5 to 15 seconds until status is complete, failed or stopped, then POST result for a download link.
```