1. OpenAi接口
AiXor文档
  • 操作指南
  • 常见问题
  • 当前订阅套餐模型倍率
  • OpenClaw接入教程
  • OpenClaw一键脚本接入教程
  • Claude Code 安装接入教程
  • Codex安装接入教程
  • VScode安装Claudecode教程
  • Chatbox接入教程
  • Cherry studio接入教程
  • gpt-image-2使用教程
  • OpenAi接口
    • 文本生成
      POST
    • 文本生成 - 上下文阅读
      POST
    • 图片理解
      POST
    • 图片生成(gpt-image-1/sora_image/flux-kontext-pro)
      POST
    • 图片编辑 - edits
      POST
    • 图片编辑 - 网页版
      POST
    • 函数调用 - tools
      POST
    • v1/Responses - 通用
      POST
    • 内容补全接口
      POST
    • 创建内容审核
      POST
    • PDF文件分析
      POST
    • 深度研究 - Deep-research
      POST
    • 联网搜索 - Web search
      POST
    • response_format
      POST
  • Authropic Claude接口
    • OpenAi兼容接口
      • 文本生成
      • 文本生成 - 强制返回思考 Copy
      • 函数调用
      • 图片理解
      • 联网搜索 - Web search
    • 文本生成
      POST
    • 图片理解
      POST
    • 文本生成 - 强制返回思考
      POST
    • 函数调用
      POST
    • 联网搜索 - Web search
      POST
    • 文本生成 - 思考配置
      POST
    • PDF传输
      POST
  • Google Gemini接口
  • 疑难问题
    • Codex
    • Claude Code
    • OpenClaw
    • API
  1. OpenAi接口

创建内容审核

POST
/v1/chat/completions
对文本是否违反 OpenAI 的内容政策进行分类

请求参数

Header 参数

Body 参数application/json必填

示例
{
    "model": "omni-moderation-latest",
    "input": [
        {
            "type": "text",
            "text": "...text to classify goes here..."
        },
        {
            "type": "image_url",
            "image_url": {
                "url": "https://github.com/dianping/cat/raw/master/cat-home/src/main/webapp/images/logo/cat_logo03.png"
            }
        }
    ]
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location 'https://aixor.org/v1/chat/completions' \
--header 'Authorization: sk-' \
--header 'Content-Type: application/json' \
--data '{
    "model": "omni-moderation-latest",
    "input": [
        {
            "type": "text",
            "text": "...text to classify goes here..."
        },
        {
            "type": "image_url",
            "image_url": {
                "url": "https://github.com/dianping/cat/raw/master/cat-home/src/main/webapp/images/logo/cat_logo03.png"
            }
        }
    ]
}'

返回响应

🟢200成功
application/json
Bodyapplication/json

示例
{
    "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
        }
    ]
}
修改于 2026-03-17 08:55:57
上一页
内容补全接口
下一页
PDF文件分析
Built with