Content safety
To keep the service from being used for illegal or harmful purposes, and to comply with upstream model providers’ usage policies, the gateway runs automated safety checks on the requests that pass through it. This page explains roughly what those checks do, how they affect your requests, and what to do if one gets it wrong.
What the checks do
Section titled “What the checks do”The gateway has two mechanisms:
- Prompt review (on): checks request content asynchronously in the background. It does not block requests or add latency. The model it uses runs on our own servers, so your request content is not sent to a third party for this. Only flagged requests are recorded. Synchronous blocking may be added later.
- Content moderation (not enabled at present): when enabled, the gateway checks content before forwarding the request upstream; in blocking mode, it rejects a matching request with a
403(see below). Submitting the same content again is rejected as well.
In both cases, the error you get back does not say which category or rule was matched.
What a blocked request looks like
Section titled “What a blocked request looks like”When content moderation blocks a request, the HTTP status is 403 and the error code is content_moderation_blocked. The request is not forwarded upstream and is not charged.
The message is returned in English or Chinese (Simplified or Traditional), following the request’s language as given by the Accept-Language header (or your account’s language setting). For example, in English and Simplified Chinese:
- English:
This request was blocked by content moderation. Please revise your input and try again. - Chinese:
该请求未通过内容审核,请修改输入后重试。
The request id of the request is appended to the message.
OpenAI format
Section titled “OpenAI format”For OpenAI-format endpoints such as /v1/chat/completions and /v1/responses:
{ "error": { "message": "This request was blocked by content moderation. Please revise your input and try again. (request id: 20261112...)", "type": "new_api_error", "param": "", "code": "content_moderation_blocked" }}Check whether error.code equals content_moderation_blocked.
Claude format
Section titled “Claude format”For /v1/messages (Anthropic format):
{ "type": "error", "error": { "type": "new_api_error", "message": "This request was blocked by content moderation. Please revise your input and try again. (request id: 20261112...)" }}The Claude-format body has no separate error code field; use the 403 status together with message.
If a check gets it wrong
Section titled “If a check gets it wrong”Automated checks can make mistakes. If you believe a request was blocked by mistake, or your account was disabled by mistake, email [email protected] with:
- your account email (or user ID);
- the request id from the error;
- when it happened (with time zone).
We will review it manually. Never send a full token by email.
Privacy and retention
Section titled “Privacy and retention”Prompt review keeps records only for flagged requests. A record holds a redacted preview of the content, a hash, the matched categories and where they matched, the time, and the account, token, group and model. The full prompt is kept only when “save full prompts” is enabled, and only the site’s top-level administrator can view it. Requests that are not flagged leave no record.
Content moderation keeps an excerpt of the input in records of flagged requests. Records of requests that were not flagged hold only a digest of the input, never the input text. The hash of an input found to violate the rules goes on a blocklist, so the same content is recognized if it is submitted again.
Content moderation runs on our own servers by default. Only if we enable a third-party moderation service is the message that needs checking sent to that provider; any such provider will be listed in the Privacy Policy, and none is enabled at present.
| Record | Kept for |
|---|---|
| Prompt review events | 30 days |
| Content moderation records, flagged | 180 days |
| Content moderation records, not flagged | up to 3 days |
| Hash blocklist of violating inputs | 180 days |
Audit records are used for safety review, handling appeals and dealing with violations. See the Privacy Policy for details. The updated Terms of Service and Privacy Policy take effect on 2026-11-19.