Batch API Reference
Last updated
Last updated
Batch endpoint allows batch processing of images by specifying a cloud Storage directory as input. See for more info.
In other aspects, the Batch endpoint behaves like the , returning a response without waiting for an actual result that should be queried with another request.
To get Batch image editing result, you need to know the ID of the processing request. Or you can take a ready-to-use link from the result_url
property of the response body described above.
Once you have made the request to https://api.claid.ai/v1-beta1/image/edit/batch/<task_id>
you will get a response with information about the request, input, and output images.
Image information shown in the response:
id
integer
Task ID.
status
string
Request processing status. Can have values: ACCEPTED
, PROCESSING
, ERROR
, DONE
.
created_at
string
Exact time when the processing was requested.
request
object
The body of the request that was used for processing.
errors
list
List of errors, if any are occurred during image processing (status
will have ERROR
value), in other cases - will be empty.
results
list
List of results in form of input_object
and output_object
pairs, in case of processing errors - will be empty. Details are listed below.
The request body for Batch endpoint is the same as for regular image edit operation, except Storage directories are allowed for input
and output
parameters. See for more info.
Once you have made the request to https://api.claid.ai/v1-beta1/image/edit/batch
you will get a response with information about request status and other details, see the part of the page for more info.
See the and to learn about headers.
See input_object
and output_object
properties description at the part of the page.
See to learn about headers.
Specifies:
input
)operations
)output
)URL of the input file or folder. Should be from 1 to 512 characters. Must be accessible by our system.
storage://storage_1/input_folder/ | https://image_url.com/example.jpg | [https://image_url.com/example.jpg, https://image_url.com/example.jpg]
Customize the editing workflow so that the output images meet your requirements.
URL of the output folder. If output
is not defined, we store the output image on our bucket and return the temporary URL. The name of the output file remains the same as the input file. Images are stored for one day.
{"format":"jpeg"}
Example: storage://storage_1/output_folder/
Wrapper for responses