/chat/completions endpointapi_key: 32-character stringorg_id: 6-character string| # | Function | Purpose | Trigger Example |
|---|---|---|---|
| 1 | get_weather | Real-time weather for the next 5 days | “What’s the weather like?” |
| 2 | get_news | Latest headlines & hot events | “Any news today?” |
| 3 | get_vision | Image recognition / processing | “What’s in this picture?” |
| 4 | dance | Trigger a character dance (ShuBan only) | “Dance for me!” |
| 5 | search_internet | Tavily AI powered web search | “Search for the latest GPU benchmarks” |
| 6 | search_baidu | Baidu search optimised for Chinese | “百度一下今天的股市” |
| 7 | read_url | Extract main text from any URL | “Summarise this article” |
| 8 | book_house_service | Book cleaning, cooking, errands (Aiguo only) | “I need a cleaner tomorrow” |
| 9 | car_sales | EV model & price lookup (SiYou only) | “Show me Tesla Model Y prices” |
| 10 | tarot | Tarot card draw & reading | “Draw three cards for my career” |
| 11 | bazi | Ba-Zi astrology via birth data | “Analyse my birth chart” |
| 12 | search_memory | Search historical chat context | “What did I ask last Friday?” |
| 13 | lingtong_action | Ling-tong special action (Ling-tong only) | “Perform action #3” |
{
"functions": ["search_internet", "tarot", "bazi"],
"voice_id": "wukong"
}messages array needed – just send a prompt string.model parameter./chat/completions Endpoint/chat/completions{
"model": "NPC ID",
"prompt": "User Input",
"stream": true,
"lang": "default",
"emoji_mode": true,
"audio_mode": true,
"emotion_status": false,
"tools": ["search_internet", "tarot"],
"tool_call": false,
"function_id": null
}| Args | Type | Must | Default Value | Intro |
|---|---|---|---|---|
| model | string | Yes | - | NPC ID |
| prompt | string | Yes | - | User Input |
| lang | string | No | "default" | Language |
| emoji_mode | boolean | No | true | Enable emoji |
| audio_mode | boolean | No | true | Enable auto break |
| emotion_status | boolean | No | false | Enable emotion status |
| tools | array | No | [] | Avaliable tools list |
| tool_call | boolean | No | false | Is tool calling |
| function_id | string | No | null | Function ID |
{
"id": "chatcmpl-xxx",
"object": "chat.completion.chunk",
"created": 1234567890,
"model": "NPC ID",
"choices": [
{
"index": 0,
"delta": {"content": "response content"},
"finish_reason": null
}
]
}| Error Code | Intro |
|---|---|
| 200 | success |
| 400 | args error |
| 401 | auth error |
| 403 | forbbiden |
| 404 | not found |
| 429 | too many |
| 500 | internal error |
| 601 | login ex |
/chat/completions endpointfast_mode, route, and related parametersfast_mode parameterroute parameter/prepare_fast_mode endpoint