LightOn
LightOnOCR
LightOn 的开放权重文档 OCR 模型。将扫描件、照片和屏幕截图转换为整洁的 Markdown,其中表格使用 HTML,公式使用 LaTeX。可识别多种语言的印刷文字和手写文字。
公开 API 价格
查看所有价格档位$0.01206 / 1024×1024
1 page$0.0121
Hi-res page$0.0271
API 模型 ID
视觉 API 接口
LightOnOcr_3_4B_Q8- 端点
POST /api/v2/run- 输入
- Image file
- 输出
- Extracted text / markdown
- 费率
- $0.01206 / 1024×1024
适用场景
- 通过 POST /api/v2/run 分段上传发票、扫描件或表格进行 OCR,最大 10 MB
- 轮询任务时直接返回提取的纯文本或结构化 JSON
- 直连 GPU 按图像计费,可在运行前通过 POST /api/v2/quote 免费估价
- API 模型 ID
LightOnOcr_3_4B_Q8- 模型开发者
- LightOn
- 模态
- OCR 与视频理解
- 输入
- Image file
- 输出
- Extracted text / markdown
- 端点列表
POST /api/v2/quotePOST /api/v2/runGET /api/v2/jobs/{request_id}GET /api/v2/jobs/{request_id}/output- 基础设施
- 直连 GPU 集群
请求参数
modelstring · 必填Exact Runstage model slug (LightOnOcr_3_4B_Q8). Submit via multipart/form-data to POST /api/v2/run.
imagefile · 必填Document or photo image file (PNG, JPEG, WebP, GIF, or BMP up to 10 MB).
formatstring · 可选Extracted output structure (`text` or `json`).
- text
- json
其他参数
languagereturn_result_in_response
复制 LightOnOCR 的 curl 示例
# 1. Free pre-run retail quote
curl -X POST 'https://runstage.dev/api/v2/quote' \
-H "Content-Type: application/json" \
-d '{"model":"LightOnOcr_3_4B_Q8","width":1024,"height":1024}'
# 2. Submit metered image upload job (PNG, JPEG, WebP, GIF, or BMP up to 10 MB)
curl -X POST 'https://runstage.dev/api/v2/run' \
-H "Authorization: Bearer $RUNSTAGE_API_KEY" \
--form-string 'model=LightOnOcr_3_4B_Q8' \
-F "image=@input.png" \
--form-string "format=text" \
--form-string "return_result_in_response=true"
# 3. Poll owner-scoped job result until status is "done" or "failed"
curl -H "Authorization: Bearer $RUNSTAGE_API_KEY" \
'https://runstage.dev/api/v2/jobs/<request_id>'价格
| 计费单位和选项 | 费率(美元) |
|---|---|
| Single document page (1024×1024)Standard OCR extraction | $0.0121 |
| Dense scan (1536×1536)Small print & multi-column tables | $0.0271 |
计费说明
- High-accuracy OCR and document parsing.
- 动用预付点数前,可通过 POST /api/v2/quote 免费估算运行费用。
- 任务完成或失败时按实际费用自动结算,并退回未使用的预留点数。
Runstage 的实时目录价格。使用美元预付点数,每个密钥均有支出限额。
在完整目录中比较