Skip to main content

RunAbbreviationContent

Abbreviates the specified content.

Try it now

You can run this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After the run succeeds, 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 policy statement to grant RAM users or RAM roles the permission to call this API. Details are as follows:
  • Action: refers to the specific permission point.
  • Access level: refers to the access level of each operation. Valid values: Write, Read, or List.
  • Resource type: refers to 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, 全部资源 is used.
  • Condition key: refers to the condition keys defined by the cloud service itself.
  • Dependent action: refers to the other permissions required to successfully perform the operation. The caller must have the permissions of all dependent actions for the operation to succeed.
ActionAccess levelResource typeCondition keyDependent action
aimiaobi:RunAbbreviationContentget
*All resources
*
    None
None

Request syntax

POST /quanmiao/aimiaobi/runAbbreviationContent HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
WorkspaceIdstringYes

Unique identifier for the Alibaba Cloud Model Studio workspace. Obtain theWorkspace ID.

llm-2setzb9x4ewsd
ContentstringYes

Content to abbreviate.

Innovate government social media features. Encourage regions and departments to develop distinctive government social media features based on actual conditions, such as online consultation services, policy interpretation, and interactive Q&A, to enhance the interactivity and practicality of government social media and improve public participation.
PromptstringNo

Custom prompt.

Response elements

ElementTypeDescriptionExample
object

Schema of Response

Endboolean

Indicates whether the output is complete. true means it is complete.

Headerobject

The streaming output header, which contains general return information.

ErrorCodestring

Error code returned on failure.

403
ErrorMessagestring

Error message returned on failure.

Pop sign mismatch, please check.
Eventstring

Event type.

result-generated
EventInfostring

Event description.

Model generation event
SessionIdstring

The ID of a single session.

3cd10828-0e42-471c-8f1a-931cde20b035
TaskIdstring

The ID of a single generation task.

d3be9981-ca2d-4e17-bf31-1c0a628e9f99
TraceIdstring

The trace ID of the request chain.

2150451a17191950923411783e2927
Payloadobject

The payload of the returned result, in JSON structure.

Outputobject

Output content object.

Textstring

Output content.

This is a test output
Usageobject

Large Language Model (LLM) token usage information.

InputTokenslong

Number of input tokens.

100
OutputTokenslong

Number of output tokens.

100
TotalTokenslong

Total number of tokens.

200
RequestIdstring

Unique request ID.

d3be9981-ca2d-4e17-bf31-1c0a628e9f99

Examples

Success response JSON format
{
  "End": true,
  "Header": {
    "ErrorCode": 403,
    "ErrorMessage": "Pop sign mismatch, please check.",
    "Event": "result-generated",
    "EventInfo": "模型生成事件",
    "SessionId": "3cd10828-0e42-471c-8f1a-931cde20b035",
    "TaskId": "d3be9981-ca2d-4e17-bf31-1c0a628e9f99",
    "TraceId": "2150451a17191950923411783e2927"
  },
  "Payload": {
    "Output": {
      "Text": "这是测试输出"
    },
    "Usage": {
      "InputTokens": 100,
      "OutputTokens": 100,
      "TotalTokens": 200
    }
  },
  "RequestId": "d3be9981-ca2d-4e17-bf31-1c0a628e9f99"
}

Error codes

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