Optional additionalA container for additional, undeclared properties. This is a holder for any undeclared properties as specified with the 'additionalProperties' keyword in the OAS document.
Optional costSpend limit in microcents per rolling minute. Set to 0 to remove the cost limit. Null is ignored. At least one limit, per-minute or in window_limits, must remain.
Optional enabledWhether this rate limit is active.
Optional inputSet to 0 to remove the input token limit. Null is ignored. At least one limit, per-minute or in window_limits, must remain.
Optional modeAction taken when request rate exceeds the limit.
Optional nameRate limit name.
Optional outputSet to 0 to remove the output token limit. Null is ignored. At least one limit, per-minute or in window_limits, must remain.
Optional requestsSet to 0 to remove the request limit. Null is ignored. At least one limit, per-minute or in window_limits, must remain.
Optional tagsReplaces all scope tags. An empty object clears them. Null is ignored.
Optional teamReplaces the Team scope. An empty string clears it. Null is ignored.
Optional userReplaces the user scope. An empty string clears it. Null is ignored.
Optional windowReplaces all limits over rolling windows longer than a minute. If window_limits is null or omitted, the existing limits are unchanged. An empty array removes them all. This field is available only to organizations with the feature enabled. Other organizations receive a 400 Bad Request response for a non-empty list. The same rules as on create apply. A rule can have at most four limits in total, including any per-minute limits that are set. Each metric and window pair can appear only once, and for the same metric, a longer window must have a larger amount. In ENFORCE mode, if the list includes a cost limit, the gateway rejects requests to models with no pricing because their cost can't be counted.
Generated using TypeDoc
Attributes used to update an AI Gateway rate limit. Only sent fields are changed.