Claude Platform Docs

Limiti di velocità

Elenca i limiti di velocità del workspace
beta.organization.workspaces.rate_limits.list(workspace_id, **kwargs) -> PageCursor<BetaWorkspaceRateLimit>
GET/v1/organizations/workspaces/{workspace_id}/rate_limits

Elenca i "rate limit" (limiti di velocità) di un workspace.

Imposta i limiti di velocità del workspace
beta.organization.workspaces.rate_limits.update(rate_limit_id, **kwargs) -> BetaWorkspaceRateLimit
POST/v1/organizations/workspaces/{workspace_id}/rate_limits/{rate_limit_id}

Imposta o rimuovi gli override dei limiti di velocità per un gruppo di limiti di velocità in un workspace.

Models
class BetaWorkspaceRateLimit { type: :workspace_rate_limit, group, limits, 3 more }
class BetaWorkspaceRateLimitOrganizationSource { type: :organization }
type: :organization

Always organization: no workspace-level override is stored, so the organization's value applies.

type BetaWorkspaceRateLimitType = :fast_itpmca | :fast_otpm | :input_tokens_per_minute | 6 more

Rate limiter type. input_tokens_per_minute counts every input token, cache reads included. input_tokens_per_minute_cache_aware does not count cache reads, and on current models the organization's input-token limit usually has this type. A workspace limit of either type applies alongside the organization's limit, not in place of it. Because cache reads count toward an input_tokens_per_minute limit, it can reject requests that read mostly from the cache while the organization's limit still has room.

One of the following:
:fast_itpmca
:fast_otpm
:input_tokens_per_minute
:input_tokens_per_minute_cache_aware
:output_tokens_per_minute
:requests_per_minute
:tokens_per_day
:tokens_per_minute
:tool_uses_per_second
class BetaWorkspaceRateLimitUpdateValue { type, value }

Rate limiter type. input_tokens_per_minute counts every input token, cache reads included. input_tokens_per_minute_cache_aware does not count cache reads, and on current models the organization's input-token limit usually has this type. A workspace limit of either type applies alongside the organization's limit, not in place of it. Because cache reads count toward an input_tokens_per_minute limit, it can reject requests that read mostly from the cache while the organization's limit still has room.

One of the following:
:fast_itpmca
:fast_otpm
:input_tokens_per_minute
:input_tokens_per_minute_cache_aware
:output_tokens_per_minute
:requests_per_minute
:tokens_per_day
:tokens_per_minute
:tool_uses_per_second
value: Integer | nil

New limit value. Set to null to clear the workspace override and fall back to the organization limit.

minimum0
maximum9007199254740991
class BetaWorkspaceRateLimitValue { type, org_limit, source, value }
class BetaWorkspaceRateLimitWorkspaceSource { type: :workspace }
type: :workspace

Always workspace: a workspace-level override is stored.