Skip to content
API Reference
API Reference

Guardrail object

A reusable policy with model, provider, and spending controls.

A reusable policy with model, provider, and spending controls.

01

Object fields

JSON body

Stable fields shared by the resource's reusable object.

Guardrails13 fields
allowed_modelsarray
Required

Allowed model identifiers.

allowed_providersarray
Required

Allowed provider names.

assignment_countinteger
Required

Number of API keys or members assigned this guardrail.

blocked_modelsarray
Required

Blocked model identifiers.

blocked_providersarray
Required

Blocked provider names.

created_atstring
Required

Time the guardrail was created.

credit_limit_centsinteger | null
Required

Optional total spending cap in USD cents.

credit_limit_reset_intervalstring | null
Required

Reset cadence for the total spending cap.

Allowed values: daily, weekly, monthly, null
descriptionstring | null
Required

Optional guardrail description.

enabledboolean
Required

Whether the guardrail is enforced.

idstring
Required

Guardrail prefix ID.

model_budgetsarray
Required

Per-model budget rules.

namestring
Required

Guardrail name.