Jasper.ai
  1. Command
Jasper.ai
  • 入门
  • 验证
  • Jasper 人工智能引擎
  • 版本控制
  • 速率限制
  • 状态代码和错误
  • Command
    • Run command
      POST
  • Knowledge
    • Create knowledge
      POST
    • Retrieve knowledge
      GET
    • Retrieve a specific knowledge
      GET
    • Update a knowledge
      PATCH
    • Delete knowledge by ID
      DELETE
  • Tones
    • Run Tone Detector template
      POST
    • Create a tone
      POST
    • Retrieve tones
      GET
    • Retrieve tone by ID
      GET
    • Update a tone by ID
      PATCH
    • Delete a tone by ID
      DELETE
  • keep writing
    • Run keep writing
      POST
  • Templates
    • Retrieve templates
      GET
    • Retrieve a template by ID
      GET
    • Run Text Summarizer template
      POST
    • Run One-Shot Blog template
      POST
    • Run Facebook Ad Primary Text template
      POST
  • Usage
    • Retrieve API usage
  1. Command

Run command

开发环境
开发环境
POST
/v1/command
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/v1/command' \
--header 'content-type: application/json' \
--data-raw '{
  "options": {
    "outputCount": 1,
    "outputLanguage": "English",
    "inputLanguage": "English",
    "languageFormality": "default",
    "completionType": "performance"
  }
}'
响应示例响应示例
{
  "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"
    }
  ]
}

请求参数

Header 参数
content-type
string 
必需
示例值:
application/json
Body 参数application/json
options
object 
必需
outputCount
integer 
必需
outputLanguage
string 
必需
inputLanguage
string 
必需
languageFormality
string 
必需
completionType
string 
必需
示例

返回响应

🟢200成功
application/json
Body
requestId
string 
必需
resource
string 
必需
data
array [object {2}] 
必需
text
string 
可选
id
string 
可选
修改于 2024-01-30 03:50:31
上一页
状态代码和错误
下一页
Create knowledge
Built with