Skip to main content
POST
Submit Job

Authorizations

Authorization
string
header
required

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

Headers

authorization
string | null

Body

application/json

Request body for POST /batch/jobs.

job_type
string
required

'chat', 'ocr', or 'auto' (detect from file)

Pattern: ^(chat|ocr|auto)$
model
string | null

LiteLLM model name; defaults to model for job_type

inline
InlineInput · object | null

Inline chat messages

drive
DriveInput · object | null

Google Drive input

priority
integer
default:10

Lower = processed sooner

Required range: 1 <= x <= 100
max_retries
integer
default:3
Required range: 0 <= x <= 10
pipeline
string | null

'ocr_then_chat' — run OCR then pass result to LLM

Pattern: ^ocr_then_chat$
pipeline_instruction
string | null

Task for the LLM step in the pipeline

Maximum string length: 2000

Response

Successful Response

id
string
required
status
string
required
job_type
string
required
model
string
required
input_type
string
required
filename
string | null
required
priority
integer
required
retry_count
integer
required
max_retries
integer
required
result
Result · object | null
required
error
string | null
required
drive_folder_id
string | null
required
drive_result_file_id
string | null
required
pipeline
string | null
required
pipeline_instruction
string | null
required
parent_job_id
string | null
required
created_at
string
required
started_at
string | null
required
completed_at
string | null
required