Skip to main content

Plan and billing

To use the API, your workspace must be on a Pro or Team plan. API usage draws only on your workspace’s prepaid balance. It does not use your daily credit allowance. To add funds, open Settings → Billing in Biomni Lab. If the prepaid balance is empty, the API refuses requests that start work and returns a 400 error with the code payment_required.

Create an API key

A key acts within the workspace it was created in, with your own permissions in that workspace.
  1. In Biomni Lab, open Settings → API Keys.
  2. Click Create key, give it a name (e.g. Batch analysis pipeline), and optionally an expiration.
Treat your API key like a password. Anyone with it can act as you within that workspace.

Base URL

For the self-serve platform, use:
If you’re an Enterprise customer, contact your Phylo representative for your API base URL.

Authenticate a request

Send the key as a bearer token in the Authorization header:

Revoke a key

From Settings → API Keys, Revoke disables a key immediately and permanently. Keys can carry an expiration. An expired key stops working automatically.

Next steps

Quickstart

Key → project → task → results, end to end.

Errors

Status codes, error handling, and retries.