Text Summarization
POST /v1/text/summary
Please refer to Quickstart Guide to obtain your API key.
Replace $YOUR_API_KEY
with the actual API key generated in the previous step.
Please ensure to replace $MODEL_ID
with the model ID to be used (e.g., opeai/deepseek-v3
).
Request Body
model string Required
The Model ID for text summarization. For example: opeai/deepseek-v3
.
language string Optional Default value: "zh-cn"
Specifies the language of the input text. For example: "zh-cn", "en", "ja", etc.
stream boolean Optional Default value: false
Whether to return summarization results via streaming. When set to true
, the summary will be returned in chunks.
text string Required
The original text content to be summarized.
Response Parameters
Same as Chat Completion Object.