EYE AI
  • 🧿Eye AI - Explained
  • Overview
    • 🧿The beginning of a new age
    • 🧿Crypto robotics / Eye-AI
      • 🧿Functionality
    • 🧿Metaverse Eye-AI
      • 🧿AI powering the Metaverse
    • 🧿Trend Tracking
    • 🧿Point to ETH network
    • 🧿Introduction of the Eye- AI API
      • 🧿Making requests
      • 🧿Models
        • ▪️List models
      • 🧿Completions
        • ▪️Create completion
      • 🧿Edits
      • 🧿Images
        • ▪️Create image edit
        • ▪️Create image variation
      • 🧿Embeddings
      • 🧿File
        • ▪️Upload File
        • ▪️Delete File
        • ▪️Retrieve file
        • ▪️Retrieve file content
        • ▪️Fine-tunes
      • 🧿Moderations
      • 🧿Parameter details
    • 🧿Terms of Artificial Intelligence
    • 🧿AI and the developers
    • 🧿How AI can help organizations
    • 🧿AI in the company
      • 🧿What is driving AI adoption?
    • 🧿AI as a strategic must and competitive advantage
      • 🧿Best practices to get the most out of AI
    • 🧿Turnkey AI is making AI easier to operationalize
    • 🧿From artificial intelligence to adaptive intelligence
    • 🪙Token Eye AI
      • 🧿Taxes
      • 🧿Token Metrics
    • 🕵️‍♀️Security AI
    • 🛤️Roadmap
    • 🫂Social Media
    • 📊Fairlaunch ETH - Pinksale
Powered by GitBook
On this page
  1. Overview
  2. Introduction of the Eye- AI API

Moderations

Given a input text, outputs if the model classifies it as violating Eye-ai content policy.

Example request
curl https://api.eye-ai.com/v1/moderations \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -d '{
  "input": "I want to kill them."
}'
Parameters
{
  "input": "I want to kill them."
}
Response
{
  "id": "modr-5MWoLO",
  "model": "text-moderation-001",
  "results": [
    {
      "categories": {
        "hate": false,
        "hate/threatening": true,
        "self-harm": false,
        "sexual": false,
        "sexual/minors": false,
        "violence": true,
        "violence/graphic": false
      },
      "category_scores": {
        "hate": 0.22714105248451233,
        "hate/threatening": 0.4132447838783264,
        "self-harm": 0.005232391878962517,
        "sexual": 0.01407341007143259,
        "sexual/minors": 0.0038522258400917053,
        "violence": 0.9223177433013916,
        "violence/graphic": 0.036865197122097015
      },
      "flagged": true
    }
  ]
}

PreviousFine-tunesNextParameter details

Last updated 2 years ago

🧿
🧿
Page cover image