Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
method OpenAI.prototype.createModeration
import { OpenAI } from "https://deno.land/x/commit_genius@v0.2.0/deps.ts";

Classifies if text violates OpenAI's Content Policy

https://platform.openai.com/docs/api-reference/moderations/create

Parameters

input: string | string[]
optional
model: string

Returns

Promise<Moderation>