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

# Create moderation

> Classify if text is potentially harmful.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/moderations
openapi: 3.1.0
info:
  title: Neosantara AI API
  description: OpenAI-compatible LLM Gateway
  version: 1.0.0
servers:
  - url: https://api.neosantara.xyz
    description: Neosantara Production Gateway
security:
  - bearerAuth: []
paths:
  /v1/moderations:
    post:
      tags:
        - System
      summary: Create moderation
      description: Classify if text is potentially harmful.
      operationId: postV1Moderations
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                input:
                  anyOf:
                    - type: string
                    - type: array
                      items:
                        type: string
                model:
                  type: string
                  default: text-moderation-latest
              required:
                - input
      responses:
        '200':
          description: Successful moderation
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.