Skip to main content
Portkey exposes OpenAI’s Batch API through one consistent endpoint, so you can run large, asynchronous evaluation jobs at 50 % lower cost. Use batches when you need to run large jobs offline — e.g. nightly evals, A/B tests, or bulk embeddings.

Create Batch Job

Upload your .jsonl file first — see Files API for more details and then use the following code to create a batch job.

List Batch Jobs

Get Batch Job Details

The status of a given Batch object can be any of the following:

Get Batch Output

Cancel Batch Job

Last modified on December 3, 2025