API methods
Last updated
Last updated
The API address is https://deep-image.ai/rest_api/
There are two methods for the scheduling image processing and one for retrieving the results. With "process_result" method, image can be processed and if the result is available during 25 seconds, the url to the result will be returned. The second method - "process" - always schedules a processing job and the user has to wait for the result with "result" method.
Processing methods supports both form-data and json content types.
When processing is in progress, the result endpoint should be periodically checked for the complete status.
It's convenient method that returns the url to the result immediately if the processing time is less than 25 seconds. Otherwise it will return a job hash and the result will be available via "result" method.
/rest_api/process_result
API KEY
The URL of the input image
https://deep-image.ai/api-example.png
Settings for background removal
The desired width of the output image
300
The desired height of the output image
400%
The list of enhancements to apply to the image
["deblur","denoise","light","color"]
Settings for the light enhancement
Settings for the color enhancement
Settings for the white balance enhancement
The desired output format of the image
jpeg
, png
, webp
Settings for adding a caption to the image
Settings for fitting the input image into the output image
The desired output image quality
85
The maximum file size of the output image for JPEG or WEBP formats
10MB
Schedules image processing job
/rest_api/process
API KEY
The URL of the input image
https://deep-image.ai/api-example.png
Settings for background removal
The desired width of the output image
300
The desired height of the output image
400%
The list of enhancements to apply to the image
["deblur","denoise","light","color"]
Settings for the light enhancement
Settings for the color enhancement
Settings for the white balance enhancement
The desired output format of the image
jpeg
, png
, webp
Settings for adding a caption to the image
Settings for fitting the input image into the output image
The desired output image quality
85
The maximum file size of the output image for JPEG or WEBP formats
10MB
Returns account details including credits, username, email, API key, language preference, webhook settings, and billing address.
/rest_api/me
/rest_api/result/{hash}
/rest_api/result/{hash}