string
required
Submit and retrieve large volumes of extract, summarize, and classify requests asynchronously.
"model" to "extract", "summarize", or "classify" to select the operation. Each item is processed independently — a failure on one item does not affect others.
Documents (document / document_mime_type) are not supported in batch requests. Pass pre-extracted text in the text field.
POST /v1/batches"POST"."/v1/chat/completions".model is the discriminator — set it to "extract", "summarize", or "classify". Remaining fields depend on the model."model": "extract"type values in the response."model": "summarize""Use bullet points.", "Focus on financial figures only.")."model": "classify"name (string) — the label namerubric (string) — a yes/no question describing what this label means400. Split larger workloads across multiple batches.
"validating".
GET /v1/batches/{batch_id}status is "completed" or "failed". Returns the same OpenAI-compatible Batch object.
status is one of validating, in_progress, completed, or failed. An unknown batch ID returns 404.
GET /v1/batches/{batch_id}/outputcustom_id you provided in the input.null if the item failed.status_code — HTTP status of the individual itembody — ChatCompletion-shaped object. The domain result is JSON-serialized in choices[0].message.content.null on success.