Example Usage
import { UpsertWorkspaceBudgetRequest } from "@openrouter/sdk/models";
let value: UpsertWorkspaceBudgetRequest = {
limitUsd: 100,
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
includeByokInBudgets | boolean | :heavy_minus_sign: | Whether to include BYOK (bring-your-own-key) spend when enforcing the workspace’s budgets. This is a workspace-wide setting: it applies to every budget interval (daily, weekly, monthly, and lifetime), not just the interval being upserted in this request. Omit to leave the current setting unchanged. | true |
limitUsd | number | :heavy_check_mark: | Spending limit in USD. Must be greater than 0. | 100 |