This topic describes the request syntax and provides examples for the Tongyi ZoneWit document content moderation API.
Request syntax
Request parameters
Name | Type | Required | Description | Example |
|---|---|---|---|---|
capabilityType | string | Yes | The capability type. Content moderation for documents: CONTENT_REVIEW | CONTENT_REVIEW |
userPrompt | string | Yes | The prompt. | You are an experienced senior document review expert, proficient in fraud detection, compliance checks, fact-checking, and professional communication. Your review standards are extremely strict, detail-oriented, and you provide constructive revision suggestions. Your task is to conduct a comprehensive and in-depth review of the provided document. Identify all issues within the document and generate a structured review report. |
fileIdList | array | Yes | The list of document IDs. | [ "file_zhiwen_XXX" ] |
stream | boolean | Yes | Specifies whether to return the response in a stream. | true |
Response parameters
Name | Type | Description |
|---|---|---|
output | object | |
-choices | array | |
-finishReason | string | Termination reason |
-message | object | The message body. |
-role | string | The role. |
-content | string | The message content. |
requestId | string | The request ID. |
usage | object | The token usage information. |
-inputTokens | int | The number of input tokens. |
-outputTokens | int | The number of output tokens. |
-totalTokens | int | The total number of tokens. |
Examples
Request example
Successful response example
JSON format