Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/openai/resources/moderations.ts>ModerationCreateParams

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Latest
interface ModerationCreateParams
import { type ModerationCreateParams } from "https://deno.land/x/openai@v4.69.0/resources/moderations.ts";

Properties

input: string | Array<string> | Array<ModerationMultiModalInput>

Input (or inputs) to classify. Can be a single string, an array of strings, or an array of multi-modal input objects similar to other models.

optional
model: (string & { }) | ModerationModel

The content moderation model you would like to use. Learn more in the moderation guide, and learn about available models here.