Text Moderation

text/moderation/openai by OpenAI
Text Moderation+ more tasksProvider defaultAsyncSyncPDF inputImage inputAudio inputVideo inputText inputURL inputEU hosting
Price from
Free
Tasks
1
Text Moderation
Regions
Global
Mode
sync
Input
Text
Output
nsfw_likelihood, items, nsfw_likelihood_score

About OpenAI Text Moderation

Text moderation scans text for offensive, sexually explicit or suggestive content, it also checks if there is any content of self-harm, violence, racist or hate speech.

OpenAI Text Moderation is OpenAI's default model for Text Moderation available on Eden AI for Text Moderation, from Free. Call it with the same API key as every other Eden AI model by sending its model string to the Universal AI endpoint, with processing in global regions.

Learn more about Text Moderation APIs on Eden AI

Tasks and prices

OpenAI Text Moderation is available on Eden AI for 1 tasks. Each task has its own model string and price: send that string to the Universal AI endpoint to use the model for that task.

Task
Price
Regions
Mode
Docs
Playground
Text Moderationtext/moderation/openai
Free
sync

Parameters

What you send and what you get back when you call OpenAI Text Moderation through Eden AI. The same fields work with every model of the same task, so you can switch model without changing your code.

Input

  • text (required): text. Text to moderate
  • language: text. ISO 639-1 language code

Response

  • nsfw_likelihood
  • items
  • nsfw_likelihood_score

Estimate your monthly cost

Enter your monthly volume for Text Moderation to compare OpenAI Text Moderation with its cheapest alternatives.

Call OpenAI Text Moderation with Eden AI

Send the model string to the Universal AI endpoint. To use another model, copy its string from the table above.

import requests

response = requests.post(
    "https://api.edenai.run/v3/universal-ai",
    headers={"Authorization": "Bearer YOUR_EDENAI_API_KEY"},
    json={
        "model": "",
        "input": {},
    },
)
print(response.json())

Questions about OpenAI Text Moderation

On Eden AI, OpenAI Text Moderation costs Free for Text Moderation. The Tasks and prices table lists the price for each task, and you only pay for what you use.

On Eden AI, OpenAI Text Moderation is available for: Text Moderation. Input: Text. Output: nsfw_likelihood, items, nsfw_likelihood_score.

Yes. OpenAI Text Moderation is processed in Europe for at least one task: see the Regions column in the Tasks and prices table.

Asynchronous: you start a job, then get the result by polling it or through a webhook. This suits long files such as audio, video or multipage documents.

Eden AI offers Text Moderation from 3 providers, all callable with the same API key. The cheapest models are compared just below.

More from OpenAI

Other OpenAI models on Eden AI, for every task.