释义
开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
https://api.ai21.com/studio/v1/paraphrase
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.ai21.com/studio/v1/paraphrase' \
--header 'Content-Type: application/json' \
--data-raw '{
"text": "string",
"style": "string",
"startIndex": 0,
"endIndex": 0
}'
响应示例响应示例
{
"id": "862829b2-29be-c86d-370e-db2f7f5dbf5b",
"suggestions": [
{
"text": "One life is enough if you live it right."
},
{
"text": "When you do it right, you only live once."
},
{
"text": "Once is all you have, but if you do it right, once is enough."
},
{
"text": "When you live right, you only need to live once."
},
{
"text": "One life is enough if you live it right, but if you don't do it right, one life is not enough."
},
{
"text": "The only chance you have to live is once, but if you live well, a once is enough."
},
{
"text": "The only way to live is right, so if you do it right, once is enough."
},
{
"text": "Once is enough if you live it right, but if you do it wrong, you'll regret it later."
},
{
"text": "In life, you only live once, but if you do it right, once should be plenty."
},
{
"text": "It takes only one life to live a fulfilling life, but if you do it right, one life is enough."
}
]
}
请求参数
Body 参数application/json