Parses essay images using OCR
Try it out
You can call this operation in OpenAPI Explorer without calculating a signature. After a successful call, OpenAPI Explorer can automatically generate SDK code examples.
Try it out
Authorization information
The following table describes the authorization information for this API operation. You can use the information in the Action element of a RAM policy statement to grant a RAM user or RAM role permission to call the operation. The columns are described as follows:
- Action: a specific permission.
- Access level: the access level of an action. Valid values: Write, Read, and List.
-
Resource type: the types of resources for which the action supports authorization:
- Required resource types are marked with an asterisk (*).
- Actions that do not support resource-level authorization use
All resources.
- Condition key: a condition key defined by the cloud service.
- Dependent action: an additional permission required to perform the action. The caller must also have permission to perform the dependent action.
| Action | Access level | Resource type | Condition key | Dependent action |
|---|---|---|---|---|
| quanmiaolightapp:RunOcrParse | create | *All resources * |
| None |
Request syntax
Request parameters
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| workspaceId | string | Yes | llm-xxx | |
| url | string | No | Image URL (specify either url or fileKey) | http://www.example.com/xxxx.txt |
| fileKey | string | No | Image URL (specify either url or fileKey) | oss://default/aimiaobi-service-prod/aimiaobi/temp/public/government_service_experience_feedback_summary.txt |
| modelId | string | No | Model ID | qwen3.7-plus |
Response parameters
| Name | Type | Description | Example |
|---|---|---|---|
| object | Response | ||
| header | object | Message header | |
| errorCode | string | Error code | AccessForbidden |
| errorMessage | string | Error description | Error message |
| event | string | Event | task-finished |
| sessionId | string | The unique session ID | xxxx |
| taskId | string | The unique task ID | xxxx |
| traceId | string | The full-link unique ID | xxxxx |
| payload | object | Message body | |
| output | object | Output | |
| text | string | OCR text output | OCR text output |
| usage | object | Token usage | |
| inputTokens | long | Input tokens | 100 |
| outputTokens | long | Output tokens | 100 |
| totalTokens | long | Total tokens | 200 |
| requestId | string | Id of the request | 117F5ABE-CF02-5502-9A3F-E56BC9081A64 |
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. |