UniAPI API Doc
首页全部OpenAI平台接口音乐模型图像模型视频模型
首页全部OpenAI平台接口音乐模型图像模型视频模型
  1. Moderations
  • Audio
    • 文本生成音频
      POST
    • 音频转文本
      POST
    • 创建转录
      POST
  • Chat
    • 聊天接口
      POST
  • Completions
    • 自动补全
      POST
  • Embeddings
    • 向量接口
      POST
  • Images
    • 图像编辑
      POST
    • 图像生成
      POST
    • 图像变体
      POST
  • Models
    • 获取模型列表
      GET
  • Moderations
    • 审核
      POST
  • Responses
    • response
      POST
  1. Moderations

审核

POST
/v1/moderations
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.uniapi.io/v1/moderations' \
--header 'Content-Type: application/json' \
--data-raw '{
    "input": "",
    "model": "string"
}'
响应示例响应示例
{
    "id": "string",
    "model": "string",
    "results": [
        {
            "flagged": true,
            "categories": {
                "hate": true,
                "hate/threatening": true,
                "harassment": true,
                "harassment/threatening": true,
                "illicit": true,
                "illicit/violent": true,
                "self-harm": true,
                "self-harm/intent": true,
                "self-harm/instructions": true,
                "sexual": true,
                "sexual/minors": true,
                "violence": true,
                "violence/graphic": true
            },
            "category_scores": {
                "hate": 0,
                "hate/threatening": 0,
                "harassment": 0,
                "harassment/threatening": 0,
                "illicit": 0,
                "illicit/violent": 0,
                "self-harm": 0,
                "self-harm/intent": 0,
                "self-harm/instructions": 0,
                "sexual": 0,
                "sexual/minors": 0,
                "violence": 0,
                "violence/graphic": 0
            },
            "category_applied_input_types": {
                "hate": [
                    "text"
                ],
                "hate/threatening": [
                    "text"
                ],
                "harassment": [
                    "text"
                ],
                "harassment/threatening": [
                    "text"
                ],
                "illicit": [
                    "text"
                ],
                "illicit/violent": [
                    "text"
                ],
                "self-harm": [
                    "text"
                ],
                "self-harm/intent": [
                    "text"
                ],
                "self-harm/instructions": [
                    "text"
                ],
                "sexual": [
                    "text"
                ],
                "sexual/minors": [
                    "text"
                ],
                "violence": [
                    "text"
                ],
                "violence/graphic": [
                    "text"
                ]
            }
        }
    ]
}

请求参数

Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
Body 参数application/json

示例

返回响应

🟢200成功
application/json
OK
Body

修改于 2025-05-18 07:36:21
上一页
获取模型列表
下一页
response
Built with