HTTP Requests - Image Upload

HTTP Requests / Image Upload

On this page:
POST https://api.supares.com/1.0/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 https://api.supares.com/1.0/upload 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 https://api.supares.com/1.0/upload -X POST -u your-api-key: \
-F file=@/path/to/input.jpg \
-F data='{
    "upscale": {
        "factor": 4
    }
}'