cURL
curl --request POST \ --url https://api.promptloop.com/v0.1/batches \ --header 'Content-Type: multipart/form-data' \ --header 'x-api-key: <api-key>' \ --form 'task_id=<string>' \ --form batch_input_data=@example-file
{ "status": "success", "data": [ { "batch_id": "<string>", "jobs_submitted": 123, "jobs_added": 123, "jobs_failed_error_indexes": [ { "error_index": 123, "error_message": "<string>" } ], "estimated_time_to_start": "2023-11-07T05:31:56Z", "estimated_time_to_complete": "2023-11-07T05:31:56Z" } ], "message": "<string>", "error": { "code": 123, "details": "<string>" } }
Uploads a JSONL file and launches a new batch with the provided data. Returns the batch id.
Batch successfully created.
The response is of type object.
object