Limits and Credits budgets
Limit request rates and concurrency, and set usage budgets for Workspaces and keys.
Configure limit policies
Create a Workspace limit policy and reference its stable slug from a Policy logical model. Published policies enforce RPM, TPM, and concurrency through Redis. Models without a policy reference are not governed by that policy.
Set budgets and rates
-
Confirm model Credit rates. Do not guess unknown rates; official suggestions still require administrator confirmation.
-
Set Workspace and API key Credits budgets as needed, then review and publish.
-
Observe usage after reservation and settlement, and diagnose budget and rate-limit rejections separately.
Never-reset budgets
Choose “Never resets” in the period selector for a cumulative Credits allowance. Counting starts at first published activation, excluding earlier usage. Editing, republishing and disabling/re-enabling preserve the account; timezone and period projections are hidden.
Adjust Credits changes the allowance, with runtime values and displayed usage refreshed asynchronously. Disabling a budget removes its restriction and excludes new disabled-period calls; disable the API key or Workspace to stop access. When Workspace and key budgets both apply, both must allow the request and each records the same charge. Unknown charges are not free; existing reservations remain until confirmed.
Hard stop and warning modes
Hard stop checks settled usage before admission: calls may proceed below the limit, while new calls are rejected at or above it. With a limit of 100, a call that settles at 102 keeps its result, and the next call is rejected. Already admitted concurrent calls still settle, so this is not a guarantee against overspending. Warning mode does not reject calls because of excess usage.
Media requests are not rejected solely because a Token upper bound cannot be estimated. Effective rates and complete reported usage enable actual settlement. Missing usage remains unknown; budget-service failures still reject requests.
Budget boundaries
Credits are a governance accounting unit and should not be equated directly with a Provider invoice. Preserve known and unknown usage or cost rather than treating missing values as zero.
Media Credits can be settled by text, image and audio Tokens, including cache items, or by image count, duration and characters. Configure effective rates for the relevant units and publish them. Missing usage is not zero cost. Models without effective rates remain outside Credits budgets.
For media billing, omitted text, image or audio cache hits count as zero. The corresponding input is charged at the regular input rate. Missing required input or output usage still leaves the cost unknown. Historical charges are not recalculated.
Models with no effective published Credit rates (including all-zero rates) are unpriced and excluded from Credit budgets. Overview and request details warn about this coverage gap. Configure Credit rates and publish a Workspace Release to include them; Provider invoice prices are not inferred.