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

# POST /v1/moderations

> Available at the instance root or under a provider/namespace prefix. Shared paths select the wire dialect from client headers; without dialect evidence, the first listed route wins.



## OpenAPI

````yaml /generated/openapi.json post /v1/moderations
openapi: 3.1.0
info:
  description: >-
    Forwarding, management, portal and OAuth APIs generated from Rust types.
    Input and output schemas preserve their respective Serde contracts.
    Streaming events and WebSocket messages are documented alongside HTTP
    payloads.
  title: GPROXY HTTP API
  version: 4.2.1
servers: []
security:
  - bearer: []
  - anthropicKey: []
  - googleKey: []
  - queryKey: []
paths:
  /v1/moderations:
    post:
      tags:
        - Forwarding
      summary: POST /v1/moderations
      description: >-
        Available at the instance root or under a provider/namespace prefix.
        Shared paths select the wire dialect from client headers; without
        dialect evidence, the first listed route wins.
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Input_CreateModerationRequestBody'
        required: true
      responses:
        2XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Output_CreateModerationResponseBody'
          description: Successful protocol response
        default:
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/Output_Envelope'
                  - properties:
                      error:
                        $ref: '#/components/schemas/Output_ErrorDetail'
                    required:
                      - error
                    type: object
                  - allOf:
                      - $ref: '#/components/schemas/Output_ErrorEvent'
                      - properties:
                          type:
                            const: error
                        required:
                          - type
                        type: object
                  - properties:
                      error:
                        $ref: '#/components/schemas/Output_GenerateContentError'
                    required:
                      - error
                    type: object
            text/plain:
              schema:
                type: string
          description: Gateway or upstream error
components:
  schemas:
    Input_CreateModerationRequestBody:
      additionalProperties: true
      properties:
        input:
          $ref: '#/components/schemas/Input_ModerationInput'
        model:
          type:
            - string
            - 'null'
      required:
        - input
      type: object
    Output_CreateModerationResponseBody:
      additionalProperties: true
      properties:
        id:
          type: string
        model:
          type: string
        results:
          items:
            $ref: '#/components/schemas/Output_ModerationResult2'
          type: array
      required:
        - id
        - model
        - results
      type: object
    Output_Envelope:
      properties:
        error:
          $ref: '#/components/schemas/Output_EnvelopeBody'
      required:
        - error
      type: object
    Output_ErrorDetail:
      properties:
        code:
          type:
            - string
            - 'null'
        message:
          type: string
        param:
          type:
            - string
            - 'null'
        type:
          type:
            - string
            - 'null'
      required:
        - message
      type: object
    Output_ErrorEvent:
      additionalProperties: true
      properties:
        error:
          $ref: '#/components/schemas/Output_StreamError'
        request_id:
          type:
            - string
            - 'null'
      required:
        - error
      type: object
    Output_GenerateContentError:
      additionalProperties: true
      properties:
        code:
          format: int64
          type: integer
        details:
          items: true
          type:
            - array
            - 'null'
        message:
          type: string
        status:
          type:
            - string
            - 'null'
      required:
        - code
        - message
      type: object
    Input_ModerationInput:
      anyOf:
        - type: string
        - items:
            type: string
          type: array
        - items:
            $ref: '#/components/schemas/Input_ModerationContent'
          type: array
    Output_ModerationResult2:
      additionalProperties: true
      properties:
        categories:
          additionalProperties:
            type:
              - boolean
              - 'null'
          type: object
        category_applied_input_types:
          additionalProperties:
            items:
              type: string
            type: array
          type: object
        category_scores:
          additionalProperties:
            type: number
          type: object
        flagged:
          type: boolean
      required:
        - flagged
        - categories
        - category_scores
        - category_applied_input_types
      type: object
    Output_EnvelopeBody:
      properties:
        code:
          type: string
        message:
          type: string
      required:
        - code
        - message
      type: object
    Output_StreamError:
      additionalProperties: true
      properties:
        message:
          type: string
        type:
          $ref: '#/components/schemas/Output_StreamErrorType'
      required:
        - type
        - message
      type: object
    Input_ModerationContent:
      oneOf:
        - additionalProperties: true
          properties:
            text:
              type: string
            type:
              const: text
              type: string
          required:
            - type
            - text
          type: object
        - additionalProperties: true
          properties:
            image_url:
              $ref: '#/components/schemas/Input_ModerationImageUrl'
            type:
              const: image_url
              type: string
          required:
            - type
            - image_url
          type: object
    Output_StreamErrorType:
      enum:
        - api_error
        - authentication_error
        - billing_error
        - invalid_request_error
        - not_found_error
        - overloaded_error
        - permission_error
        - rate_limit_error
        - timeout_error
        - conflict_error
        - request_too_large
      type: string
    Input_ModerationImageUrl:
      additionalProperties: true
      properties:
        url:
          type: string
      required:
        - url
      type: object
  securitySchemes:
    bearer:
      scheme: bearer
      type: http
    anthropicKey:
      in: header
      name: x-api-key
      type: apiKey
    googleKey:
      in: header
      name: x-goog-api-key
      type: apiKey
    queryKey:
      in: query
      name: key
      type: apiKey

````

## Related topics

- [Routing & Endpoints](https://gproxy.leenhawk.com/reference/routing-table.md)
- [POST /v1/chat/completions](https://gproxy.leenhawk.com/api-reference/forwarding/post-v1chatcompletions.md)
- [POST /v1/conversations](https://gproxy.leenhawk.com/api-reference/forwarding/post-v1conversations.md)
- [POST /v1/responses](https://gproxy.leenhawk.com/api-reference/forwarding/post-v1responses.md)
- [POST /v1/images/generations](https://gproxy.leenhawk.com/api-reference/forwarding/post-v1imagesgenerations.md)


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