# LightOnOCR

`LightOnOcr_3_4B_Q8` · LightOn · OCR & Video Understanding

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.

[Model page](https://runstage.dev/models/lightonocr-3-4b-q8) · [JSON](https://runstage.dev/models/lightonocr-3-4b-q8.json) · [Catalog](https://runstage.dev/pricing) · [Playground](https://runstage.dev/playground?model=LightOnOcr_3_4B_Q8)

## Technical summary

- **Exact API model slug**: `LightOnOcr_3_4B_Q8`
- **Developer**: LightOn
- **Inference types**: `img2txt`
- **Infrastructure**: Direct GPU Fleet
- **Headline rate**: $0.01206 / 1024×1024 (Input image resolution)
- **Free quote endpoint**: `POST https://runstage.dev/api/v2/quote`

## Runstage routes

- **Image OCR** (`img2txt`): `POST /api/v2/quote` · `POST /api/v2/run` · `GET /api/v2/jobs/{request_id}` · `GET /api/v2/jobs/{request_id}/output`

## Best for

- Run LightOnOCR via unified v2 jobs with free pre-run /price quotes
- Low-latency pay-as-you-go inference on direct GPU capacity

## Billing notes

High-accuracy OCR and document parsing.

## Quickstart (cURL)

```bash
# 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>'
```
