Docs
Glossary
The words of the API in plain language. Each entry links to the place where you use it.
1.0 Your account
1.1 API key
An API key is the secret code your program sends with each call. It works like a password, for a program instead of a person. Your first key appears once, after you sign up with your email or buy credits. Manage your keys.
1.2 Scope
A scope is one kind of action that an API key may do. For example, with only the read scope, a program can fetch results but cannot spend credits. There are four scopes: read, spend, delete, and keys.
1.3 Credit
A credit is a prepaid unit; reading a page uses the credits of its model. You buy credits in packs, before you read. A page that fails uses no credits. See the prices.
2.0 Reading pages
2.1 Signed link
A signed link is a web address that works for a short time, without a key. Anyone who has the link can use it until it expires. You send scans and fetch results through signed links that expire after at most 10 minutes. Do not log or share them.
2.2 Quote
A quote is a free price offer for a set of pages; it holds for 30 minutes. You can use a quote once, to start one job.
2.3 Job
A job reads up to 200 pages and reserves their credits when it starts. Each page that succeeds is charged once. The credits of the other pages go back to your balance. Read many pages.
2.4 Reader
A reader is a GPU server in the EU that runs the model on your pages. Readers stop when no one uses them, and they start again for the next page.
2.5 Cold start
A cold start is the wait while a stopped reader starts again. It often takes 1.5 to 2.5 minutes. While it lasts, the page shows wait.reason: reader_starting. Why a page waits.
2.6 Line check
The line check looks for each line of the text on the scan. A second model does it, apart from the model that wrote the text. Check a line by hand when the line check did not find it. See a result.
2.7 JSON
JSON is a common text format for data that programs read. Most programming languages can read it. The full result of a page is JSON; its schema is page-result-1.json.
2.8 Correction
A correction is your corrected text of a page that the API read. With it, you give us the page image, our result, and your text to improve the model. You can withdraw it at any time. Send a correction.
3.0 Calling the API from a program
3.1 Idempotency-Key
An Idempotency-Key header makes a repeated request run only once. Your program sends the same value again when it repeats a request after a lost answer. POST /v1/jobs, POST /v1/read, and POST /v1/purchases require it.
3.2 Retry-After
Retry-After is a header that says how many seconds to wait. The API sends it when a page is not ready, or when you send too many requests. Wait that long, then ask again.
3.3 Batch client
The batch client is a Python file that reads a folder of scans and saves the results. If it stops, you run it again, and it goes on where it stopped. Read a large collection.
Next: Read your first page