Skip to main content

Metadata

Metadata is encoded as a JSON query parameter and may include numeric quantities required by a Cost Rule. It is input to the cost and margin estimate only. It does not filter usage: used, limit and remaining always cover all of the feature’s usage, whatever model or other properties you send.

CanResult

FastAPI pattern

Deny only when allowed is False. overage set to True never denies by itself: a soft limit is reached and the usage is billed as overage. Perform this check immediately before protected server work. React gates are not an authorization boundary. can() also does not reserve product credits; use usage.track() for atomic consumption.