LightOn
LightOnOCR
LightOn's open-weight document OCR model. Turns scans, photos and screenshots into clean Markdown, with tables as HTML and equations as LaTeX. Reads print and handwriting in many languages.
Published API pricing
See all tiers$0.01206 / 1024×1024
1 page$0.0121
Hi-res page$0.0271
API model ID
Vision API interface
LightOnOcr_3_4B_Q8- Endpoint
POST /api/v2/run- Input
- Image file
- Output
- Extracted text / markdown
- Rate
- $0.01206 / 1024×1024
Best for
- Live document OCR on POST /api/v2/run via multipart image upload (invoices, scans, tables up to 10 MB)
- Structured plain-text or JSON extraction returned inline on job poll
- Free pre-run cost quotes via POST /api/v2/quote with direct-GPU per-image rates
- API model ID
LightOnOcr_3_4B_Q8- Model developer
- LightOn
- Modality
- OCR & Video Understanding
- Input
- Image file
- Output
- Extracted text / markdown
- Endpoints
POST /api/v2/quotePOST /api/v2/runGET /api/v2/jobs/{request_id}GET /api/v2/jobs/{request_id}/output- Infrastructure
- Direct GPU fleet
Request parameters
modelstring · requiredExact Runstage model slug (LightOnOcr_3_4B_Q8). Submit via multipart/form-data to POST /api/v2/run.
imagefile · requiredDocument or photo image file (PNG, JPEG, WebP, GIF, or BMP up to 10 MB).
formatstring · optionalExtracted output structure (`text` or `json`).
- text
- json
Additional parameters
languagereturn_result_in_response
Quickstart
Copy a working request using model ID LightOnOcr_3_4B_Q8. Check a free pre-run quote first (final cost settles on completion), then run with your Runstage API key.
# 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>'Pricing
| Billable unit and options | Rate (USD) |
|---|---|
| Single document page (1024×1024)Standard OCR extraction | $0.0121 |
| Dense scan (1536×1536)Small print & multi-column tables | $0.0271 |
Billing notes
- High-accuracy OCR and document parsing.
- Free pre-run cost estimates are available via POST /api/v2/quote before committing prepaid credits.
- Upfront reservations automatically reconcile against settled execution cost on completion or failure, refunding any unused reserved credits.
Live catalog rates on Runstage. Prepaid USD credits with per-key spend caps.
Compare in full catalog