Files
openrouter-python-sdk-retry…/docs/operations/createguardrailrequestbody.md
T
OpenRouter SDK Bot 5ab44f08f0 feat: regenerate SDK with updated OpenAPI spec
Speakeasy regeneration with latest schema changes including
type renames and new server tool models.
2026-03-27 15:18:14 -04:00

6.1 KiB
Raw Blame History

CreateGuardrailRequestBody

Fields

Field Type Required Description Example
name str ✔️ Name for the new guardrail My New Guardrail
description OptionalNullable[str] Description of the guardrail A guardrail for limiting API usage
limit_usd OptionalNullable[float] Spending limit in USD 50
reset_interval OptionalNullable[operations.CreateGuardrailResetIntervalRequest] Interval at which the limit resets (daily, weekly, monthly) monthly
allowed_providers List[str] List of allowed provider IDs [
"openai",
"anthropic",
"deepseek"
]
ignored_providers List[str] List of provider IDs to exclude from routing [
"azure"
]
allowed_models List[str] 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_zdr OptionalNullable[bool] Whether to enforce zero data retention false