OpenAI APIs · Schema

ModerationResult

Artificial IntelligenceEmbeddingsImage-GenerationLanguage ModelsSpeech

Properties

Name Type Description
flagged boolean Whether the content was flagged as potentially harmful
categories object
category_scores object
View JSON Schema on GitHub

JSON Schema

openai-apis-moderationresult-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ModerationResult",
  "title": "ModerationResult",
  "type": "object",
  "properties": {
    "flagged": {
      "type": "boolean",
      "description": "Whether the content was flagged as potentially harmful"
    },
    "categories": {
      "type": "object",
      "properties": {
        "hate": {
          "type": "boolean",
          "description": "Content that expresses hate toward a group"
        },
        "hate/threatening": {
          "type": "boolean",
          "description": "Hateful content that includes violence or threats"
        },
        "harassment": {
          "type": "boolean",
          "description": "Content that harasses a target"
        },
        "harassment/threatening": {
          "type": "boolean",
          "description": "Harassment content that includes violence or threats"
        },
        "self-harm": {
          "type": "boolean",
          "description": "Content that promotes or depicts self-harm"
        },
        "self-harm/intent": {
          "type": "boolean",
          "description": "Content where the speaker expresses intent to self-harm"
        },
        "self-harm/instructions": {
          "type": "boolean",
          "description": "Content that provides instructions for self-harm"
        },
        "sexual": {
          "type": "boolean",
          "description": "Sexual content"
        },
        "sexual/minors": {
          "type": "boolean",
          "description": "Sexual content involving minors"
        },
        "violence": {
          "type": "boolean",
          "description": "Content depicting violence"
        },
        "violence/graphic": {
          "type": "boolean",
          "description": "Graphic violence content"
        }
      }
    },
    "category_scores": {
      "type": "object",
      "properties": {
        "hate": {
          "type": "number",
          "description": "Score for hate category"
        },
        "hate/threatening": {
          "type": "number",
          "description": "Score for hate/threatening category"
        },
        "harassment": {
          "type": "number",
          "description": "Score for harassment category"
        },
        "harassment/threatening": {
          "type": "number",
          "description": "Score for harassment/threatening category"
        },
        "self-harm": {
          "type": "number",
          "description": "Score for self-harm category"
        },
        "self-harm/intent": {
          "type": "number",
          "description": "Score for self-harm/intent category"
        },
        "self-harm/instructions": {
          "type": "number",
          "description": "Score for self-harm/instructions category"
        },
        "sexual": {
          "type": "number",
          "description": "Score for sexual category"
        },
        "sexual/minors": {
          "type": "number",
          "description": "Score for sexual/minors category"
        },
        "violence": {
          "type": "number",
          "description": "Score for violence category"
        },
        "violence/graphic": {
          "type": "number",
          "description": "Score for violence/graphic category"
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/openai-apis-moderationresult"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.