Ir al contenido

API de consola: plan-tier

Esta página se genera a partir de server/api/openapi.yaml. Su contenido está en inglés; no la edites a mano.

V3 B4. Plan tier attributes (rate caps, model scope, production use) as customers see them. Handlers: internal/console/plantier.

Tier attributes of the plans on offer

operationId planTierList · auth: orgSession

Plans without a tier are not listed (they restrict nothing). Use with GET /api/v1/billing/plans.

Status Meaning Body
200 OK application/json PlanTierList
default Error envelope. The HTTP status follows the error kind. application/json Error

Response 200 application/json — PlanTierList

  • data (array of PlanTier, required)
    • plan_id (string, required)
    • limits (PlanTierLimits, required) — 0 = no cap from the plan.
      • rpm (integer, required, minimum: 0)
      • tpm (integer, required, minimum: 0)
      • concurrency (integer, required, minimum: 0)
    • model_allowlist (array of string, required, nullable)
    • production_use_allowed (boolean, required)
    • updated_at (string, required)

The tier restrictions that apply to the active organisation now

operationId planTierCurrent · auth: orgSession

Status Meaning Body
200 OK application/json EffectivePlanTier
default Error envelope. The HTTP status follows the error kind. application/json Error

Response 200 application/json — EffectivePlanTier

  • active (boolean, required)
  • plan_ids (array of string, required)
  • limits (PlanTierLimits, required) — 0 = no cap from the plan.
    • rpm (integer, required, minimum: 0)
    • tpm (integer, required, minimum: 0)
    • concurrency (integer, required, minimum: 0)
  • model_allowlist (array of string, required, nullable)
  • production_use_allowed (boolean, required)