Adventists - API Doc
  1. NPC
Adventists - API Doc
  • Overall
  • v2.5 Updates
  • Quick Start
  • TCP - Chat With Voice
    • Connect with TCP
    • Connect with VAD
    • Connect with MCP
    • Get Token
      POST
  • Settings Management
    • Args Description
    • Template
      • Query Public Template List
      • Query Current Org Template (including private and public template)
      • Create Template
      • Query Template By ID
      • Modify Template
      • Delete Template
      • Send Memories To Template
    • NPC
      • Create Npc With Template
        POST
      • Create Npc Without Template
        POST
      • Query Npc By Id
        POST
      • Modify Npc
        POST
      • Delete Npc
        POST
      • Send Memories To Npc
        POST
      • Query Memories From Npc
        POST
    • Skills Book
      • Query Skills Book List
      • Start Create Skills Book Task
      • Upload Skills Book Content
      • Finish Create Skills Book Task
      • Query Progress Of Create Skills Book Task
    • Voice Texture
      • Upload Voice Texture
        • Upload Voice
        • Query Status Of Uploading Voice
      • Query Voice List
  • Other Chat Functions
    • Upload Pictures
      POST
  1. NPC

Create Npc Without Template

POST
/init

请求参数

Header 参数

Body 参数application/json

示例
{
    "templateid": "no_class",
    "name": "string",
    "mbti_type": "string",
    "love_type": "string",
    "emotion_system": "string",
    "style": "string",
    "person": "string",
    "emotion_responses": {
        "<情绪名称>": [
            "string"
        ]
    },
    "relationship": {
        "<人物名称>": {
            "alias": [
                "string"
            ],
            "name": "string",
            "remark": "string",
            "title": [
                "string"
            ]
        }
    },
    "start_speech": "string",
    "temp": "string",
    "skill_ids": "string",
    "voice_id": "string",
    "functions": [
        "string"
    ],
    "public": "string"
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://v1.adventists.ai/init' \
--header 'api-key: AN26Q7MVO04RS6VWIWTE8OQ4BD6DZR98' \
--header 'org-id: WOQSOC' \
--header 'Content-Type: application/json' \
--data-raw '{
    "templateid": "no_class",
    "name": "string",
    "mbti_type": "string",
    "love_type": "string",
    "emotion_system": "string",
    "style": "string",
    "person": "string",
    "emotion_responses": {
        "<情绪名称>": [
            "string"
        ]
    },
    "relationship": {
        "<人物名称>": {
            "alias": [
                "string"
            ],
            "name": "string",
            "remark": "string",
            "title": [
                "string"
            ]
        }
    },
    "start_speech": "string",
    "temp": "string",
    "skill_ids": "string",
    "voice_id": "string",
    "functions": [
        "string"
    ],
    "public": "string"
}'

返回响应

🟢200成功
application/json
Body

示例
{
    "message": "WOQSOCfdcbbffaf9a24f1196def0c910106f25已建立,可以开始聊天了",
    "data": "WOQSOCfdcbbffaf9a24f1196def0c910106f25",
    "status": "success",
    "code": 201
}
修改于 2025-09-12 13:04:32
上一页
Create Npc With Template
下一页
Query Npc By Id
Built with