Skip to main content
Plugins are request-scoped transforms applied to the text exchanged with a model in the AI Gateway. A plugin mutates the request before the provider sees it and can restore the response on the way back. Attach plugins per request through the plugins array. Each plugin is identified by an id discriminator.

PII Redaction

Replace personally identifiable information with placeholders before the provider sees it, then restore the original values in the response.

Supported endpoints

The plugins array is accepted on the following AI Gateway endpoints: