创建检测
POST
/api/v1/audits提交一次检测。202 之后用 poll_url 轮询。
Body
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
base_url* | string | 是 | 上游地址,要带协议。末尾可以有 /v1,也可以没有 |
api_key* | string | 是 | 上游密钥。只放在这个 JSON 里 |
model* | string | 是 | 要检测的模型名 |
protocol | string | 否 | auto、chat、anthropic、openai。不传就是 auto |
timeout | integer | 否 | 单请求超时,10 到 600 秒。不传是 360 |
sections | string | array | 否 | 不传、all,或板块数组。可选 fingerprint、injection、cache、tools、web、knowledge、thinking、iq。DeepSeek 的 web 会直接调用 /v1/tools/search |
请求示例
{
"base_url": "https://example.com/v1",
"api_key": "sk-replace-me",
"model": "claude-sonnet-5",
"protocol": "auto",
"timeout": 360,
"sections": ["fingerprint", "injection"]
}返回响应
| 参数名 | 类型 | 说明 |
|---|---|---|
id | string | 检测编号 |
status | string | queued、running 或 done |
sections | string[] | 实际会跑的板块 |
skipped | object[] | 被跳过的板块和原因 |
poll_url | string | 轮询路径 |
expires_at | integer | 过期时间,Unix 秒 |
示例
{
"id": "b6c1d0e29f4a4780a1b2c3d4e5f60718",
"status": "queued",
"sections": ["fingerprint", "injection"],
"skipped": [],
"poll_url": "/api/v1/audits/b6c1d0e29f4a4780a1b2c3d4e5f60718",
"expires_at": 1710000000
}