Batches
List Batches
Lists This is the equivalent of GET https://api.openai.com/v1/batches/ Supports Identical Params as: https://platform.openai.com/docs/api-reference/batch/list
Example Curl
curl http://localhost:4000/v1/batches?limit=2 -H "Authorization: Bearer sk-1234" -H "Content-Type: application/json"
GET/{provider}/v1/batches
Authorization
Path parameters
provider*Provider
Query parameters
Response
Successful Response
Body
any
Request
Response
Create Batch
Create large batches of API requests for asynchronous processing. This is the equivalent of POST https://api.openai.com/v1/batch Supports Identical Params as: https://platform.openai.com/docs/api-reference/batch
Example Curl
curl http://localhost:4000/v1/batches -H "Authorization: Bearer sk-1234" -H "Content-Type: application/json" -d '{
"input_file_id": "file-abc123",
"endpoint": "/v1/chat/completions",
"completion_window": "24h"
}'
POST/{provider}/v1/batches
Authorization
Path parameters
provider*Provider
Response
Successful Response
Body
any
Request
Response
Retrieve Batch
Retrieves a batch. This is the equivalent of GET https://api.openai.com/v1/batches/{batch_id} Supports Identical Params as: https://platform.openai.com/docs/api-reference/batch/retrieve
Example Curl
curl http://localhost:4000/v1/batches/batch_abc123 -H "Authorization: Bearer sk-1234" -H "Content-Type: application/json"
GET/{provider}/v1/batches/{batch_id}
Authorization
Path parameters
provider*Provider
batch_id*Batch ID to retrieve
The ID of the batch to retrieve
Response
Successful Response
Body
any
Request
Response