A lightweight application for network content moderation.
Debugging
You can run this API directly in OpenAPI Explorer without having to calculate signatures. After a successful call, OpenAPI Explorer can automatically generate SDK code examples.
Debug
RAM authorization
The following table describes the authorization information for this API. You can use it in the Action element of a RAM permission policy statement to grant RAM users or RAM roles the permission to call this API. Details are as follows:
- Operation: the specific permission point.
- Access level: the access level of each operation. Valid values: Write, Read, or List.
-
Resource type: the resource types that support authorization in the operation. Details are as follows:
- Required resource types are marked with a leading asterisk (*).
- For operations that do not support resource-level authorization,
All Resourcesis used.
- Condition key: the condition keys defined by the cloud service itself.
- Related operation: other permissions required to successfully perform the operation. The caller must also have the permissions of the related operations for the operation to succeed.
| Operation | Access level | Resource type | Condition key | Related operation |
|---|---|---|---|---|
| quanmiaolightapp:RunNetworkContentAudit | create | *All Resources * |
| None |
Request syntax
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| workspaceId | string | Yes | The unique identifier of the Model Studio workspace: Obtain a workspaceId | llm-xx |
| modelId | string | No | The model ID. | qwen-max |
| businessType | string | No | The business type. | clueMining |
| taskDescription | string | No | The task description. | Here is a text to be analyzed. Please tag the data according to the tag system. |
| content | string | Yes | The text to be analyzed. | Text to be analyzed |
| tags | array<object> | No | The list of tag systems. | |
| object | No | The list of tags. | ||
| tagName | string | No | The tag name. | xxxx |
| tagDefinePrompt | string | No | The tag definition prompt. | xxxx |
| extraInfo | string | No | The additional information. | Additional information |
| outputFormat | string | No | The output format. | Please return the following JSON format, {"key1":"","key2":""} |
| apiKey | string | No | The API key for integration. Obtain an API key | sk-60fd85c1a28f4873abb952e954b0ed27 |
Response parameters
| Name | Type | Description | Example |
|---|---|---|---|
| object | The response. | ||
| header | object | The message header. | |
| errorCode | string | The error code. | AccessForbidden |
| errorMessage | string | The error description. | Error message |
| event | string | The event. | task-finished |
| sessionId | string | The unique identifier of the session. | xxxx |
| taskId | string | The unique identifier of the task. | xxxx |
| traceId | string | The unique identifier of the entire call chain. | xxxxx |
| payload | object | The message body. | |
| output | object | The output. | |
| text | string | The output summary text. | xxxx |
| usage | object | The token usage. | |
| inputTokens | long | The input tokens. | 100 |
| outputTokens | long | The output tokens. | 100 |
| totalTokens | long | The total tokens. | 200 |
| requestId | string | Id of the request | 5D0E915E-655D-59A8-894F-93873F73AAE5 |
Examples
Success response
JSON format
Error codes
| HTTP status code | Error code | Error message | Description |
|---|---|---|---|
| 403 | NoPermission | You are not authorized to perform this action , Please check the assignment of the workspaceId. | Check the assignment of the workspaceId. |