Skip to content

Teams, Roles & Budgets

Organizations on the CompactifAI Dashboard can invite teammates, control what each person may do with roles, group people into departments, and cap monthly spend with budgets.

The Members page (Settings → Members) lists everyone in your organization with their role and status. Only organization admins can open it.

  1. Click Invite new member and enter an email address.
  2. The person receives an invitation email. It expires after 7 days.
  3. Pending invitations are listed on the same page, where you can Resend or Cancel invitation.

A person who accepts an invitation joins as a Developer with access to every model. An admin can change the role afterwards.

A member can hold one or more roles. What a member may do is the combination of all their roles.

Role Can do
Admin Manage members, departments and budgets; create and delete API keys; manage billing details; top up the wallet; read usage
Developer Create and delete API keys, read usage
Billing Manage billing details, top up the wallet, create and delete API keys, read usage
Viewer Read usage

Every member can see the wallet balance, history and invoices.

API keys follow a few extra rules:

  • A member can create organization API keys with the Admin, Developer or Billing role. A Viewer cannot.

  • A member can delete the organization keys they created. Admins can delete any key.

  • Admins see every key in the organization. Other members see only the keys they created, plus, for department leads, every key of their department.

  • The person who creates the organization is its first Admin.

  • An organization always keeps at least one Admin: the last one cannot be demoted.

  • A role change takes effect on the member’s next request. A member moved to Viewer can no longer create keys, even if they signed in before the change.

A department groups members into a team that can have its own API keys and its own budget. Admins manage departments on the Departments page.

  • Create, rename or delete a department. Department names are unique within the organization. A department can only be deleted once it has no API keys or budgets.
  • Assign a lead. The lead becomes a member of the department and can manage its members, its API keys and its member budgets. Clearing the lead keeps them as a regular member.
  • Add or remove members. Admins and the department’s lead can do this. Only active organization members can join.
  • A person belongs to one department at a time. Adding someone who is already in another department is refused.
  • The lead cannot be removed from their department. Clear the lead first.

Admins see every department. A lead sees the departments they lead.

Admin Department lead Department member
Create, rename, delete departments and assign the lead ✓
Add and remove department members ✓ ✓
Create and delete the department’s API keys ✓ ✓
See all the department’s API keys ✓ ✓ Own keys only
Set the department budget ✓
Set member shares of the department budget ✓ ✓

A budget is a monthly spend limit in USD. The Budgets page shows each budget with its limit, what has been spent this month, and the alerts raised so far.

Level Applies to Who can manage it
Organization All spend in the organization Admins
Department All spend of one department Admins
Member One person, across the organization Admins
Member share One person’s part of a department budget Admins, or that department’s lead

An owner cannot have two budgets in the same place. Limits go up to $1,000,000.00 with at most two decimals, and every budget resets on the first day of the month (UTC).

Choose what happens when the limit is reached:

  • Block requests: further requests are refused with a 402 and the code budget_exceeded. The param field tells you which level is full (organization, department or member). See Error Handling.
  • Only alert: requests keep working and the spend is only counted.

Each budget raises an alert when spend crosses a threshold of the limit. Pick any of 50%, 80% and 100% (all three by default). Each threshold alerts once per month.

Splitting a department budget into member shares

Section titled “Splitting a department budget into member shares”

Create a member budget inside a department to reserve part of the department’s budget for that person.

  • A member keeps spending while their own share has room.
  • Members without a share, or past it, spend from the part of the department budget nobody was given.
  • The shares of a department cannot add up to more than the department’s budget.

In the same way, when the organization budget blocks requests, the department budgets cannot add up to more than the organization budget. Departments without a block budget share what is left. Use Split equally on the Budgets page to divide the organization budget evenly across departments, then adjust any amount before saving.

  • Everyone in the organization sees the organization budget.
  • A department’s members see that department’s own budget, but not other members’ shares.
  • A lead sees every budget in their department.
  • A member sees their own budget.
  • Admins see all budgets.
  • Budgets cover the organization’s API keys. Spend from other regions is counted within about a minute, so a budget can be exceeded by at most that minute of requests.
  • Editing or deleting a budget takes effect within about a minute.
  • Deleting a member removes their member budget. Organization and department budgets are unaffected.
  • An organization needs a billing account before it can set a budget.