HTTP Requests - Image Upload

HTTP Requests / Image Upload

Field Description
file Binary representation of the image to be processed.
data Serialized JSON object with processing parameters.

To upload an image for processing, send a POST multipart request to endpoint which must consist of two fields: file and data. Within the file field you must transmit binary data (an image for processing) whereas the data field is reserved for a serialized JSON object with image processing steps.

An example cURL request would look like the following:

curl -X POST -u your-api-key: \
-F file=@/path/to/input.jpg \
-F data='{
    "upscale": {
        "factor": 4