Ink reads printed text in photos, scans and screenshots: receipts, invoices, labels, signs, slides. You get the full text in reading order plus every line with its bounding box and confidence.
Feed the text to Mold to turn a receipt photo into JSON in two calls.
Use it
curl https://labs.greatwork.company/v1/run \
-H "Authorization: Bearer $GWL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "ink-1",
"input": "https://labs.greatwork.company/examples/receipt.png"
}'const res = await fetch("https://labs.greatwork.company/v1/run", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.GWL_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "ink-1",
"input": "https://labs.greatwork.company/examples/receipt.png"
}),
});
const { output, usage } = await res.json();import os, requests
res = requests.post(
"https://labs.greatwork.company/v1/run",
headers={"Authorization": f"Bearer {os.environ['GWL_API_KEY']}"},
json={
"model": "ink-1",
"input": "https://labs.greatwork.company/examples/receipt.png"
},
)
output = res.json()["output"]# Send a local file instead of a URL
curl https://labs.greatwork.company/v1/run \
-H "Authorization: Bearer $GWL_API_KEY" \
-F model=ink-1 \
-F input=@photo.jpgSet GWL_API_KEY to a key from your dashboard. The bare name ink works too and follows new versions.
Options
input: An image: an https URL, a data URL (`data:image/png;base64,...`), or a file in a multipart upload. JPEG, PNG, WebP, GIF, AVIF or TIFF, up to 10 MB.
| Name | Type | Default | What it does |
|---|---|---|---|
min_confidence | number | 0.5 | Drop lines below this confidence. |
Output
| Field | Type | Meaning |
|---|---|---|
text | string | All text, lines in reading order. |
lines | object[] | text, score, box {x, y, width, height} in pixels. |
Every response wraps this in {"id", "model", "output", "usage": {"units", "unit", "cost_usd"}, "latency_ms"}.
Examples
Receipt
{
"model": "ink-1",
"input": "/examples/receipt.png"
}{
"text": "DUCK POND COFFEE\n412 Elm Street, Austin TX\n(512) 555-0142\nDate: 11/14/2026 08:42 AM\nOrder #20481 Server: Maya\n2 x Oat Latte 11.00\n1 x Blueberry Muffin 3.75\n1 x Cold Brew Large 5.25\nSubtotal 20.00\nTax 8.25% 1.65\nTip 3.00\nTOTAL $24.65\nVISA ****4417 APPROVED\nThank you, come again!",
"lines": [
{
"text": "DUCK POND COFFEE",
"score": 0.9692,
"box": {
"x": 138,
"y": 40,
"width": 284,
"height": 23
}
},
{
"text": "412 Elm Street, Austin TX",
"score": 0.9672,
"box": {
"x": 119,
"y": 77,
"width": 325,
"height": 23
}
},
{
"text": "(512) 555-0142",
"score": 0.9441,
"box": {
"x": 194,
"y": 108,
"width": 177,
"height": 21
}
},
{
"text": "Date: 11/14/2026 08:42 AM",
"score": 0.9676,
"box": {
"x": 46,
"y": 163,
"width": 326,
"height": 20
}
},
{
"text": "Order #20481 Server: Maya",
"score": 0.9776,
"box": {
"x": 44,
"y": 192,
"width": 326,
"height": 25
}
},
{
"text": "2 x Oat Latte 11.00",
"score": 0.9841,
"box": {
"x": 44,
"y": 257,
"width": 473,
"height": 22
}
},
{
"text": "1 x Blueberry Muffin 3.75",
"score": 0.9715,
"box": {
"x": 44,
"y": 292,
"width": 474,
"height": 25
}
},
{
"text": "1 x Cold Brew Large 5.25",
"score": 0.948,
"box": {
"x": 47,
"y": 327,
"width": 472,
"height": 25
}
},
{
"text": "Subtotal 20.00",
"score": 0.9997,
"box": {
"x": 45,
"y": 398,
"width": 472,
"height": 22
}
},
{
"text": "Tax 8.25% 1.65",
"score": 0.9981,
"box": {
"x": 43,
"y": 431,
"width": 475,
"height": 25
}
},
{
"text": "Tip 3.00",
"score": 0.9994,
"box": {
"x": 40,
"y": 465,
"width": 477,
"height": 25
}
},
{
"text": "TOTAL $24.65",
"score": 0.9995,
"box": {
"x": 43,
"y": 510,
"width": 474,
"height": 25
}
},
{
"text": "VISA ****4417 APPROVED",
"score": 0.9856,
"box": {
"x": 43,
"y": 561,
"width": 288,
"height": 24
}
},
{
"text": "Thank you, come again!",
"score": 0.9844,
"box": {
"x": 137,
"y": 643,
"width": 284,
"height": 24
}
}
],
"width": 560,
"height": 760
}Captured on our production servers: 1571 ms, 1 image, $0.0005.
Sign
{
"model": "ink-1",
"input": "/examples/sign.png"
}{
"text": "Hartwell Bakery\nFresh bread daily\nOpen 7 days 7am to 6pm\nSourdough $8 Baguette $4\nAsk about wedding cakes",
"lines": [
{
"text": "Hartwell Bakery",
"score": 0.98,
"box": {
"x": 209,
"y": 133,
"width": 483,
"height": 66
}
},
{
"text": "Fresh bread daily",
"score": 0.9972,
"box": {
"x": 313,
"y": 228,
"width": 273,
"height": 42
}
},
{
"text": "Open 7 days 7am to 6pm",
"score": 0.9508,
"box": {
"x": 271,
"y": 304,
"width": 362,
"height": 35
}
},
{
"text": "Sourdough $8 Baguette $4",
"score": 0.9784,
"box": {
"x": 276,
"y": 376,
"width": 348,
"height": 32
}
},
{
"text": "Ask about wedding cakes",
"score": 0.9793,
"box": {
"x": 309,
"y": 438,
"width": 282,
"height": 29
}
}
],
"width": 900,
"height": 600
}Captured on our production servers: 714 ms, 1 image, $0.0005.
Good for
- Read receipts and invoices
- Make screenshots searchable
- Pull serial numbers from product labels
- Index slides and whiteboards
Limits and caveats
- Printed text: handwriting is unreliable.
- Accents and non-Latin scripts other than Chinese are often misread.
- Very small text in large photos: crop first.
Pricing
$0.50 per 1,000 images. One unit per image. Failed calls aren't charged, and a call never costs more than its estimate (POST /v1/estimate tells you before you run it).
Built on
PaddleOCR PP-OCRv4 (detection + recognition), ~15M parameters. License: Apache-2.0. We run it on our servers.