Skip to main content
POST
/
deepsearch
/
v1
/
create_task
创建异步任务
curl --request POST \
  --url https://api.unifuncs.com/deepsearch/v1/create_task \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "s1",
  "messages": [
    {
      "role": "user",
      "content": "hi"
    }
  ]
}
'
{
  "code": 0,
  "message": "OK",
  "data": {
    "task_id": "4f180540-a36d-4ec3-a921-33a5fda6c229",
    "status": "pending",
    "created_at": "2025-12-11T10:20:13.382Z"
  },
  "requestId": "6c81cec1-1eb3-458d-b65c-c81ea6f1827c"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
model
enum<string>
required

模型名称

Available options:
s1
messages
object[]
required

消息列表

introduction
string | null

介绍信息

domain_scope
string[] | null

域名范围

domain_blacklist
string[] | null

域名黑名单

reference_style
enum<string> | null

引用样式

Available options:
hidden,
character,
link
content_verification
boolean | null
default:false

内容验证

max_depth
integer | null

最大深度

Required range: 1 <= x <= 50
generate_summary
boolean | null
default:false

是否生成摘要

output_scope
string[] | null

输出范围

output_prompt
string | null

输出提示

output_length
integer | null

输出长度

Required range: 1000 <= x <= 100000
task_id
string | null

任务ID(用于 create_async_task 端点)

Response

200 - application/json
code
integer<int32>
required
message
string
required
data
object
required
requestId
string<uuid>
required