Doc -> JSON
Generate structured prediction for the given document.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
Request to the VLM API using a document (doc, docx, pptx, pdf).
Optional metadata to pass to the model.
The VLM generation config to be used for /<dtype>/generate.
The URL of the file (provide either file_id
or url
).
The ID of the uploaded file (provide either file_id
or url
).
Unique identifier of the request.
Date and time when the request was created (in UTC timezone)
The URL to call when the request is completed.
1
The model to use for generating the response.
"vlm-1"
The domain identifier (e.g. document.invoice
).
document.ocr
, document.generative
, document.invoice
, document.markdown
, document.presentation
, document.receipt
, document.resume
, document.utility-bill
, document.bank-statement
, document.us-drivers-license
, healthcare.patient-referral
, healthcare.patient-medical-history
, healthcare.patient-consent
, healthcare.patient-intake
, healthcare.patient-insurance-card
, healthcare.patient-identification
Whether to process the document in batch mode (async).
Response
Base prediction response for all API responses.
The usage metrics for the request.
Unique identifier of the response.
Date and time when the request was created (in UTC timezone)
Date and time when the response was completed (in UTC timezone)
The response from the model.
The status of the job.
enqueued
, pending
, running
, completed
, failed
, paused