POST
/
v0.1
/
batches
Create Batch
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>"
  }
}

Authorizations

x-api-key
string
header
required

Body

multipart/form-data

Response

201
application/json

Batch successfully created.

The response is of type object.