The Moderation endpoint checks text for harmful or inappropriate content, returning flags for categories like hate or violence. Example:
python
1fromopenaiimportOpenAI23client = OpenAI(4base_url="https://api.livrouter.com/v1"5)67response = client.moderations.create(input="This is a safe sentence.")8print(response.results[0].flagged)