文本模型进阶用户更新于
POST/v1/systemone
TypeSafe Jev 1.14
请求 ID jev-1.14.0
协议
POST /v1/systemone· System One示例
认证
请求需要 API Key。在控制台的 API Key 管理 获取密钥。发送 JSON 请求时,设置 Content-Type: application/json。
Authorization: Bearer YOUR_API_KEY
请求参数
POST /v1/systemone
| 参数 | 类型 | 是否必填 | 说明 |
|---|---|---|---|
model | string | 必填 | 填写模型 ID jev-1.14.0。 |
state | string / object / array | 必填 | 待判断的文本或结构化数据。传字符串、对象或数组。 |
questions | object | 必填 | 非空的问题对象。键为自定义问题名,响应按相同键返回答案。 |
questions.<name>.type | string | 必填 | 题型。可用值为 noul、choice、score 和实验性的 box。 |
questions.<name>.instructions | string | 选填 | 模型应遵循的指令,用于设定任务和输出要求。 |
questions.<name>.criteria | object / array | 视条件 | choice 必须提供含 1–255 项的选项对象,score 必须提供含 1–10 个等级的数组。 box 不使用此字段。 |
assets | object | 选填 | 按图片引用名组织的素材。素材必须在 state、问题指令或条件中被引用。 |
assets.<reference>.type | string | 视条件 | 附带图片素材时填写 image。 |
assets.<reference>.format | string | 视条件 | 静态图片格式。可用值为 png、jpg 或 jpeg。 |
assets.<reference>.data_base64 | string | 视条件 | 图片的 Base64 字符串。去掉 data: 前缀和换行。单张解码后最多 16 MiB,宽和高各为 280–1568 像素。 |
TypeSafe-Danger-Zone-Images | boolean (header) | 视条件 | 请求头。使用图片素材或 box 时必须设为 true。 |
TypeSafe-Danger-Zone-Long-Context | boolean (header) | 选填 | 请求头。默认限制为每请求 64K、每问题 32K。设置 true 可启用 262K 长上下文档。 |
请求示例
先将 API Key 设置为本机环境变量 ICODEEASY_API_KEY,并选择支持直接 HTTP 调用的接入点。接入点要求特定客户端时,按对应客户端指南配置。
System One
bash
curl -sS 'https://api.icodeeasy.cc/v1/systemone' \
-H "Authorization: Bearer $ICODEEASY_API_KEY" \
-H 'Content-Type: application/json' \
--data '{
"model": "jev-1.14.0",
"state": "I was charged twice for one subscription.",
"questions": {
"is_billing": {
"type": "noul",
"instructions": "Is this message about billing?"
}
}
}'
读取响应
- System One · 从
answers按请求中的问题名称取答案。输入和输出 token 数分别位于usage.input_tokens和usage.output_tokens。
能力与限制
streaming· 不支持tool_calling· 不支持image_input· 支持video_input· 不支持- 限制 输入:262K context with long-context header; PNG/JPEG; Box supported