Skip to main content

RunDocBrainmap

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

*

NoneNone

Request syntax

POST /miaodu/stream/runDocBrainmap HTTP/1.1

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 DocId.

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
{
  "Header": {
    "ErrorCode": "success",
    "ErrorMessage": "success",
    "Event": "task-failed",
    "EventInfo": "模型生成事件",
    "SessionId": "07181f55-2311-48af-8048-132a77dee020",
    "TaskId": "161816",
    "TraceId": "6427cdf4-2ffe-4d05-b0ef-c4adceea90f4"
  },
  "Payload": {
    "Output": {
      "Content": "{\"xxxx\":\"xxx\"}"
    },
    "Usage": {
      "InputTokens": 65,
      "OutputTokens": 100,
      "TotalTokens": 165
    }
  },
  "RequestId": "1813ceee-7fe5-41b4-87e5-982a4d18cca5"
}

Error codes

HTTP status code

Error code

Error message

Description

403NoPermissionYou are not authorized to perform this action.Please check the workspaceId assignment
Visit the Error Center to view more error codes.

Release notes

For more information, see Change details.