Continues generating 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 resourcesis 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.
| Action | Access level | Resource type | Condition key | Dependent action |
|---|---|---|---|---|
| aimiaobi:RunContinueContent | get | *All resources * |
| None |
Request syntax
Request parameters
| Name | Type | Required | Description | Example value |
|---|---|---|---|---|
| WorkspaceId | string | Yes | Unique identifier for the Alibaba Cloud Model Studio workspace. For more information, see Get the workspace ID. | llm-2setzb9x4ewsd |
| Content | string | Yes | Content to continue. | Innovate government social media features. 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. |
Response elements
| Name | Type | Description | Example value |
|---|---|---|---|
| object | Schema of Response | ||
| End | boolean | Is output complete? True indicates completion. | |
| Header | object | Streaming output header, contains general return information. | |
| ErrorCode | string | Abnormal error code. | 403 |
| ErrorMessage | string | Abnormal error message. | Pop sign mismatch, please check. |
| Event | string | Event type. | result-generated |
| EventInfo | string | Event description. | Model generation event |
| SessionId | string | Session ID. | 3cd10828-0e42-471c-8f1a-931cde20b035 |
| TaskId | string | Generation task ID. | d3be9981-ca2d-4e17-bf31-1c0a628e9f99 |
| TraceId | string | Trace ID. | 2150451a17191950923411783e2927 |
| Payload | object | Payload of the returned result, JSON structure. | |
| Output | object | Output content object. | |
| Text | string | Output content. | This is test output |
| Usage | object | Large Language Model (LLM) token usage information. | |
| InputTokens | long | Number of input tokens. | 100 |
| OutputTokens | long | Number of output tokens. | 100 |
| TotalTokens | long | Total number of tokens. | 200 |
| RequestId | string | Unique request ID. | d3be9981-ca2d-4e17-bf31-1c0a628e9f99 |
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 |