TypeScript SDKOperationsCreateGuardrailRequest - TypeScript SDKCopy pageCreateGuardrailRequest method reference The TypeScript SDK and docs are currently in beta. Report issues on GitHub. Example Usage 1import { CreateGuardrailRequest } from "@openrouter/sdk/models/operations";23let value: CreateGuardrailRequest = {4 name: "My New Guardrail",5}; Fields FieldTypeRequiredDescriptionExamplenamestring✔️Name for the new guardrailMy New Guardraildescriptionstring➖Description of the guardrailA guardrail for limiting API usagelimitUsdnumber➖Spending limit in USD50resetIntervaloperations.CreateGuardrailResetIntervalRequest➖Interval at which the limit resets (daily, weekly, monthly)monthlyallowedProvidersstring[]➖List of allowed provider IDs[“openai”,“anthropic”,“deepseek”]allowedModelsstring[]➖Array of model identifiers (slug or canonical_slug accepted)[“openai/gpt-5.2”,“anthropic/claude-4.5-opus-20251124”,“deepseek/deepseek-r1-0528:free”]enforceZdrboolean➖Whether to enforce zero data retentionfalse