---
title: "Get rate-limit usage"
method: GET
path: "/api/billing/limits"
tags: ["Organization"]
---

# Get rate-limit usage

`GET /api/billing/limits`

## Request

- Base URL: `https://api.factory.ai`
- URL: `https://api.factory.ai/api/billing/limits`
- Auth: HTTP bearer

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.

## Headers

- `X-Factory-Org-Id` string

## Response `200`

Response for status 200

- GetBillingTokenLimits200ResponseBody
  - `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.
    - `standard` object, required: Rate-limit windows of the standard model pool
      - `fiveHour` object, required
        - `usedPercent` integer, required: Share of the window's token allowance used, from 0 to 100. Any usage reads as at least 1, and a window that has ended reads as 0.
        - `windowEnd` string, date-time, nullable, required: When the current window ends. Null, together with `secondsRemaining`, when no window is running.
        - `secondsRemaining` integer, nullable, required: Seconds until `windowEnd`, rounded up. Null exactly when `windowEnd` is null.
        - `unlimited` true: Present when the plan has no cap for this window, which then reads as 0% used with no window end.
      - `weekly` object, required
        - `usedPercent` integer, required: Share of the window's token allowance used, from 0 to 100. Any usage reads as at least 1, and a window that has ended reads as 0.
        - `windowEnd` string, date-time, nullable, required: When the current window ends. Null, together with `secondsRemaining`, when no window is running.
        - `secondsRemaining` integer, nullable, required: Seconds until `windowEnd`, rounded up. Null exactly when `windowEnd` is null.
        - `unlimited` true: Present when the plan has no cap for this window, which then reads as 0% used with no window end.
      - `monthly` object, required
        - `usedPercent` integer, required: Share of the window's token allowance used, from 0 to 100. Any usage reads as at least 1, and a window that has ended reads as 0.
        - `windowEnd` string, date-time, nullable, required: When the current window ends. Null, together with `secondsRemaining`, when no window is running.
        - `secondsRemaining` integer, nullable, required: Seconds until `windowEnd`, rounded up. Null exactly when `windowEnd` is null.
        - `unlimited` true: Present when the plan has no cap for this window, which then reads as 0% used with no window end.
    - `core` object, required: Rate-limit windows of the Droid Core model pool
      - `fiveHour` object, required
        - `usedPercent` integer, required: Share of the window's token allowance used, from 0 to 100. Any usage reads as at least 1, and a window that has ended reads as 0.
        - `windowEnd` string, date-time, nullable, required: When the current window ends. Null, together with `secondsRemaining`, when no window is running.
        - `secondsRemaining` integer, nullable, required: Seconds until `windowEnd`, rounded up. Null exactly when `windowEnd` is null.
        - `unlimited` true: Present when the plan has no cap for this window, which then reads as 0% used with no window end.
      - `weekly` object, required
        - `usedPercent` integer, required: Share of the window's token allowance used, from 0 to 100. Any usage reads as at least 1, and a window that has ended reads as 0.
        - `windowEnd` string, date-time, nullable, required: When the current window ends. Null, together with `secondsRemaining`, when no window is running.
        - `secondsRemaining` integer, nullable, required: Seconds until `windowEnd`, rounded up. Null exactly when `windowEnd` is null.
        - `unlimited` true: Present when the plan has no cap for this window, which then reads as 0% used with no window end.
      - `monthly` object, required
        - `usedPercent` integer, required: Share of the window's token allowance used, from 0 to 100. Any usage reads as at least 1, and a window that has ended reads as 0.
        - `windowEnd` string, date-time, nullable, required: When the current window ends. Null, together with `secondsRemaining`, when no window is running.
        - `secondsRemaining` integer, nullable, required: Seconds until `windowEnd`, rounded up. Null exactly when `windowEnd` is null.
        - `unlimited` true: Present when the plan has no cap for this window, which then reads as 0% used with no window end.
  - `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.

## Other responses

- `400`: Response for status 400
- `401`: Response for status 401
- `402`: Response for status 402
- `403`: Response for status 403
- `404`: Response for status 404
- `451`: Response for status 451
- `500`: Response for status 500
- `503`: Response for status 503
- `default`: Response for status default

## Changes

- **2026-11-17** `54bb6cc588c0`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/factory/apis/factory-public-api/changes/api/billing/limits/get.md)

---

[API](https://skmtc.dev/factory/apis/factory-public-api.md) - [All operations](https://skmtc.dev/factory/apis/factory-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/factory/apis/factory-public-api/revisions/2e37e1b079d2?raw)
