Skip to content

Guardrails

LLM guardrails for every API key you hand out

Someone on your team will paste a customer's email into a prompt. Put AI guardrails on the key and Hopscotch blocks it before any model sees it.

  • Blocked requests cost $0
  • Provider list price with no markup
  • We never store your prompts or responses
  • One OpenAI-compatible API, 500+ models
guardrail · production1 served · 5 blocked
served
Served
$0.0042
blocked
Blocked · 403 sensitive data match
$0.00
blocked
Blocked · 403 sensitive data match
$0.00
blocked
Blocked · 403 sensitive data match
$0.00
blocked
Blocked · 403 provider not ZDR
$0.00
blocked
Blocked · 403 daily cap reached
$0.00
Blocked requests cost $0.00

What are LLM guardrails on Hopscotch?

Guardrails are rules you attach to API keys. Hopscotch checks every request against it before any model sees it, and blocks the ones that break it. Blocked requests are free.

Spend cap

Set a daily or monthly cap. Once spend hits it, requests stop until the period resets, so a runaway agent can't run up your bill.

Set per-key spend limits →

Zero data retention

The key only uses providers that keep none of your prompts or outputs. Anything else gets a 403.

Sensitive data

A prompt with an email, IP address, secret or API key comes back as 403 sensitive data match. The check runs inside Hopscotch, and the model never sees it.

Requests your guardrails would stop

Support pastes in the whole ticket

A support lead pastes a full ticket into a prompt, customer's email included. The request never leaves Hopscotch, and the request logs show why.

The agent that read your .env file

A coding agent sends a config file as context, live API key and all. The call is blocked before it reaches the provider.

The new model nobody vetted

A teammate adds a model whose provider keeps prompts for 30 days. Your ZDR guardrail blocks that step.

The 2am retry loop

An agent retries all night. It hits the daily cap and stops, so the bill matches the number you set.

Set up AI gateway guardrails in three steps

  1. Create a guardrail in the dashboard and tick the checks you want.

  2. Attach it to the keys that need it.

  3. Keep calling the same endpoint. Blocked requests return a 403 with the reason, like any other API error.

Questions people ask before they turn this on

What are LLM guardrails?

Rules a request has to pass before it reaches a language model. On Hopscotch you attach them to an API key, and the gateway checks the budget, zero data retention and sensitive data. Fail one and the request is blocked at no charge.

How much do guardrails cost?

Nothing. Guardrails are free. You pay provider list price for requests that go through and nothing for blocked ones. Per-model rates are on the LLM API pricing page.

Do blocked requests cost anything?

No. You pay nothing for a blocked request, whichever check stopped it. The request logs record the reason, so you can fix whatever caused it.

Why put guardrails at the gateway instead of in the prompt?

GenAI guardrails in a system prompt or one app's code leave gaps. A model can ignore an instruction, and an app check misses a teammate's script. LLM gateway guardrails cover every request on the key, from any app, alongside the guardrails for LLM apps you already run.

Can I use these as guardrails for AI agents?

Yes. AI agent guardrails work like any other key: give each agent its own key and guardrail. A looping agent hits its budget and stops, and one that grabs a secret as context gets blocked.

Put a guardrail on your next key

Create a key, attach a guardrail and keep your endpoint. Blocked requests are free.