Chat Completions Plugins
Choose the right plugin for a /v1/chat/completions request.
Use plugins in /v1/chat/completions when one request needs web grounding, an explicit PDF engine override, server-side response healing for structured output, or secret sanitization before model execution.
Add a plugin to the request
Add one entry to plugins. Keep the rest of the request as a normal chat-completions call.
{
"model": "qwen/qwen3-235b-a22b-instruct-2507-fp8",
"messages": [
{
"role": "user",
"content": "Summarize this incident note, but hide apiKey=sk-live-demo-123456."
}
],
"plugins": [
{
"id": "privacy-sanitization",
"mode": "redact"
}
]
}web: add{ "id": "web" }. This plugin is explicit opt-in only.file-parser: addpdf.engineonly when the request must forcepdf-textornative.response-healing: also sendstream: falseand a structuredresponse_format.privacy-sanitization: also sendmodeasredact,tokenize, orblock.
Available plugins
How activation works
pluginsin the request is the normal activation path for/v1/chat/completions.- Authenticated API requests may also inherit saved plugin defaults when plugin settings policy is enabled.
webstill requires explicit opt-in per request.file-parsercan still be applied automatically for PDF inputs when server-managed engine selection is enough.
Limits and compatibility
webandprivacy-sanitizationcannot run in the same request.response-healingonly works withstream: falseandresponse_format.typeset tojson_objectorjson_schema.websupports streaming and non-streaming requests.privacy-sanitizationsupports streaming and non-streaming requests.
See also
- Web Search for explicit built-in web grounding.
- PDF Inputs for
file-parser,pdf-textvsnative, and PDF-specific limits. - Response Healing for non-stream structured-output repair.
- Privacy Sanitization for request-level secret sanitization.
- Structured Outputs if the real job is the JSON contract rather than plugin selection.
- Tool Calling if your application should own retrieval or tool execution.
- Chat Completions API reference for the exact
pluginsfield schema.
Was this page helpful?