Combine multiple types with underscores (e.g., POLITICS_PORN_AD).
Value
Description
POLITICS
Political content detection
PORN
Pornographic content detection
AD
Advertising detection
LOGO
Watermark / logo detection
BEHAVIOR
Inappropriate scene detection (smoking, drinking, gambling, drug use, condoms, meaningless frames)
OCR
OCR text recognition in images
VIOLENCE
Violence & terrorism detection
NONE
Do not detect images
Text Detection Types
Combine multiple types with underscores (e.g., TEXTRISK_FRAUD). Combined types take the union of detection capabilities. For example, TEXTRISK_POLITY is processed as standard risk detection.
Content to be moderated. Accepts a URL link (web page or document download link). Max file size: 500 MB. Text length limit: 500,000 characters. Image limit: 500 images. Video file limit: 50 segments.
Unique client user account identifier for user behavior analysis. Recommended to pass the user UID.
channel
string
No
Business scenario. Configured via channel table.
returnHtml
bool
No
Whether to return HTML with highlighted risk content for human review. Default: false.
nickname
string
No
User nickname. Strongly recommended — malicious users on most platforms spread spam, political violations, and traffic-diversion content through nicknames.
ip
string
No
Client IP address for IP-based user behavior analysis and comparison against the ISHUMEI IP blocklist.
passThrough
json_object
No
Pass-through parameter, returned as-is in the response.
Result type. 0: machine moderation. 1: human moderation.
finalResult
int32
Yes
Whether this is the final moderation result. 0: not final (machine result only; human review is pending). 1: final result (can be used directly for downstream processing). If only machine moderation is configured, defaults to 1.
Response Codes
Code
Message
1100
Success
1901
QPS limit exceeded
1902
Invalid parameters
1903
Service failure
9101
Unauthorized operation
Callback Response Codes
Code
Message
1100
Success
1901
QPS limit exceeded
1902
Invalid parameters
1903
Service failure
9100
Insufficient balance
9101
Unauthorized operation
detail Object
Parameter
Type
Required
Description
model
string
Yes
Rule identifier.
description
string
Yes
Risk reason description for the policy rule.
descriptionV2
string
No
New version risk reason description. Only returned for new policies during the transition period.
riskSummary
json_object
No
Risk summary with counts of each risk type. Returned only when type is NOVEL. See riskSummary.
riskDetail
json_array
No
Risk details for each content segment. Returned only when type is NOVEL. When returnHtml is true, only REJECT and REVIEW segments are returned. When false, all segments (including PASS) are returned. See riskDetail Array.
riskHtml
string
No
HTML with risk content highlighted, embeddable in display pages. Returned only when type is NOVEL and returnHtml is true.
hits
json_array
No
Hit information. Generally empty — hit details are in riskDetail.
passThrough
json_object
No
Pass-through parameter returned as-is.
riskSummary Object
Each key is a risk type code, and the value is the occurrence count.
Risk Type
Description
0
Normal
100
Political content
200
Pornographic content
210
Abusive language
300
Advertising
400
Spam / flooding
500
Meaningless content
600
Prohibited content
700
Blocklist
710
Allowlist
800
High-risk account
900
Custom
riskDetail Array
Each element represents a content segment with risk details:
Parameter
Type
Required
Description
type
string
Yes
Content segment type. text: text content. image: image.
content
string
Yes
Content of the current segment. Text content for text type; image URL for image type.
beginPosition
int
No
Start position of the segment in the input (0-indexed). Not returned when type is image.
endPosition
int
No
End position of the segment in the input (0-indexed). Not returned when type is image.
description
string
Yes
Risk description for the current segment. Contains all matched sensitive words from the corresponding list.
Name of the sensitive word list that was hit. Only present when a sensitive word is matched.
matchedItem
string
No
The specific sensitive word that was matched. Only present when a sensitive word is matched.
matchedField
string
No
Indicates whether the nickname or text content hit a sensitive word. text: text hit. nickname: nickname hit. Only present when a sensitive word is matched.
Human moderation result. Only present after human review is completed.
machineResult
json_object
No
Machine moderation result. Only present after machine moderation is completed. Uses the same structure as the Callback Response Parameters.
mergeResult
json_object
No
Merged human and machine moderation result. Returns human result if available; otherwise returns machine result. If neither exists, this field is not present.