> For the complete documentation index, see [llms.txt](https://docs.pending.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pending.ai/getting-started/accounts-and-billing.md).

# Accounts, teams and billing

Sign in, work in teams, and how plans, allowances and overage work

You manage your Pending AI account, your teams and their plans in the **account portal** at [accounts.pending.ai](https://accounts.pending.ai).

## Signing up and teams

1. **Sign up** at [accounts.pending.ai](https://accounts.pending.ai) and verify your email address.
2. **Create a team**, or accept an invitation to one. Every Pending AI account works in a team (an *organization*), and you can belong to up to 3 teams.
3. **Sign in to a team.** If you belong to more than one, you're asked which one when you sign in. The [CLI](https://docs.pending.ai/developer-tools/cli.md) and the APIs act for, and bill, the team you signed in to. With the CLI, run `pendingai auth login` again, or use `--org`, to switch team.

Each member of a team is an **admin** or a **member**. Admins invite members, change their roles, and manage the team's plan and billing.

## Plans and allowances

A team needs a **plan** to use the Pending AI services. A team without one is refused (HTTP `402`) until an admin starts one from the **Billing** page. Starting a plan begins with a 14-day free trial.

A plan includes a monthly **allowance** for each service, **per member, pooled across the team**: a team's allowance is the per-member allowance times its number of members, shared by everyone in the team. Usage is counted per service:

| Usage                                                                                                                                                                      | Counted as                                                                  |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------- |
| [PAI Retro](https://docs.pending.ai/api-reference/pai-retro.md) jobs, [PAI Synth](https://docs.pending.ai/api-reference/pai-synth.md) searches and PAI Synth Batches plans | Retrosynthesis jobs: one per job, search or plan, from one shared allowance |
| [PAI Generator](https://docs.pending.ai/api-reference/pai-generator.md) samples and sample batches                                                                         | Generated molecules                                                         |

## Overage

Usage beyond the team's allowance is **overage**, billed per unit up to a monthly **overage limit**:

* By default the limit is twice the cost of the team's subscription. An admin can set the team's own limit on the Billing page.
* During the free trial there's no overage: usage stops at the allowance.

A request that the allowance and the remaining overage limit can't cover is refused with HTTP `402`, before anything is run or billed. A batch (PAI Retro, PAI Synth Batches or a PAI Generator sample batch) is checked as a whole when it's created, and refused whole if it doesn't fit. The error message says why, and usually how much the team can still use this billing period:

* **PAI Retro:** `NoPlan` or `UsageLimit`.
* **PAI Synth:** `NO_TEAM` (you didn't sign in to a team), `NO_PLAN` or `USAGE_LIMIT_REACHED`.
* **PAI Generator** and **PAI Synth Batches:** a message saying the team has no plan, or how many molecules or plans can still be run.

The CLI prints the reason it's given. See [When a request is refused for your team's plan](https://docs.pending.ai/developer-tools/cli.md#when-a-request-is-refused-for-your-teams-plan).

## Seeing your usage

The **Billing** page in the account portal shows the team's plan, its usage against each allowance this billing period, its overage limit and spend, and its upcoming invoice. Only admins can change the plan, payment method or overage limit. Usage can take a few minutes to appear after a request.
