Skip to main content
The Python SDK and docs are currently in beta. Report issues on GitHub.

Fields

FieldTypeRequiredDescriptionExample
namestr:heavy_check_mark:Name for the new guardrailMy New Guardrail
descriptionOptionalNullable[str]:heavy_minus_sign:Description of the guardrailA guardrail for limiting API usage
limit_usdOptionalNullable[float]:heavy_minus_sign:Spending limit in USD50
reset_intervalOptionalNullable[operations.CreateGuardrailResetIntervalRequest]:heavy_minus_sign:Interval at which the limit resets (daily, weekly, monthly)monthly
allowed_providersList[str]:heavy_minus_sign:List of allowed provider IDs[
“openai”,
“anthropic”,
“deepseek”
]
allowed_modelsList[str]:heavy_minus_sign:Array of model identifiers (slug or canonical_slug accepted)[
“openai/gpt-5.2”,
“anthropic/claude-4.5-opus-20251124”,
“deepseek/deepseek-r1-0528:free”
]
enforce_zdrOptionalNullable[bool]:heavy_minus_sign:Whether to enforce zero data retentionfalse