Hyperfence vs Lakera
Enforced LLM protection, live in your request path from the first prompt.
Hyperfence vs Lakera at a glance
Lakera, now part of Check Point: Lakera Guard, a guardrails API for LLM apps and agents
Hyperfence blocks unsafe prompts and responses itself, as a proxy between your app and your LLM provider. Your code never has to read a result or decide what happens next, and no conversations are kept.
Lakera Guard is a guardrails API, now part of Check Point. Your application or AI gateway sends each interaction to it and gets back a flag, true or false, with an optional breakdown of which guardrails fired. What happens next is up to your code, or to a gateway such as Kong or LiteLLM.
Feature comparison
What the difference means in practice
Who stops the request
When a Hyperfence flags a prompt, the prompt goes no further. The proxy holds it before it reaches the model, and does the same to a response before it reaches your user. It makes that call in under 50ms at p95, and your code never has to read a result or decide what happens next. Lakera's Guard API answers with a flag, true or false, plus an optional breakdown of which guardrails fired. From there, in Lakera's own words, "your application determines the appropriate action". Lakera suggests screening the whole exchange once the model has replied, and notes that checking inputs first adds latency. It quotes sub-50ms runtime latency without saying at which percentile, and its own blog puts it at under 40ms for short prompts and up to about 200ms for the longest requests. Streamed responses are left to your code too: Lakera's docs describe buffering the stream and pulling back anything flagged. Hyperfence protects streamed responses in the proxy, with nothing to build.
What's kept afterwards
Hyperfence doesn't keep your conversations or hand them to anyone else. What it does keep is the outcome. Each block is logged with its reason, and you can follow token use and request volumes for every model you run. Lakera's dashboard, by default, records every prompt and model output from each screening request, masking any PII it detects. An admin can switch prompt logging off, and control over how long data is kept is listed as an Enterprise feature.
Rules you write yourself
Custom Hyperfences come with Pro. You write the rule once and it's recognised whatever language it turns up in, with no translations or language-specific rules to maintain. Each one scores meaning against a learned boundary, so a given message always gets the same score, and no LLM makes the call. It can't be sweet-talked the way a guard LLM can, because it doesn't take instructions at all. Lakera says it detects threats in more than 100 languages. With its custom guardrails, you describe what you want caught in plain language and an assistant builds the rule. Pattern rules behave the same way every time. Semantic rules, the ones that catch paraphrases, run at a LOW, MEDIUM or HIGH threshold, and Lakera warns that a lower setting flags more borderline content.
Getting it running
Hyperfence works in your provider's API format. Replace the base URL with your Hyperfence proxy URL and include your API token. That's the whole setup. No SDK, nothing to rewrite, and your enabled Hyperfences apply from the first request. With Lakera, you set up a project and a policy, then have your application or gateway call the Guard API for each user interaction or agent step. It runs as SaaS, or as a self-hosted container on Kubernetes or Docker with an Enterprise licence.
One line changed
the whole integration
before
base_url = "https://api.openai.com/v1"
after
base_url = "https://proxy.hyperfence.io/openai/v1"
+ auth header
headers = {"X-Proxy-Authorization":"Bearer hf_sk_7d"}
When to choose Hyperfence
- You're protecting the LLMs your company uses. Internally and in front of customers.
- You want blocks enforced for you. Hyperfence is the proxy, so there are no verdicts for your code to handle and no gateway to run.
- Your app streams its responses. Streamed responses are protected on every provider, with nothing to build.
- You want repeatable decisions. The same message gets the same score every time, and no LLM makes the call.
- You want no conversations stored. Hyperfence has zero data retention.
- You want to start today. Begin on the free plan without a card, or go straight to Pro for custom Hyperfences.
When to choose Lakera
- You already have an AI gateway in place for the guardrails to plug into.
- Your engineers are ready to handle each flagged result in code.
- You need to self-host the guardrails on your own Kubernetes or Docker, with an Enterprise licence.
Our verdict
Lakera Guard is a guardrails API: it screens each interaction and returns a verdict, which your application or an AI gateway then acts on, with prompts and model outputs logged by default. Hyperfence is the security layer in the request path itself, with deterministic guardrails, custom Hyperfences for your own rules and no copy of your conversations kept.
If you already run an AI gateway and want a verdict to act on, look at Lakera. If you want unsafe prompts and responses stopped for you, with nothing else to run and nothing kept, choose Hyperfence.
Frequently asked questions
Hyperfence enforces blocks itself, as a proxy between your app and your LLM provider. Lakera is a guardrails API that returns a verdict for your application or gateway to act on.
Yes, for screening the traffic between your company and the LLMs it uses. You get enforcement in the request path, repeatable decisions and no stored conversations.
No. Messages are scored as embeddings against a learned boundary, by detectors built for the purpose.
Swap the provider base URL in your app for its Hyperfence equivalent and include your API token. You can then take out the Guard API calls, and blocks start appearing in the platform right away.
No. With zero data retention, your conversations aren't stored, and none of them go to third parties.
Models from OpenAI, Anthropic, Google Gemini, DeepSeek, Perplexity, xAI and more. On Pro you can also bring custom LLMs and private model endpoints, and a single setup can serve several providers.
See Hyperfence in action
Chat with a live AI model running behind a real Hyperfence instance.
Try it now →Last updated: