Montek Developers
Extract

Read a business document

POSThttps://api.montek.io/v1/extract

Reads an order, invoice, form or fax and returns its fields with their position, and its line items. Each PDF page or image counts as one page of usage.

Parameters

idempotency-key header · string optional

A retry with the same key and request is billed once.

Request body multipart/form-data

model string required
langbiang-extract-1.0
lang string optional

Your language, for comment when neither a question nor the document decides it.

enjavi
question string optional

A question about the document, answered in comment.

file file required

PDF (up to 10 MB, 30 pages) or PNG, JPEG, WebP, GIF image (up to 5 MB).

fields any optional

Field names to look for first: repeat the part, or separate names with commas.

Request body application/json

model string required
langbiang-extract-1.0
lang string optional

Your language, for comment when neither a question nor the document decides it.

enjavi
question string optional

A question about the document, answered in comment.

url string required

Where to download the file from; same limits as an upload.

fields array of string optional

Field names to look for first.

Responses

200 What the document says.
400 The request is malformed.
401 Missing or invalid API key.
402 The project has no active plan for this model, or the plan does not allow more use.
403 The key may not call this endpoint, or its project is suspended.
413 The file is too large.
415 The file type is not supported.
422 The document could not be read.
429 Too many requests for this key. Retry after the number of seconds in Retry-After.
503 The model is temporarily unavailable. Retry later.

200

fields array of object required

Up to 50 per page, most important first.

line_items array of object required
comment string required

A short note on the document: what it is and what to double-check, or the answer to question.

refs array of string required

Keys of the fields the comment mentions.

id string required
model string required
pages integer required
usage object required