Skip to main content

Overview

Team management endpoints allow you to create and manage teams with shared budgets, model access, and rate limits.

Create Team

POST /team/new

Create a new team.

Request Body

string
required
Unique identifier for the team.
string
Human-readable name for the team.
array
Models this team can access.
number
Maximum spending limit for the team in USD.
integer
Team-wide tokens per minute limit.
integer
Team-wide requests per minute limit.
string
Budget reset period.Examples: "1d" (daily), "30d" (monthly), null (never resets)
object
Custom metadata for the team.
boolean
default:"false"
Whether the team is blocked.

Response

string
The created team ID.
string
Team name.
array
Accessible models.
number
Budget limit.
number
Current spend (starts at 0).

Example


List Teams

GET /team/list

List all teams.

Response

Returns array of team objects:
array
Array of team objects.

Example


Get Team Info

GET /team/info

Get detailed information about a specific team.

Query Parameters

string
required
The team ID to query.

Response

string
Team identifier.
string
Team name.
array
Accessible models.
number
Current spend.
number
Budget limit.
object
Custom metadata.
array
Team members (keys and users).

Example


Update Team

POST /team/update

Update an existing team.

Request Body

string
required
The team ID to update.
string
Update team name.
array
Update accessible models.
number
Update budget limit.
integer
Update TPM limit.
integer
Update RPM limit.
object
Update metadata.
boolean
Block or unblock the team.

Example


Delete Team

POST /team/delete

Delete a team.

Request Body

array
required
Array of team IDs to delete.

Example


Block/Unblock Team

POST /team/block

Block a team from making requests.

POST /team/unblock

Unblock a previously blocked team.

Team Member Management

Add Member to Team

Create a key associated with a team:
The key will inherit the team’s model access and contribute to the team’s budget/rate limits.

List Team Members

Get team info to see all members:

Complete Example

Team Budgets and Rate Limits

How Team Budgets Work

  1. Shared budget: All keys in a team share the same budget
  2. Budget tracking: Spending is tracked at the team level
  3. Budget enforcement: Requests are rejected when team budget is exceeded
  4. Budget reset: Budgets can reset daily, monthly, or never

How Team Rate Limits Work

  1. Shared limits: TPM/RPM limits are shared across all team members
  2. Real-time tracking: Limits are enforced in real-time
  3. 429 responses: Rate limit exceeded returns 429 error

Example: Team with Budget and Limits