- 发出请求
- 完成对象
- 模型接口
- OpenAI
- 文本生成POST
- 图片理解POST
- 图片生成(gpt-image-1)POST
- 图片生成(dall-e-3)POST
- 图片编辑(edits接口)POST
- 图片编辑(网页版)POST
- Web search(联网搜索)POST
- Responses接口POST
- CodexPOST
- 函数调用POST
- response_formatPOST
- N测试POST
- 创建文本嵌入POST
- 批量创建嵌入POST
- 文本转语音(TTS)POST
- 语音转文本(STT)whisper-1POST
- 语音转文本(STT)gpt-4o-transcribePOST
- 音频翻译 POST
- Audio接口(输出)POST
- Audio接口(输入)POST
- 内容补全接口POST
- 图片变体生成POST
- 创建内容审核POST
- 列出模型GET
- xAI
- Anthropic
- Google
- Midjourney
- 文生图接口
- Realtime (实时语音、对话)
- GPTs 相关
- 文生音乐
- 文生视频
- Rerank API
- Python配置方式
- 帮助中心
创建内容审核
主站接口①
https://api2.aigcbest.top/v1
主站接口①
https://api2.aigcbest.top/v1
POST
https://api2.aigcbest.top/v1
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Header 参数
Authorization
string
可选
示例值:
Bearer {{YOUR_API_KEY}}
Body 参数application/json
input
string
要分类的输入文本
model
string
必需
text-moderation-stable
和text-moderation-latest
。 默认值text-moderation-latest
将随着时间的推移自动升级。这可确保您始终使用我们最准确的模型。如果您使用text-moderation-stable
,我们将在更新模型之前提供提前通知。的准确度text-moderation-stable
可能略低于 的准确度text-moderation-latest
。示例
{
"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 --request POST 'https://api2.aigcbest.top/v1/moderations' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"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"
}
}
]
}'
返回响应
🟢200Create moderation
application/json
Body
id
string
必需
model
string
用于审核的模型
results
array [object {3}]
审核结果的详细信息
categories
object
可选
category_scores
object
可选
flagged
boolean
可选
示例
{
"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
}
]
}
修改于 2025-05-09 21:54:10