Skip to content
AvraAvra
Esc
↑↓navigate↵open⌘Jpreview
On this page

Batch v2 and Files API

Multi-file upload sessions, Parquet batch inputs, and deprecation of the v1 batch endpoints.

A new generation of the Batch API is available, improving flexibility while also improving security and throughput. Uploads move from one-file-at-a-time batch inputs to multi-file upload sessions with MD5 integrity checks. Batch executions follow that move, allowing multi-file inputs that now support Parquet extensions, deprecate JSONL and keep the support for CSV for low complexity schemas.

  • POST /v2/api/files/upload — request upload URLs for one or more files.
  • GET /v2/api/files — list uploaded files and their metadata.
  • POST /v2/api/batches — start a batch prediction for one or more files.
  • GET /v2/api/batches/{id}/result — retrieve a download URL or a URI path to access your results.

The v1 batch and batch-inputs endpoints are now deprecated, they remain available for backward compatibility and will be sunset soon.

Migration guide: Migrating to Batch v2. See also Batch Inference.

Was this page helpful?