Canonical: https://weaveos.com/reference/openai/submit-responses-batch

1. [Software capabilities](https://weaveos.com/reference)
2. /[OpenAI API](https://weaveos.com/reference/openai)
3. /Submit a batch of Responses API requests

[![](https://weaveos.com/reference/logos/openai.svg)OpenAI API](https://weaveos.com/reference/openai)

# Submit a batch of Responses API requests

Upload a JSONL input file for batch processing, then create a batch targeting the Responses API. Use the REST API or OpenAI SDK to submit it.

Documentation reviewed November 27, 2026 · 2 methods with sources

## Ways to do it

1. [1API: POST /v1/batches](https://weaveos.com/reference/openai/submit-responses-batch#method-1)
2. [2SDK: openai.batches.create()](https://weaveos.com/reference/openai/submit-responses-batch#method-2)

API

### POST /v1/batches

Create a batch from an uploaded input file and select /v1/responses as its endpoint.

[Read source: OpenAI create batch API reference](https://developers.openai.com/api/reference/resources/batches/methods/create)

- Requirements

  An OpenAI API key, an uploaded JSONL file with purpose=batch, and a supported endpoint and completion window.

- Limitations

  The input file can contain at most 50,000 requests and be 200 MB. A batch that expires cancels unfinished requests, while completed results remain available.

Example shell

Copy

```
curl https://api.openai.com/v1/batches \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input_file_id":"file-abc123","endpoint":"/v1/responses","completion_window":"24h"}'
```

SDK

### openai.batches.create()

Submit the uploaded file through the OpenAI SDK and retrieve the resulting batch object.

[Read source: OpenAI Batch API guide](https://developers.openai.com/api/docs/guides/batch)

- Requirements

  The OpenAI SDK initialized with an API key and the ID of a JSONL file uploaded for batch use.

- Limitations

  Batch jobs are asynchronous and can expire before every request completes. Check the batch status and collect the output file.

Example text

Copy

```
const batch = await openai.batches.create({ input_file_id: fileId, endpoint: "/v1/responses", completion_window: "24h" });
```

[Next OpenAI API task Retrieve OpenAI batch results](https://weaveos.com/reference/openai/retrieve-batch-results)

## More from OpenAI API

[View all 2 OpenAI API tasks](https://weaveos.com/reference/openai)
