Skip to main content
POST
For all supported document domains, see the Hub Catalog.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Request to the VLM API using a document (doc, docx, pptx, pdf).

metadata
RequestMetadata · object

Optional metadata to pass to the model.

config
GenerationConfig · object

The VLM generation config to be used for //generate.

url
string | null

The URL of the file (provide either file_id or url).

file_id
string | null

The ID of the uploaded file (provide either file_id or url).

id
string

Unique identifier of the request.

created_at
string<date-time>

Date and time when the request was created (in UTC timezone)

callback_url
string<uri> | null

The URL to call when the request is completed.

Minimum string length: 1
model
default:vlm-1

The model to use for generating the response.

Available options:
vlm-1,
vlm-1:auto,
vlm-1:fast,
vlm-1:pro
domain

The domain identifier (e.g. document.invoice). Optional when a skill is provided via config.skills.

Available options:
document.invoice,
document.markdown,
document.receipt,
document.resume,
document.us-drivers-license,
document.layout-detection,
construction.blueprint,
healthcare.patient-referral,
healthcare.patient-identification,
healthcare.physician-order,
healthcare.claims-processing,
healthcare.phi-redaction,
healthcare.phi-edit-replace,
healthcare.lab-report,
healthcare.prior-authorization-request,
healthcare.explanation-of-benefits
batch
boolean
default:true

Whether to process the document in batch mode (async).

Response

Successful Response

Base prediction response for all API responses.

usage
CreditUsageResponse · object

The usage metrics for the request.

id
string

Unique identifier of the response.

created_at
string<date-time>

Date and time when the request was created (in UTC timezone)

completed_at
string<date-time> | null

Date and time when the response was completed (in UTC timezone)

response
any | null

The response from the model. May be an empty dict/list when the model found no extractable content (valid for status=completed).

status
enum<string>
default:pending

The status of the job.

Available options:
pending,
enqueued,
running,
completed,
failed,
paused
domain
string | null

The domain of the prediction (e.g. document.invoice, image.caption).