TypeScript SDKAPI ReferenceModelsCreateGuardrailRequest - TypeScript SDKCopy pageCreateGuardrailRequest type definitionThe TypeScript SDK and docs are currently in beta. Report issues on GitHub. Example Usage 1import { CreateGuardrailRequest } from "@openrouter/sdk/models";23let value: CreateGuardrailRequest = {4 name: "My New Guardrail",5}; Fields FieldTypeRequiredDescriptionExampleallowedModelsstring[]➖Array of model identifiers (slug or canonical_slug accepted)[“openai/gpt-5.2”,“anthropic/claude-4.5-opus-20251124”,“deepseek/deepseek-r1-0528:free”]allowedProvidersstring[]➖List of allowed provider IDs[“openai”,“anthropic”,“deepseek”]descriptionstring➖Description of the guardrailA guardrail for limiting API usageenforceZdrboolean➖Whether to enforce zero data retentionfalseignoredProvidersstring[]➖List of provider IDs to exclude from routing[“azure”]limitUsdnumber➖Spending limit in USD50namestring✔️Name for the new guardrailMy New GuardrailresetIntervalmodels.GuardrailInterval➖Interval at which the limit resets (daily, weekly, monthly)monthly