Organization

Get rate-limit usage

Changed on

Usage limits are returned only for an organization on a paid plan tier with an active subscription: per authenticated principal on Teams, per organization on other paid tiers. Overage preference and extra usage balance belong to the organization. Extra usage details, and preferences other than droidCore, are returned only to Managers and above.

get/api/billing/limits

Request

  • Base URL
    https://api.factory.ai
  • Auth
    HTTP bearer

Headers

X-Factory-Org-Id, string

Organization a JWT request acts in; required to act in a sub-organization. Without it, the request acts in the user's root organization, or is rejected with 403 when the user cannot access the root organization. API keys always act in their own organization and ignore this header.

Response

Response for status 200

GetBillingTokenLimits200ResponseBody required
usesTokenRateLimitsBilling, boolean required

True exactly when limits is present.

hasActiveSubscription, boolean required

Whether the organization has an enterprise plan or an active subscription.

limits, object

Present only for an organization on a paid plan tier with an active subscription.

overagePreference, 'extraUsage' | 'droidCore' | 'null' nullable required

What happens when the standard pool is used up: extraUsage spends prepaid extra usage, droidCore falls back to Droid Core models. With limits, an unset preference reads as droidCore; without, as null. Callers who cannot manage overage see null for any value other than droidCore.

canManageOverage, boolean required

True for Managers and above.

extraUsageBalanceCents, integer

Prepaid extra usage balance in cents. Present only with limits, and only when canManageOverage is true.

extraUsageAllowed, boolean

Whether the organization has an active subscription that is not in a free trial. Present only when canManageOverage is true.

Changes