> ## Documentation Index
> Fetch the complete documentation index at: https://docs.orq.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Plugins | AI Studio

> Plugins are request-scoped transforms that mutate the text exchanged with a model in the AI Gateway, such as PII redaction.

**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.

<CardGroup cols={2}>
  <Card title="PII Redaction" icon="user-shield" href="/docs/ai-studio/ai-gateway/features/plugins/pii-redaction">
    Replace personally identifiable information with placeholders before the
    provider sees it, then restore the original values in the response.
  </Card>
</CardGroup>

## Supported endpoints

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

* [`POST /v3/router/responses`](/reference/ai-router/responses/v3-create-response)
* [`POST /v3/router/chat/completions`](/reference/ai-router/chat/create-chat-completion)
* [`POST /v3/router/completions`](/reference/ai-router/completions/create-completion)
* [`POST /v3/router/embeddings`](/reference/ai-router/embeddings/create-embeddings): input only, no restore
* [`POST /v3/router/rerank`](/reference/ai-router/rerank/create-rerank): input only, echoed text restored
* [`POST /v3/router/images/generations`](/reference/ai-router/images/create-image): input only, no restore
