跳到正文
API 参考
API 参考

Guardrail 对象

包含模型、提供方和支出控制的可复用策略。

包含模型、提供方和支出控制的可复用策略。

01

对象字段

JSON 请求体

可复用资源对象共享的稳定字段。

Guardrails13 个字段
allowed_modelsarray
必填

Allowed model identifiers.

allowed_providersarray
必填

Allowed provider names.

assignment_countinteger
必填

Number of API keys or members assigned this guardrail.

blocked_modelsarray
必填

Blocked model identifiers.

blocked_providersarray
必填

Blocked provider names.

created_atstring
必填

Time the guardrail was created.

credit_limit_centsinteger | null
必填

Optional total spending cap in USD cents.

credit_limit_reset_intervalstring | null
必填

Reset cadence for the total spending cap.

可选值: daily, weekly, monthly, null
descriptionstring | null
必填

Optional guardrail description.

enabledboolean
必填

Whether the guardrail is enforced.

idstring
必填

Guardrail prefix ID.

model_budgetsarray
必填

Per-model budget rules.

namestring
必填

Guardrail name.