Chat Completions Plugins
Choose the right plugin for a /v1/chat/completions request.
Use plugins in /v1/chat/completions when one request needs an explicit PDF engine override, server-side response healing for structured output, or secret sanitization before model execution. The web plugin is also listed here as the planned built-in web search path, but it is not production-ready yet.
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 still coming soon and is not production-ready yet.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
Web Search
- Description
- Built-in web grounding after release. This path is still coming soon, so use Tool Calling if you need supported retrieval right now.
- Docs
- Web Search
PDF Inputs
- Description
- Force a specific PDF engine when server-managed auto handling is not enough, or keep reading for `pdf-text` versus `native`.
- Docs
- PDF Inputs
Response Healing
- Description
- Add a server-side repair step for non-stream structured output when `response_format` is already correct but responses still break.
- Docs
- Response Healing
Privacy Sanitization
- Description
- Redact, tokenize, or block sensitive fragments before model execution. Do not combine it with built-in web search.
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 the planned built-in web grounding path. It is still coming soon.
- 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?