Skip to content

Together AI integration

Mask personal data before it reaches Together AI

Send Together AI requests through Maskflare to mask personal data and secrets for open-weight models in chat and embeddings.
What the gateway inspects
  • Every text field in the request body: user and system messages, tool and function-call arguments, and tool results
  • Embeddings inputs, masked deterministically
  • Streaming responses
  • Base64, hex, and percent-encoded text inside the request is decoded and checked too

Together AI hosts open-weight models behind one API, so it is often where teams experiment, and experiments are where real customer data tends to slip in early.

Putting Maskflare in front of Together AI from the start means the same rules apply to experiments and production: sensitive values are masked before they leave, and embeddings stay consistent.

Set up Together AI with Maskflare

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

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

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

reply = client.chat.completions.create(
    model="meta-llama/Llama-3.3-70B-Instruct-Turbo",
    messages=[{"role": "user", "content": "Summarise feedback from [email protected]"}],
)

What gets masked

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

Good to know

  • 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.together.xyz with the same rules.

Frequently asked questions

Does it work for every model on Together AI?

Yes. Masking applies to the request body regardless of model, for every path under /v1/together.

Can we use masked embeddings for retrieval?

Yes. Embeddings inputs are masked deterministically, so the same value always produces the same token and search over masked text stays consistent.

Can we start by only monitoring?

Yes. Set rules to alert: matches are counted in the traffic log while requests pass unchanged, so you can measure exposure before masking.

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