Skip to content

GetAccountRateLimitsResponse

Base classes

Name Children Inherits
CodexBaseModel
codexed.models.base
Base model for all Codex API models.

⋔ Inheritance diagram

graph TD
  3041961402["v2_protocol.GetAccountRateLimitsResponse"]
  3116041069["base.CodexBaseModel"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  3116041069 --> 3041961402
  3879467795 --> 3116041069
  2751680898 --> 3879467795

🛈 DocStrings

Bases: CodexBaseModel

Source code in src/codexed/models/v2_protocol.py
class GetAccountRateLimitsResponse(CodexBaseModel):
    account_id: str | None = None
    """
    Account associated with this usage snapshot, when supplied by the backend.
    """
    ordinary_usage_allowed: bool | None = None
    """
    Backend permission for ordinary included usage, validated against the active account. Null means unavailable; clients must not infer recovery from percentages or reset times.
    """
    rate_limit_reset_credits: RateLimitResetCreditsSummary | None = None
    rate_limit_upsell: Any | None = None
    """
    Optional backend-owned banner from the same usage read. Its nested keys retain the backend's snake_case contract; an absent banner leaves the client's existing UI unchanged.
    """
    rate_limits: RateLimitSnapshot
    """
    Backward-compatible single-bucket view; mirrors the historical payload.
    """
    rate_limits_by_limit_id: dict[str, Any] | None = None
    """
    Multi-bucket view keyed by metered `limit_id` (for example, `codex`).
    """

account_id class-attribute instance-attribute

account_id: str | None = None

Account associated with this usage snapshot, when supplied by the backend.

ordinary_usage_allowed class-attribute instance-attribute

ordinary_usage_allowed: bool | None = None

Backend permission for ordinary included usage, validated against the active account. Null means unavailable; clients must not infer recovery from percentages or reset times.

rate_limit_upsell class-attribute instance-attribute

rate_limit_upsell: Any | None = None

Optional backend-owned banner from the same usage read. Its nested keys retain the backend's snake_case contract; an absent banner leaves the client's existing UI unchanged.

rate_limits instance-attribute

rate_limits: RateLimitSnapshot

Backward-compatible single-bucket view; mirrors the historical payload.

rate_limits_by_limit_id class-attribute instance-attribute

rate_limits_by_limit_id: dict[str, Any] | None = None

Multi-bucket view keyed by metered limit_id (for example, codex).

:fa-brands-github: Show source on GitHub