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

# Check content moderation

> The moderations endpoint is a tool you can use to check whether content complies with an LLM Providers policies



## OpenAPI

````yaml /openapi.json post /moderations
openapi: 3.0.3
info:
  title: AnyAPI API
  description: >-
    Universal API Integration Platform - Connect any API to any API with
    intelligent data transformation and workflow orchestration.
  version: 1.0.0
  contact:
    name: AnyAPI Support
    email: support@anyapi.ai
    url: https://anyapi.ai/support
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
servers:
  - url: https://api.anyapi.ai/v1
    description: Production server
security:
  - bearerAuth: []
tags:
  - name: Text
    description: Generate text completions
  - name: Images
    description: Generate and manipulate images
  - name: Audio
    description: Generate speech and transcribe audio
  - name: Music
    description: List and retrieve model information
  - name: Video
    description: Create vector embeddings for text
  - name: Vision
    description: Create vector embeddings for text
  - name: 3D Models
    description: Create vector embeddings for text
  - name: Embeddings
    description: Create vector embeddings for text
  - name: Files
    description: Files
  - name: Batches
    description: Batches
  - name: Moderation
    description: Moderation
  - name: Other
    description: Other models
paths:
  /moderations:
    post:
      tags:
        - Moderation
      summary: Check content moderation
      description: >-
        The moderations endpoint is a tool you can use to check whether content
        complies with an LLM Providers policies
      operationId: checkModeration
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - input
                - model
              properties:
                input:
                  type: string
                  description: The text to check for moderation
                  example: Sample text goes here
                model:
                  type: string
                  description: The moderation model to use
                  example: text-moderation-stable
            example:
              input: Sample text goes here
              model: text-moderation-stable
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: Response identifier
                  model:
                    type: string
                    description: Model used for moderation
                  results:
                    type: array
                    items:
                      type: object
                      properties:
                        flagged:
                          type: boolean
                          description: Whether the content was flagged
                        categories:
                          type: object
                          description: Categories that were checked
                          additionalProperties:
                            type: boolean
                        category_scores:
                          type: object
                          description: Scores for each category
                          additionalProperties:
                            type: number
        '400':
          description: Bad request - invalid input
        '401':
          description: Unauthorized - invalid API key
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Bearer token authentication. Get your API key from the dashboard.

````