Skip to main content

RunSummaryGenerate

Generates a summary of content.

Try it now

You can run this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After the call succeeds, OpenAPI Explorer can automatically generate SDK code examples. Try it now

Authorization information

The following table describes the authorization information of the API. You can use it in the Action element of a RAM permission policy statement to grant RAM users or RAM roles the permission to call this API. For more information, see the following:
  • Action: 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. For more information, see the following:
    • Required resource types are marked with a leading *.
    • 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: the other permissions required to successfully perform the operation. The caller must have the permissions of the dependent actions at the same time for the operation to succeed.
ActionAccess levelResource typeCondition keyDependent action
aimiaobi:RunSummaryGenerateget
*All resources
*
    None
None

Request syntax

POST /quanmiao/aimiaobi/runSummaryGenerate HTTP/1.1

Request parameters

NameTypeRequiredDescriptionExample value
WorkspaceIdstringYes

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

llm-2setzb9x4ewsd
ContentstringYes

The content to generate a summary for.

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

Custom prompt for summary generation.

Please generate a summary for the above content, within 100~200 characters.

Response elements

NameTypeDescriptionExample value
object

Schema of Response

Endboolean

Whether the output is complete. true indicates that the output is complete.

Headerobject

Streaming output header, which contains general response information

ErrorCodestring

Error code

403
ErrorMessagestring

Error message

Pop sign mismatch, please check.
Eventstring

Event type

result-generated
EventInfostring

Event description

Model generation event
SessionIdstring

Session ID

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

Generation task ID

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

Trace ID

2150451a17191950923411783e2927
Payloadobject

The payload of the response, in JSON format

Outputobject

Output content object

Textstring

Output content

This is test output
Usageobject

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
For more error codes, visit Error Center.