Generate a three-level, multilingual mind map from an article or a book, with control over the number of second-level nodes and the word count of leaf nodes.
Try it now
You can call this API directly in OpenAPI Explorer, without worrying about calculating the signature. After the call succeeds, OpenAPI Explorer can automatically generate SDK code examples.
RAM authorization
The following table describes the authorization information of this API. You can use it in the Action element of a RAM policy statement to grant a RAM user or a RAM role 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:
- For required resource types, an asterisk (*) is prefixed.
- For operations that do not support resource-level authorization, All Resources is used.
- Condition key: the condition keys defined by the cloud service itself.
- Dependent action: other permissions required to successfully perform the operation. The operator must also have the permissions of the dependent actions for the operation to succeed.
Action | Access level | Resource type | Condition key | Dependent action |
|---|---|---|---|---|
aimiaobi:RunDocBrainmap | get | *All Resource
| None | None |
Request syntax
Request parameters
Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| WorkspaceId | string | Yes | The ID of the Model Studio workspace. For more information, see How to use a workspace. | llm-xxx |
| SessionId | string | Yes | The session ID. | 3f7045e099474ba28ceca1b4eb6d6e21 |
| DocId | string | Yes | The document ID. | 12345 |
| Prompt | string | No | A custom prompt to guide the mind map generation. | Please output in English |
| CleanCache | boolean | No | Indicates whether to clear the previous cache. | true |
| NodeNumber | integer | No | The number of nodes to generate at the second level of the mind map. | 3 |
| WordNumber | integer | No | The number of words in each node. | 20 |
| referenceContent | string | No | The source content for generating the mind map. This parameter takes precedence over | Content for generating the mind map |
| ModelName | string | No | The name of the model to use. | quanmiao-max, quanmiao-plus |
| ResponseFormat | integer | No | 0 |
Response elements
Element | Type | Description | Example |
|---|---|---|---|
object | Response schema. | ||
| Header | object | Response header. | |
| ErrorCode | string | Error code. | success |
| ErrorMessage | string | Error message. | success |
| Event | string | Event type. | task-failed |
| EventInfo | string | Event description. | Model generation event |
| SessionId | string | Session ID. | 07181f55-2311-48af-8048-132a77dee020 |
| TaskId | string | Task ID. | 161816 |
| TraceId | string | Trace ID. | 6427cdf4-2ffe-4d05-b0ef-c4adceea90f4 |
| Payload | object | Response payload. | |
| Output | object | Output data. | |
| Content | string | Mind map content in JSON format. | {"xxxx":"xxx"} |
| Usage | object | Token usage statistics. | |
| InputTokens | integer | Number of input tokens. | 65 |
| OutputTokens | integer | Number of output tokens. | 100 |
| TotalTokens | integer | Total number of tokens. | 165 |
| RequestId | string | Request ID. | 1813ceee-7fe5-41b4-87e5-982a4d18cca5 |
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 workspaceId assignment |