curl https://api.pipellm.ai/v1/systemone \
-H "Authorization: Bearer $PIPELLM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "jev-1.13.0",
"state": "The service is reachable.",
"questions": {
"reachable": {
"type": "noul",
"instructions": "Does the state say the service is reachable?"
}
}
}'
{
"model": "jev-1.13.0",
"answers": {"reachable": {"type": "noul", "noul": 0.99}},
"usage": {"input_tokens": 300, "output_tokens": 20}
}
Jev / System One
使用 Jev 进行类型化判断。
POST
/
v1
/
systemone
curl https://api.pipellm.ai/v1/systemone \
-H "Authorization: Bearer $PIPELLM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "jev-1.13.0",
"state": "The service is reachable.",
"questions": {
"reachable": {
"type": "noul",
"instructions": "Does the state say the service is reachable?"
}
}
}'
{
"model": "jev-1.13.0",
"answers": {"reachable": {"type": "noul", "noul": 0.99}},
"usage": {"input_tokens": 300, "output_tokens": 20}
}
通过普通 HTTP 调用
以下为响应结构示例,概率和用量随请求变化。
jev-1.13.0,使用 PipeLLM API Key。该路由返回类型化判断,不使用聊天消息格式,也不支持流式输出。
string
必填
jev-1.13.0string | object | array
必填
待判断的文本或应用状态。
object
必填
按自定义名称组织的问题,每项包含
type 和 instructions。支持 noul、choice、score;后两者还需要 criteria。curl https://api.pipellm.ai/v1/systemone \
-H "Authorization: Bearer $PIPELLM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "jev-1.13.0",
"state": "The service is reachable.",
"questions": {
"reachable": {
"type": "noul",
"instructions": "Does the state say the service is reachable?"
}
}
}'
{
"model": "jev-1.13.0",
"answers": {"reachable": {"type": "noul", "noul": 0.99}},
"usage": {"input_tokens": 300, "output_tokens": 20}
}
返回与计费
answers 的键与问题名一一对应。noul 返回 0–1 的概率;choice 返回选项与概率分布;score 返回评分。置信度不能当作正确性保证。
实际模型版本和 usage.input_tokens、usage.output_tokens 原样保留。当前按输入 Token 计费,售价 $0.042 / 百万输入 Token;输出不收费。最终以控制台价格为准。
请求格式错误返回 400;认证、余额和限流使用 统一错误格式。完整问题格式见 TypeSafe HTTP API,调用地址和密钥请使用本文的 PipeLLM 配置。此页面对您有帮助吗?