← Back to portfolio
v1.0.0-beta Tools & automation

PromptFilter

Security & cost gate for LLM prompts

A gateway in front of every LLM call: trims unnecessary tokens by up to 40%, masks personal data in a session vault and fends off prompt injections before the request reaches the API.

Result
Fewer tokens, masked personal data and intercepted prompt injections.
For
Companies using LLM APIs in production
Stack
FastAPI, AI Security, Token compression, GDPR vault, Gateway
Live
promptfilter.zenkner-technology.de

Security & cost architecture

  1. Token pruning & cost gate

    Removes redundant filler phrases, whitespace and token bloat before sending to the LLM.

    • Up to 40% savings on API tokens
    • Heuristic clean-up without loss of meaning
    • Real-time cost calculation in dollars & euros
    • Faster inference thanks to smaller payloads
  2. GDPR & PII session vault

    Detects sensitive personal data and trade secrets in prompts.

    • Reversible masking of IBANs, credit cards & emails
    • Protection of phone numbers, IP addresses and API keys
    • Local vault to re-hydrate the response
    • GDPR-compliant processing
  3. Prompt injection guard

    Fends off prompt overrides, delimiter exploits and jailbreak attempts.

    • Detection of DAN and developer mode jailbreaks
    • Protection against system prompt exfiltration
    • Delimiter protection against injection attacks
    • Transparent threat score from 0 to 100
  4. Benchmark engine

    Makes token savings provable and shareable.

    • Share cards via canvas
    • Before/after comparison of costs and tokens
    • Export for LinkedIn and X
    • Invitation and referral mechanics

Integration options

Drop-in OpenAI proxy

  • Replace the baseURL in LangChain, LlamaIndex or the official SDK
  • Compatible with standard OpenAI API clients
  • Token savings without code refactoring
  • FastAPI reverse proxy pipeline

Web playground

  • Test prompts in the browser, no registration
  • Real-time token counter
  • Configure filter modules interactively
  • Benchmark cards for social media

Self-hosted gateway

  • On-premise or in your own cloud
  • No data forwarding to third parties
  • Reversible vault tokenisation of confidential data
  • European data protection standards

Architecture & stack

Architecture
FastAPI backend & Vanilla JS / canvas frontend
Token engine
Tiktoken BPE tokenizer (cl100k_base)
Security gate
Regex & heuristic guard (OWASP LLM Top 10)
Privacy
Local session vault with re-hydration
Compression
Heuristic token pruning (up to -40% cost)
Live instance
promptfilter.zenkner-technology.de

Interested in PromptFilter or something similar?

Send me a short note about what you need. You will get a personal reply within one working day.