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 FieldTypeRequiredDescriptionExamplenamestring✔️Name for the new guardrailMy New Guardraildescriptionstring➖Description of the guardrailA guardrail for limiting API usagelimitUsdnumber➖Spending limit in USD50resetIntervalmodels.CreateGuardrailRequestResetInterval➖N/AmonthlyallowedProvidersstring[]➖List of allowed provider IDs[“openai”,“anthropic”,“deepseek”]ignoredProvidersstring[]➖List of provider IDs to exclude from routing[“azure”]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