Batch Job
A 4-step recipe with OpenAI. We can help you get access.
Recipe · 4 steps
Batch Job
with OpenAI
Upload batch input, run a batch, poll to completion, and return output file id.
- Upload the JSONL batch input file with the batch purpose.
- Create a batch using the uploaded input file and target endpoint.
- Poll the batch until it reaches a terminal status, branching to the result step when completed and looping while it is still processing.
- Retrieve the completed batch and return its output and error file ids.
What you'll need to have ready
- apiKey: OpenAI API key used as a Bearer token.
- batchInputFile: The JSONL batch input file contents to upload (binary/multipart field).
- endpoint: The endpoint the batch runs against (e.g. /v1/chat/completions).
For your developer
Arazzo workflow openai:batch-job, 4 operations: createFile → createBatch → retrieveBatch → retrieveBatch. Specs on APIs.io.