Skip to content
Demo workspace, simulated data. Read-only, nothing is saved.HomeAbout me

Guardrail hooks

Checks that run on every request before it reaches a model. A failed check returns an error and costs nothing.

Hook list

Hooks

Toggles change this browser tab only.

Simulated
  • Model allow-listallow-listEnabled

    Keys can only call the aliases they were granted.

    Before the model call · All keys · 3 blocked in 24 h · adds 0.2 ms at p95

  • Max tokens capmax-tokensEnabled

    Rejects requests that ask for more than 4,096 output tokens.

    Before the model call · All keys · 2 blocked in 24 h · adds 0.1 ms at p95

  • PII redactionpii-redactionEnabled

    Masks emails, phone numbers and card numbers before the prompt leaves the gateway.

    Before the model call · support-bot-prod · 0 blocked in 24 h · adds 1.8 ms at p95

  • Policy servicehttpDisabled

    Calls policy.internal.acme-cloud.example.com and blocks on a deny verdict. Fails open after 150 ms.

    Before the model call · code-review-ci · 0 blocked in 24 h · adds 38 ms at p95

A blocked request

internal-tools asked for an alias it is not allowed to use.

req_ad3b2260BlockedNov 13, 07:26 UTC

HTTP 403
{
  "error": {
    "message": "Key internal-tools is not allowed to use alias \"smart\".",
    "type": "invalid_request_error",
    "code": "model_not_allowed"
  }
}

No model was called and the request cost $0.00.

PII redaction

What leaves the gateway for support-bot-prod.

Synthetic
Prompt from the app

Hi, I am Jordan Lee, jordan.lee@example.com, +1 555 0134. Please refund card 4111 1111 1111 1111.

Prompt sent to the model

Hi, I am Jordan Lee, [EMAIL], [PHONE]. Please refund card [CARD].

Names are left alone on purpose: the support answer needs them. Pattern-based redaction, not a full PII detector.