Search…
Image I/O

Input

Our API supports several options to provide source image that need to be processed.

HTTP(S) URL

URL of the input image. Should be from 1 to 512 characters. Image must be accessible by our system.
1
{
2
"input": "https://letsenhance.io/docs/assets/samples/burger.jpg"
3
}
Copied!

Image upload

Our API also supports ability to upload image content directly. Just make sure that all respective headers are set.

Connected storage

You can connect Cloud Storage and use it as source for images. Currently our API supports AWS S3 and Google Cloud Storage.
After successful registration of Cloud Storage you can refer storage name as input.
1
{
2
"input": "storage://storage-name/path/image-name.jpg"
3
}
Copied!

Output

Configuration of result output is optional. By default you may omit the output option from request payload. Then we store the result to the temporary bucket with lifetime 1 day and provide public URL to the image.
Another option is the usage of connected Cloud Storage, just configure pass to the folder where you want to have result.
We also provide ability to specify advanced output, like image format and even some format specific options like JPEG quality or using JPEG progressive display type.
Basic Usage
Advanced Usage
Advanced Format Usage
1
{
2
"output": "storage://storage-name/result-path/image-name.jpg"
3
}
Copied!
1
"output": {
2
"destination": "storage://storage-name/result-path/image-name.jpg",
3
"format": "jpeg" | "png" | "webp" | "avif"
4
}
Copied!
1
"output": {
2
"destination": "storage://storage-name/result-path/image-name.jpg",
3
"format": {
4
"type": "jpeg",
5
"quality": 85,
6
"progressive": true
7
}
8
}
9
Copied!
Copy link
Edit on GitHub
Contents
Input
Output