API
Convert a file
Send the file bytes as the request body. There is no multipart form, so no file name ever reaches us.
curl -X POST "https://scribe.starhold.app/v1/convert?lang=en&wait=1" \
-H "Authorization: Bearer sh_live_..." \
--data-binary @scan.pdf
With wait=1 a job that finishes within 25 seconds returns the Markdown itself. Otherwise you get
202 with a job_id. Poll GET /v1/jobs/{id}, then fetch
GET /v1/jobs/{id}/result.md. The result is deleted by that download, or after 15 minutes.
DELETE /v1/jobs/{id} deletes it at once.
Languages: lang=en,fr (at most three). Supported: da, de, en, es, fi, fr, it, nl, no, pl, pt, sv.
Limits
| Plan | Pages per month | Max per file | Jobs at once | Largest file: up to |
|---|---|---|---|---|
| Free | 50 | 10 pages, 10 MB | 1 | about 2 min |
| Entry | 1,000 | 100 pages, 50 MB | 2 | about 17 min |
| Middle | 10,000 | 400 pages, 200 MB | 2 | about 67 min |
Speed: a scanned page takes up to about 10 seconds (we measured 4 to 10 s; Docling reads layout and tables, so it is not
instant), a PDF with a text layer is usually faster. Plan for roughly 6 to 15 scanned pages a minute per job: a
100-page scan takes up to about 17 minutes, the largest Middle file up to about 67 minutes. Every job reports
estimated_seconds_max when you submit it.
Everyone: a job is stopped when it runs 25% over its estimate (at least 5 minutes, never more than 90 minutes), 100 megapixels per image or page, password-protected PDFs are refused.
Errors
Every error is JSON {"error": {"code", "message", "docs"}}. Messages are fixed text and never quote your document.
quota_exceeded(402): this file would pass the monthly page limit.payload_too_large(413) andtoo_many_pages(422): over the plan's per-file limit.unsupported_type(415): accepted types are PDF, PNG, JPEG, TIFF, WebP.unreadable_file(422): corrupt, password-protected, or too many megapixels.rate_limitedandbusy(429): too many jobs at once, or the queue is full. Retry after theRetry-Afterheader.convert_timeout(504) andconvert_failed(500).