---
title: "litellm.moderation()"
url: "/docs/embedding/moderation"
canonical_url: "https://docs.litellm.ai/docs/embedding/moderation"
type: "docs"
last_updated: "2026-10-13"
summary: "LiteLLM supports the moderation endpoint for OpenAI"
---
# litellm.moderation()

> Index of all LiteLLM docs: https://docs.litellm.ai/llms.txt

LiteLLM supports the moderation endpoint for OpenAI

## Usage
```python
import os
from litellm import moderation
os.environ['OPENAI_API_KEY'] = ""
response = moderation(input="i'm ishaan cto of litellm")   
```
