OpenAI · Capability

OpenAI Moderations — Moderations

OpenAI Moderations — Moderations. Self-contained Naftiko capability for classifying text and images across harassment, hate, sexual, self-harm, violence, and illicit content categories.

OpenAI Moderations — Moderations is a Naftiko capability published by OpenAI, one of 20 capabilities the APIs.io network indexes for this provider. It bundles 1 operation across the POST method rooted at /v1/moderations.

The capability includes 1 read-only operation. Lead operation: Classify text and/or image inputs against OpenAI content policy categories. Can be deployed as a REST endpoint, MCP tool, or Agent Skill via Naftiko.

Tagged areas include Openai, Moderations, and Content Safety.

Run with Naftiko OpenaiModerationsContent Safety

What You Can Do

POST
Createmoderation — Create a moderation classification.
/v1/moderations

MCP Tools

openai-create-moderation

Classify text and/or image inputs against OpenAI content policy categories.

read-only idempotent

Capability Spec

moderations-moderations.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: OpenAI Moderations — Moderations
  description: 'OpenAI Moderations — Moderations. Self-contained Naftiko capability for classifying text
    and images across harassment, hate, sexual, self-harm, violence, and illicit content categories.'
  tags:
  - Openai
  - Moderations
  - Content Safety
  created: '2026-05-22'
  modified: '2026-05-22'
binds:
- namespace: env
  keys:
    OPENAI_API_KEY: OPENAI_API_KEY
capability:
  consumes:
  - type: http
    namespace: moderations-moderations
    baseUri: https://api.openai.com/v1
    description: OpenAI Moderations business capability.
    resources:
    - name: moderations
      path: /moderations
      operations:
      - name: createmoderation
        method: POST
        description: Classify input text and/or images for policy categories. Supports omni-moderation-latest for multi-modal inputs and is free to use.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          required: true
    authentication:
      type: bearer
      token: '{{env.OPENAI_API_KEY}}'
  exposes:
  - type: rest
    namespace: moderations-moderations-rest
    port: 8080
    description: REST adapter for OpenAI Moderations.
    resources:
    - path: /v1/moderations
      name: moderations
      operations:
      - method: POST
        name: createmoderation
        description: Create a moderation classification.
        call: moderations-moderations.createmoderation
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: moderations-moderations-mcp
    port: 9090
    transport: http
    description: MCP adapter for OpenAI Moderations.
    tools:
    - name: openai-create-moderation
      description: Classify text and/or image inputs against OpenAI content policy categories.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: moderations-moderations.createmoderation
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.