RunDocWashing

Updated at:

Rewrites an article in a specified style.

Debug

You can run this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After a successful run, OpenAPI Explorer can automatically generate SDK code examples.

Debug

Authorization information

The following table describes the authorization information for this API. You can use the Action element in RAM permission policy statements to grant RAM users or RAM roles the permission to call this API. For more information:

  • Operation: the specific permission.

  • Access level: the access level of each operation. Valid values: Write, Read, or List.

  • Resource type: the resource types that support authorization for the operation. For more information:

    • Required resource types are marked with a leading asterisk (*).
    • 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 caller must have the permissions of all dependent actions for the operation to succeed.

OperationAccess levelResource typeCondition keyDependent action
aimiaobi:RunDocWashingget
*All Resources
*
    None
None

Request syntax

POST /quanmiao/aimiaobi/runDocWashing HTTP/1.1

Request parameters

NameTypeRequiredDescriptionExample value
WorkspaceIdstringYes

Unique identifier of the Alibaba Cloud Model Studio workspace: Get Workspace ID

llm-2setzb9x4ewsd
SessionIdstringNo

Channel ID

3f7045e099474ba28ceca1b4eb6d6e21
WritingTypeNamestringNo

Writing style type name

Xiaohongshu style, WeChat Moments style, Professional news style, Government official document style, Newspaper article style, Opinion letter style
WritingTypeRefDocstringNo

Example article for the writing style

If not empty, this value takes precedence
ReferenceContentstringYes

The article to rewrite

Article content
TopicstringNo

Topic of the rewritten article

Yunnan tourism topic
WordNumberintegerNo

Required word count after rewriting

500
PromptstringNo

Additional prompt requirements

Output in English
ModelIdstringNo

Model ID

quanmiao-max, quanmiao-plus

Response parameters

NameTypeDescriptionExample value
object

Schema of Response

RequestIdstring

Id of the request

1813ceee-7fe5-41b4-87e5-982a4d18cca5
Endboolean

Whether the response package has ended

false
Headerobject

Response header

Eventstring

Event type

task-finished
EventInfostring

Event description

Model generation event
RequestIdstring

Request RequestId

3f7045e099474ba28ceca1b4eb6d6e21
SessionIdstring

Session ID

20247a52-23e2-46fb-943d-309cdee2bc6d
TaskIdstring

Task ID

3f7045e099474ba28ceca1b4eb6d6e21
TraceIdstring

Full link ID

2150451a17191950923411783e2927
Payloadobject

Response body

Outputobject

Output

Textstring

Output content

Text generation result
Usageobject

Token consumption

InputTokenslong

Number of input tokens

100
OutputTokenslong

Number of output tokens

100
TotalTokenslong

Total number of tokens

200

Examples

Success response

JSON format

{
  "RequestId": "1813ceee-7fe5-41b4-87e5-982a4d18cca5",
  "End": false,
  "Header": {
    "Event": "task-finished",
    "EventInfo": "模型生成事件",
    "RequestId": "3f7045e099474ba28ceca1b4eb6d6e21",
    "SessionId": "20247a52-23e2-46fb-943d-309cdee2bc6d",
    "TaskId": "3f7045e099474ba28ceca1b4eb6d6e21",
    "TraceId": "2150451a17191950923411783e2927"
  },
  "Payload": {
    "Output": {
      "Text": "文本生成结果"
    },
    "Usage": {
      "InputTokens": 100,
      "OutputTokens": 100,
      "TotalTokens": 200
    }
  }
}

Error codes

HTTP status codeError codeError messageDescription
403NoPermissionYou are not authorized to perform this action.Check the workspaceId assignment

Visit the Error Center to view more error codes.