| 字段名 | 类型 | 说明 |
|---|---|---|
code | int | 状态码,0=成功 |
desc | string | 状态描述 |
data− |
object | 业务数据(成功时返回) |
latex |
array | LaTeX 公式数组,每个元素为一条公式的 LaTeX 代码(output_format=latex 时返回,多公式同图全部输出) |
mathml |
array | MathML 公式数组(output_format=mathml 时返回) |
count |
int | 识别到的公式数量 |
formulas− |
array | 公式明细数组,每项含 latex/mathml、context(紧邻说明文字)、confidence(置信度 0~1) |
latex |
string | 该公式的 LaTeX 代码(output_format=latex 时) |
mathml |
string | 该公式的 MathML 片段(output_format=mathml 时) |
context |
string | 该公式紧邻的说明文字,可为空 |
confidence |
float | 该公式识别置信度 0~1 |
raw_text |
string | 含公式段落的完整文字 |
confidence_note |
string | 整体识别置信度说明,低置信时提示人工复核 |
usage− |
object | 本次调用的 token 用量 |
prompt_tokens |
int | 输入 token 数 |
completion_tokens |
int | 输出 token 数 |
total_tokens |
int | 总 token 数 |
request_id | string | 请求追踪ID |
{
"code": 0,
"desc": "success",
"data": { ... },
"request_id": "abc123..."
}
{
"code": 999,
"desc": "错误描述",
"request_id": "abc123..."
}
© 网程科技(林州网程科技有限公司) | 豫ICP备2025120409号-2 | 豫B2-20230220 | 豫公网安备 41058102000262号