guardrails

Apply Guardrail

Apply a guardrail to text input and return the processed result.

This endpoint allows testing guardrails by applying them to custom text inputs.

post/apply_guardrail

Request

  • Base URL: https://docs.litellm.com.cn (the document declares no server; this is the origin it was published from)
  • URL: https://docs.litellm.com.cn/apply_guardrail
  • Auth: API key in header x-litellm-api-key

Request body

entitiesPiiEntityType[] nullable
guardrail_namestring required
input_typestring
languagestring nullable
messagesobject[] nullable
metadataobject nullable
textstring required

Response

Successful Response

response_textstring required

Changes

No recorded changes to this operation across all 1 revision of this API.