跳转至内容
Runstage

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

适用场景

API 参考

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

其他参数

  • language
  • return_result_in_response

快速入门

复制使用模型 ID LightOnOcr_3_4B_Q8 的请求示例。先免费获取运行前报价(最终费用在完成时结算),再使用 Runstage API 密钥运行。

打开工作室
# 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 的实时目录价格。使用美元预付点数,每个密钥均有支出限额。

在完整目录中比较