Why did we open-source our inference engine? Read the post

Extract text and structure from images

Superlinked gives your agent one API to turn PDFs, screenshots, charts and photos into structured data.

Get started
Invoice with customer, line items, and total
Structured output
invoice_no   123
customer     Acme Corp.
line_items   3
total        $385.00
Bubble chart of employment change and weekly earnings by industry
industry                                jobs   weekly
[1] Private education and health services   +69k   $1,184
[2] Professional and business services      +36k   $1,674
[3] Leisure and hospitality                  -61k     $602
[4] Information                               -9k   $2,071
U.S. Bureau of Labor Statistics · June 2026

Run OCR with one extract call

from pathlib import Path
from sie_sdk import SIEClient
client = SIEClient(
api_key="API keysk-sie-…",
base_url="https://api.superlinked.com",
)
image = {"data": Path(imagestore-receipt.jpgbrowse).read_bytes(), "format": "jpeg"}
result = client.extract(
"modellightonai/LightOnOCR-2-1B",
{"images": [image]},
)
print(result["entities"][0]["text"])
import { readFile } from 'node:fs/promises';
import { SIEClient } from '@superlinked/sie-sdk';

const client = new SIEClient('https://api.superlinked.com', {
  apiKey: 'sk-sie-…',
});

const image = await readFile("store-receipt.jpg");
const result = await client.extract(
  'lightonai/LightOnOCR-2-1B',
  { images: [image] },
  { labels: [] },
);
console.log(result.entities[0].text);
images_bytes=$(base64 < 'store-receipt.jpg' | tr -d '\n')
curl https://api.superlinked.com/v1/extract/lightonai%2FLightOnOCR-2-1B \
  -H "Authorization: Bearer sk-sie-…" \
  -H "Content-Type: application/json" \
  -d "{\"items\":[{\"images\":[{\"data\":\"$images_bytes\",\"format\":\"jpeg\"}]}]}"
Build the "OCR" capability into my app using the Superlinked Inference Engine (SIE).

Context
- SIE is an OpenAI-style inference API. Python SDK: `from sie_sdk import SIEClient`; TypeScript: `@superlinked/sie-sdk`.
- Base URL: https://api.superlinked.com (or my regional endpoint). Auth: Bearer key from env `SIE_API_KEY` (never hard-code it).
- Model: lightonai/LightOnOCR-2-1B (SIE primitive: /extract). Keep the model id configurable.

Task
- Input: an uploaded image containing text.
- Behaviour: return the text visible in the image
- Call the selected SIE primitive once per request and map the response into your domain type.

Deliverables
- A typed client wrapper, an application-level function for this task, error handling for timeouts/empty input, and unit tests with a stubbed client.
- Wire it into my existing stack (ask me which framework if unclear) and add a short usage example.
Output
Source store-receipt.jpg
source · store-receipt.jpg

MARKET 42

Oat milk 3.20

Rye bread 2.80

Coffee beans 9.40

Total 15.40

  • Reads text directly from images and photos

OCR quality and latency

PRICE
$ / 1k pages
$1.5 AWS Textract
$1.5 Google Enterprise Document OCR
$1.5 Azure Document Intelligence Read
$1.86 SIE docling OCR
SIE LightOnOCR 2 1B $2
Mistral OCR 4 $4
QUALITY
Accuracy · olmOCR
SIE LightOnOCR 2 1B 0.78
0.75
0.74
0.33 SIE docling OCR
0.32
0.31
LATENCY
p50 ms
320ms SIE docling OCR
360ms
390ms
SIE LightOnOCR 2 1B 600ms
680ms
720ms

Deploy your way

Self-host with K8s

Easy & scalable deployment in your own cloud.

  • Terraform to your cloud in minutes
  • Apache-2.0, same engine as Cloud
  • Scales to zero, no bill between jobs
  • Per-tenant pools, no noisy neighbors
Agent prompt
Deploy SIE to our AWS account with the superlinked/sie/aws Terraform module. Docs: superlinked.com/docs/deploymentDeploy SIE to our GCP project with the superlinked/sie/google Terraform module. Docs: superlinked.com/docs/deploymentDeploy SIE to our Azure AKS cluster via helm install. Requirements: superlinked.com/docs/deployment
Deploy guide

Run locally

Run the same models on your own machine.

  • Runs on NVIDIA GPU or Apple Silicon
  • One command, no Docker or cluster
  • All 100+ Cloud models, fully offline
  • Same SDK and IDs, no code changes
pip install "sie-server[local]" && sie-server servepip install "sie-server[local]" && sie-server serve --device cuda
Quickstart

Contact us

Tell us about your use case and we'll get back to you shortly.

Apply for an inference grant

Free capacity on our hosted cluster for selected projects. Tell us what you run and we reply by email.