Logo
Back to all models

Text Moderation - In-Depth Overview

OpenAI · Moderation

deprecated

Get all the details on Text Moderation, an AI model from OpenAI. This page covers its token limits, pricing structure, key capabilities such as content_moderation, available API code samples, and performance strengths.

Key Metrics

Input Limit

No data tokens

Output Limit

No data tokens

Input Cost

$0.00/1M

Output Cost

$0.00/1M

Sample API Code

from openai import OpenAI

client = OpenAI()

def moderate_text(text):
  response = client.moderations.create(
    input=text
  )
  
  results = response.results
  print(results)

moderate_text('I want to kill myself.')

Required Libraries

openai
openai

Notes

This is a previous generation text-only moderation model and is deprecated. The current model is omni-moderation.

Capabilities

content moderation

Supported Data Types

Input Types

text

Output Types

json

Strengths & Weaknesses

Exceptional at

detecting unsafe text

Poor at

multimodal moderation

Additional Information

Latest Update

May 1, 2023

Knowledge Cutoff

No data