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.
Schedules image processing job
/rest_api/process
API KEY
Image data base-64 encoded. Currently supported file types - https://pillow.readthedocs.io/en/stable/handbook/image-file-formats.html#fully-supported-formats
json string with processing parameters - the same as they would be send with application/json request
{"width": 1000, "height": 1000, "enhancements": ["light", "color"], "fit": {"crop": "center"}}
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
Image data base-64 encoded. Currently supported file types - https://pillow.readthedocs.io/en/stable/handbook/image-file-formats.html#fully-supported-formats
json string with processing parameters - the same as they would be send with application/json request
{"width": 1000, "height": 1000, "enhancements": ["light", "color"], "fit": {"crop": "center"}}