Skip to content

Groq integration

Mask personal data before it reaches Groq

Point an OpenAI-compatible client at Maskflare's Groq route to mask personal data and secrets in low-latency inference requests.
What the gateway inspects
  • Every text field in the request body: user and system messages, tool and function-call arguments, and tool results
  • Streaming responses
  • Base64, hex, and percent-encoded text inside the request is decoded and checked too

Teams pick Groq for speed, so any control in front of it has to be fast too. Maskflare finds identifiers with patterns, validators, and dictionaries, and a local named-entity layer helps with names, so masking stays fast and makes no call to another AI provider.

Requests go through your gateway, sensitive values are masked before they reach Groq, and with restoration on, the answer comes back with the real values.

Set up Groq with Maskflare

Requests go to /v1/groq on your Maskflare gateway instead of the provider.

Python: OpenAI SDK pointed at Maskflare's Groq route
from openai import OpenAI

client = OpenAI(
    base_url="https://YOUR_GATEWAY_HOST/v1/groq",
    api_key="mf_live_...",  # a Maskflare key
)

reply = client.chat.completions.create(
    model="llama-3.3-70b-versatile",
    messages=[{"role": "user", "content": "Route this message from +44 20 7946 0958"}],
)

What gets masked

  • Every text field in the request body: user and system messages, tool and function-call arguments, and tool results
  • Streaming responses
  • Base64, hex, and percent-encoded text inside the request is decoded and checked too

Good to know

  • In our engine benchmarks, masking a 10 KB chat request with the default rules takes about 2 ms (median).
  • A rule set to block stops the request before it reaches the provider and returns HTTP 403 with the matching rule keys, never the values.
  • Store the provider key once in the Maskflare console, or keep sending it per request in pass-through mode.
  • No code change option: the Maskflare forward proxy inspects traffic to api.groq.com with the same rules.

Frequently asked questions

How much latency does masking add?

Maskflare's engine benchmarks show a median of about 2 ms to mask a 10 KB chat request with the default rules. Network time to the gateway comes on top and depends on where you call it from.

Does Maskflare use an AI model to find PII?

Partly, and never a third-party one. Identifiers such as IBANs and API keys are found by validated patterns, dictionaries, and Exact Data Match. A local named-entity layer that runs inside Maskflare helps find names, places, and free-text details.

Which Groq endpoints are covered?

Every path under /v1/groq is forwarded to Groq's OpenAI-compatible API with the request body masked.

Other ai providers integrations

All integrations

See it on your own data

Try Maskflare free.
Bring your hardest prompts.

28-day free trial or 10,000 requests, whichever comes first. Point one app at the gateway or enroll a few laptops, and watch what gets masked. Or talk to us first.

  • SOC 2 Type II: In progress
  • ISO 27001: In progress
  • EU hosting by default · on-premises available
  • Prompts and files never stored
  • Never used to train AI models
  • GDPR · nDSG · DPA available
  • Trust center