总结
开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
/v2/text/summarize
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/v2/text/summarize' \
--header 'Authorization;' \
--header 'content-type: application/json' \
--data-raw '{
"providers": "string",
"text": "string"
}'
响应示例响应示例
200 - 成功示例
{
"microsoft": {
"result": "Barack Hussein Obama is an American politician who served as the 44th president of the United States from 2009 to 2017. A member of the Democratic Party, Obama was the first African-American president of the United States. He previously served as a U.S. senator from Illinois from 2005 to 2008 and as an Illinois state senator from 1997 to 2004."
},
"emvista": {
"result": "Barack Hussein Obama is an politician who . A member of the Democratic Party . He served as a U.S. senator from Illinois from 2005 to 2008 and as an Illinois state senator from 1997 to 2004 . "
},
"openai": {
"result": "Barack Obama is an American politician who served as the 44th president of the United States from 2009 to 2017. He was the first African-American president and had previously served as a U.S. senator and an Illinois state senator."
},
"ai21labs": {
"result": "Barack Hussein Obama was the 44th president of the United States from 2009 to 2017. He was the first African-American president."
},
"anthropic": {
"result": " Barack Obama is a former U.S. president who served from 2009 to 2017. He was the first African-American president and a member of the Democratic Party. Prior to becoming president, he served as a U.S. senator from Illinois from 2005 to 2008 and as an Illinois state senator from 1997 to 2004."
},
"alephalpha": {
"result": "Barack Obama was the 44th president of the United States."
},
"nlpcloud": {
"result": "Barack Obama was the 44th president of the United States from 2009 to 2017. He was the first African-American president of the United States, and a member of the Democratic Party. Prior to his presidency, Obama served as a U.S. senator from Illinois from 2005 to 2008, and an Illinois state senator from 1997 to 2004."
},
"connexun": {
"result": "Barack Hussein Obama is an American politician who served as the 44th president of the United States from 2009 to 2017. A member of the Democratic Party, Obama was the first African-American president of the United States."
},
"cohere": {
"result": "\"You have to have a big-picture vision for where you want to go."
}
}
请求参数
Header 参数
content-type
string
必需
示例值:
application/json
Authorization
string
必需
默认值:
Bearer <your_key>
Body 参数application/json
返回响应
修改于 2024-04-11 06:56:07