Example Usage
import { GuardrailBudgetPolicyConfig } from "@openrouter/sdk/models";
let value: GuardrailBudgetPolicyConfig = {};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
includeByokInBudgets | boolean | ➖ | Whether BYOK (bring-your-own-key) inference spend counts toward this guardrail’s limit_usd, in addition to OpenRouter credit spend. Defaults to false. | false |
limitUsd | number | âž– | Spending limit in USD. Must be provided together with reset_interval: a request that sets only one of the two is rejected with a 400. | 50 |
resetInterval | models.GuardrailInterval | âž– | Interval at which the limit resets (daily, weekly, monthly) | monthly |