Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/openai/resources/mod.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.66.1/resources/mod.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.