Submit TypeSafe System One judgment
curl --request POST \
--url https://api.omnimux.ai/v1/systemone \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "jev-latest",
"state": {
"ticket_id": "T-1042",
"message": "Customer requests a full refund after missing delivery."
},
"questions": {
"needs_escalation": {
"type": "noul",
"instructions": "Return true if this ticket requires human escalation."
},
"priority": {
"type": "choice",
"criteria": {
"high": "Financial dispute or missed SLA",
"normal": "General inquiry"
}
}
}
}
'import requests
url = "https://api.omnimux.ai/v1/systemone"
payload = {
"model": "jev-latest",
"state": {
"ticket_id": "T-1042",
"message": "Customer requests a full refund after missing delivery."
},
"questions": {
"needs_escalation": {
"type": "noul",
"instructions": "Return true if this ticket requires human escalation."
},
"priority": {
"type": "choice",
"criteria": {
"high": "Financial dispute or missed SLA",
"normal": "General inquiry"
}
}
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'jev-latest',
state: {
ticket_id: 'T-1042',
message: 'Customer requests a full refund after missing delivery.'
},
questions: {
needs_escalation: {
type: 'noul',
instructions: 'Return true if this ticket requires human escalation.'
},
priority: {
type: 'choice',
criteria: {high: 'Financial dispute or missed SLA', normal: 'General inquiry'}
}
}
})
};
fetch('https://api.omnimux.ai/v1/systemone', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.omnimux.ai/v1/systemone"
payload := strings.NewReader("{\n \"model\": \"jev-latest\",\n \"state\": {\n \"ticket_id\": \"T-1042\",\n \"message\": \"Customer requests a full refund after missing delivery.\"\n },\n \"questions\": {\n \"needs_escalation\": {\n \"type\": \"noul\",\n \"instructions\": \"Return true if this ticket requires human escalation.\"\n },\n \"priority\": {\n \"type\": \"choice\",\n \"criteria\": {\n \"high\": \"Financial dispute or missed SLA\",\n \"normal\": \"General inquiry\"\n }\n }\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"model": "jev-1.14.0",
"answers": {
"needs_escalation": {
"type": "noul",
"answer": true
},
"priority": {
"type": "choice",
"answer": "high"
}
},
"usage": {
"input_tokens": 312,
"output_tokens": 0
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
},
"detail": "<unknown>"
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
},
"detail": "<unknown>"
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
},
"detail": "<unknown>"
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
},
"detail": "<unknown>"
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
},
"detail": "<unknown>"
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
},
"detail": "<unknown>"
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
},
"detail": "<unknown>"
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
},
"detail": "<unknown>"
}TypeSafe
TypeSafe System One
通过 TypeSafe Jev 模型执行 choice、score、noul 与 box 结构化判定。
POST
/
v1
/
systemone
Submit TypeSafe System One judgment
curl --request POST \
--url https://api.omnimux.ai/v1/systemone \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "jev-latest",
"state": {
"ticket_id": "T-1042",
"message": "Customer requests a full refund after missing delivery."
},
"questions": {
"needs_escalation": {
"type": "noul",
"instructions": "Return true if this ticket requires human escalation."
},
"priority": {
"type": "choice",
"criteria": {
"high": "Financial dispute or missed SLA",
"normal": "General inquiry"
}
}
}
}
'import requests
url = "https://api.omnimux.ai/v1/systemone"
payload = {
"model": "jev-latest",
"state": {
"ticket_id": "T-1042",
"message": "Customer requests a full refund after missing delivery."
},
"questions": {
"needs_escalation": {
"type": "noul",
"instructions": "Return true if this ticket requires human escalation."
},
"priority": {
"type": "choice",
"criteria": {
"high": "Financial dispute or missed SLA",
"normal": "General inquiry"
}
}
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'jev-latest',
state: {
ticket_id: 'T-1042',
message: 'Customer requests a full refund after missing delivery.'
},
questions: {
needs_escalation: {
type: 'noul',
instructions: 'Return true if this ticket requires human escalation.'
},
priority: {
type: 'choice',
criteria: {high: 'Financial dispute or missed SLA', normal: 'General inquiry'}
}
}
})
};
fetch('https://api.omnimux.ai/v1/systemone', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.omnimux.ai/v1/systemone"
payload := strings.NewReader("{\n \"model\": \"jev-latest\",\n \"state\": {\n \"ticket_id\": \"T-1042\",\n \"message\": \"Customer requests a full refund after missing delivery.\"\n },\n \"questions\": {\n \"needs_escalation\": {\n \"type\": \"noul\",\n \"instructions\": \"Return true if this ticket requires human escalation.\"\n },\n \"priority\": {\n \"type\": \"choice\",\n \"criteria\": {\n \"high\": \"Financial dispute or missed SLA\",\n \"normal\": \"General inquiry\"\n }\n }\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"model": "jev-1.14.0",
"answers": {
"needs_escalation": {
"type": "noul",
"answer": true
},
"priority": {
"type": "choice",
"answer": "high"
}
},
"usage": {
"input_tokens": 312,
"output_tokens": 0
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
},
"detail": "<unknown>"
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
},
"detail": "<unknown>"
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
},
"detail": "<unknown>"
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
},
"detail": "<unknown>"
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
},
"detail": "<unknown>"
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
},
"detail": "<unknown>"
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
},
"detail": "<unknown>"
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
},
"detail": "<unknown>"
}- 官方 TypeSafe System One 结构化判断接口,同时开放
POST /v1/systemone(兼容官方 SDK 的厂商路径)与POST /typesafe/v1/systemone。 - 使用网关 API Key(
Authorization: Bearer sk-...)请求https://api.omnimux.ai。 - 接口为同步返回,不在任务查询端点保留历史结果快照。
模型
| 模型标识 | 说明 |
|---|---|
jev | OmniMux 兼容别名,映射至 jev-latest |
jev-latest | 最新稳定版 Jev |
jev-1.14.0 | Jev 1.14 固定版本 |
jev-1.13.0 | Jev 1.13 固定版本 |
jev-preview | Jev 预览版本 |
请求约束与键序保留
JSON 请求体(或multipart/form-data 中的 request 字段)仅允许四个顶层字段:model、state(非空字符串、对象或数组)、questions(非空对象)以及可选的 assets,其余顶层字段将被拒绝。
- 网关在转发前原样保留
state的 JSON 成员顺序,避免影响 Jev 的结构化判定结果。 questions中每道题须声明type(choice、score、noul或box)及对应的criteria(choice需 1 至 255 个选项;score需 1 至 10 个非空分档;noul可选true/false说明;box不传criteria)。
图片与 Multipart 上传
可在assets 中直接传入 base64 图片,或使用 multipart/form-data 上传:须将序列化后的 JSON 放在名为 request 的首个表单字段中,并由 assets 中的字段名对应其余二进制图片部分。当请求包含 assets 或 box 题型时,网关会自动向上游附加 TypeSafe-Danger-Zone-Images: true。
上下文档位与计费规则
- 默认支持 64Ki 输入上下文(计及 256 token 请求前缀上限为 65,792 input tokens);携带请求头
TypeSafe-Danger-Zone-Long-Context: true可开启 256Ki 上下文(上限 262,400 input tokens)。 - 仅按输入 Token 计费(
$0.042/ 百万输入 token),输出 Token 免费。请求前按对应上限预扣,完成后按上游usage.input_tokens差额结算;余额不足返回402。 - 上游返回
422校验错误时保留原生detail字段并退还预扣额度。通用状态码说明见连接与使用。
授权
请求头
请求体
application/jsonmultipart/form-data