Run command
POST
/v1/command请求参数
Header 参数
content-type
string
必需
示例值:
application/json
Body 参数application/json
options
object
必需
outputCount
integer
必需
outputLanguage
string
必需
inputLanguage
string
必需
languageFormality
string
必需
completionType
string
必需
示例
{
"options": {
"outputCount": 1,
"outputLanguage": "English",
"inputLanguage": "English",
"languageFormality": "default",
"completionType": "performance"
}
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
requestId
string
必需
resource
string
必需
data
array [object {2}]
必需
text
string
可选
id
string
可选
示例
{
"requestId": "bce766ea-a4ef-48e5-9da1-d9602bfecf2d",
"resource": "content",
"data": [
{
"text": "\n\nFurry friends so sweet,\nNibbling on fresh kale leaves,\nSoft hops fill the breeze.",
"id": "txt_bce766eaa4ef48e59da1d9602bfecf2d"
}
]
}
最后修改时间: 10 个月前