# OpenAI 内容审核 API

OpenAI 内容审核 API 是 OpenAI 于 2022 年推出的一款免费分类端点，用于标记有害文本，并自 2024 年 5 月起支持对图像进行标记，覆盖多个具名危害类别。<sup>[1](https://openai.com/index/upgrading-the-moderation-api-with-our-new-multimodal-moderation-model/)</sup><sup> • </sup><sup>[2](https://openai.com/index/new-and-improved-content-moderation-tooling/)</sup>

| 事实 | 详情 |
|---|---|
| 推出时间 | 2022 年，作为基于 GPT 的免费文本分类端点<sup>[2](https://openai.com/index/new-and-improved-content-moderation-tooling/)</sup> |
| 当前模型 | omni-moderation-latest，基于 GPT-4o，接受文本和图像输入（2024 年 5 月）<sup>[1](https://openai.com/index/upgrading-the-moderation-api-with-our-new-multimodal-moderation-model/)</sup> |
| 定价 | 对所有开发者免费使用<sup>[1](https://openai.com/index/upgrading-the-moderation-api-with-our-new-multimodal-moderation-model/)</sup> |
| 速率限制 | 分级制：免费层 250 RPM，最高至第 5 层的 5,000 RPM 和 500,000 TPM<sup>[3](https://developers.openai.com/api/docs/models/omni-moderation-latest)</sup> |
| 2024 年新增类别 | illicit 和 illicit/violent（仅限文本）<sup>[1](https://openai.com/index/upgrading-the-moderation-api-with-our-new-multimodal-moderation-model/)</sup> |
| 多语言增益（供应商报告） | 在 OpenAI 内部评估中，40 种语言上提升 42%<sup>[1](https://openai.com/index/upgrading-the-moderation-api-with-our-new-multimodal-moderation-model/)</sup> |
| 具名采用者 | Inworld（2022 年）、Grammarly 和 ElevenLabs（2024 年）<sup>[1](https://openai.com/index/upgrading-the-moderation-api-with-our-new-multimodal-moderation-model/)</sup><sup> • </sup><sup>[2](https://openai.com/index/new-and-improved-content-moderation-tooling/)</sup> |

## 推出历史与版本

OpenAI 于 2022 年推出内容审核端点，作为一项免费服务，让 API 开发者能够使用基于 GPT 的分类器来检测不良内容。给定文本输入后，该端点会评估内容是否属于色情、仇恨、暴力或宣扬自残，这些均为 OpenAI 自身内容政策所禁止的内容。在推出之际，OpenAI 还发布了一篇技术论文，描述其方法论及用于评估的数据集。<sup>[2](https://openai.com/index/new-and-improved-content-moderation-tooling/)</sup>

2024 年 5 月，该端点升级为 omni-moderation-latest，这是一个基于 GPT-4o 的新审核模型，同时接受文本和图像输入。OpenAI 称其比前代模型更准确，尤其是在非英语语言中，并称其为该公司能力最强的审核模型。<sup>[1](https://openai.com/index/upgrading-the-moderation-api-with-our-new-multimodal-moderation-model/)</sup><sup> • </sup><sup>[3](https://developers.openai.com/api/docs/models/omni-moderation-latest)</sup> 2024 年的模型还新增了两个仅限文本的危害类别——illicit 和 illicit/violent，此为早先的文本审核模型所未覆盖的。<sup>[1](https://openai.com/index/upgrading-the-moderation-api-with-our-new-multimodal-moderation-model/)</sup>

## 工作原理：端点、类别与阈值

开发者将内容发送至 /moderations 端点，并收到结构化响应。响应包含一个顶层的 flagged 布尔值，若模型将内容分类为可能有害则设为 true；一个 categories 字典，包含各个类别的标志；以及 category_scores，其中每个介于 0 到 1 之间的分数代表模型认为输入包含该类别内容的置信度。category_applied_input_types 字段则指明某个类别适用于哪种输入类型——文本还是图像。<sup>[4](https://developers.openai.com/api/docs/guides/moderation)</sup>

开发者无需单独发起调用，而是可以在生成请求中传入一个顶层 moderation 对象，在同一次往返中同时获得模型输入和生成输出的审核分数。<sup>[4](https://developers.openai.com/api/docs/guides/moderation)</sup>

**多模态覆盖是部分的。** omni-moderation-latest 模型接受文本和图像输入，但不分类音频，图像文件最大可达 20 MB。[图像分类](https://www.edgepedia.org/zh/image-classification)支持 violence、violence/graphic、self-harm、self-harm/intent、self-harm/instruction 和 sexual，但不支持 sexual/minors；其余类别（包括两个 illicit 类别）仅限文本。若仅发送图像而无随附文本，仅限文本的类别会返回 0 分。<sup>[1](https://openai.com/index/upgrading-the-moderation-api-with-our-new-multimodal-moderation-model/)</sup><sup> • </sup><sup>[4](https://developers.openai.com/api/docs/guides/moderation)</sup>

OpenAI 自身的指导原则是，分数应被视为应用程序策略的信号，而非自动拦截决策。该公司还指出了一个反直觉的失效模式：模型给出的拒绝或安全感知响应本身就可能触发标记，因为拒绝文本可能描述了被禁止的内容。由于 OpenAI 计划持续升级该端点的底层模型，依赖 category_scores 的自定义策略可能需要随时间重新校准；2024 年模型的分数经过校准，以代表内容违反相关政策的概率，OpenAI 表示这应使分数在未来的模型之间更加一致。<sup>[4](https://developers.openai.com/api/docs/guides/moderation)</sup><sup> • </sup><sup>[1](https://openai.com/index/upgrading-the-moderation-api-with-our-new-multimodal-moderation-model/)</sup>

## 关键数字

该端点免费；OpenAI 在 2024 年的公告和当前文档中均直接声明了这一点。<sup>[1](https://openai.com/index/upgrading-the-moderation-api-with-our-new-multimodal-moderation-model/)</sup><sup> • </sup><sup>[4](https://developers.openai.com/api/docs/guides/moderation)</sup> 速率限制采用分级制：免费层允许每分钟 250 次请求（RPM）、每天 5,000 次请求以及每分钟 10,000 个词元（TPM）；第 1 层允许 500 RPM 和 10,000 RPD；第 2 层允许 500 RPM 和 20,000 TPM；第 3 层允许 1,000 RPM 和 50,000 TPM；第 4 层允许 2,000 RPM 和 250,000 TPM；第 5 层允许 5,000 RPM 和 500,000 TPM。<sup>[3](https://developers.openai.com/api/docs/models/omni-moderation-latest)</sup>

准确率数据来自 OpenAI 自身。在一项涵盖 40 种语言的测试中，该公司报告称，与前一模型相比，omni-moderation-latest 在其内部多语言评估中提升了 42%，并在 98% 的受测语言上有所改善。对于高棉语和斯瓦蒂语等低资源语言，其报告了 70% 的提升。<sup>[1](https://openai.com/index/upgrading-the-moderation-api-with-our-new-multimodal-moderation-model/)</sup>

## 采用与反响

采用情况的证据由供应商引用。在 2022 年推出时，OpenAI 点名 Inworld——一家 [OpenAI API](https://www.edgepedia.org/zh/openai-api) 客户——使用内容审核端点来帮助其基于 AI 的虚拟角色保持对受众的适宜性。<sup>[2](https://openai.com/index/new-and-improved-content-moderation-tooling/)</sup> 在 2024 年的公告中，OpenAI 表示 [Grammarly](https://www.edgepedia.org/zh/grammarly) 将内容审核 API 作为其 AI 沟通辅助功能中安全护栏的一部分，而 [ElevenLabs](https://www.edgepedia.org/zh/elevenlabs) 则将其与内部解决方案配合使用，以扫描其音频 AI 产品生成的内容。<sup>[1](https://openai.com/index/upgrading-the-moderation-api-with-our-new-multimodal-moderation-model/)</sup>

推出时的一项限制对于解读使用者范围很重要：OpenAI 在推出时声明，该端点不支持监控第三方流量，这意味着该工具的定位是供开发者检查自身应用程序的内容，而非监视其他平台。<sup>[2](https://openai.com/index/new-and-improved-content-moderation-tooling/)</sup>

## 局限性与非适用范围

若干限制来自 OpenAI 自身的文档。分数是信号，不是拦截，阈值由开发者负责设定。拒绝响应可能触发标记。仅限文本的类别对纯图像输入打 0 分，因此纯图像载荷对 illicit 类别完全不可见。<sup>[4](https://developers.openai.com/api/docs/guides/moderation)</sup><sup> • </sup><sup>[1](https://openai.com/index/upgrading-the-moderation-api-with-our-new-multimodal-moderation-model/)</sup>

独立评论（来自一个通用指南网站，其来源权威性弱于 OpenAI 的文档）警告称，内容审核 API 并非法律合规引擎：它不判定内容是否违反当地法律、平台规则、应用商店政策、学校政策或广告政策，而应作为更广泛审查系统中的一个组成部分，该系统还应包括成文规则、转交人工处理和滥用监控。<sup>[5](https://chatai.guide/api/moderation-api/)</sup>

## References

1. [Upgrading the Moderation API with our new multimodal moderation model | OpenAI](https://openai.com/index/upgrading-the-moderation-api-with-our-new-multimodal-moderation-model/)
2. [New and improved content moderation tooling | OpenAI](https://openai.com/index/new-and-improved-content-moderation-tooling/)
3. [omni-moderation Model | OpenAI API](https://developers.openai.com/api/docs/models/omni-moderation-latest)
4. [Moderation guide — OpenAI API documentation](https://developers.openai.com/api/docs/guides/moderation)
5. [OpenAI Moderation API: Free Content Safety](https://chatai.guide/api/moderation-api/)

---
*Initially written Sep 17, 2026 · Edited: Oct 11, 2026; Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 现代人工智能：基础模型、生成式人工智能与人工智能产业 › 人工智能公司、人物与产品 › 人工智能产品与助手 › 人工智能智能体与开发者工具

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/openai-moderation-api

English original: https://www.edgepedia.org/openai-moderation-api
