latestOpenAPI 3.1.22026-08-10223187.9 KB

7610937217a4

Estimate

Estimate

Validates the request against our standard models and returns the estimated time taken to complete a given processing job and the credits that would be consumed for that job.

post/estimate

Request body

category'Enhance' | 'Sharpen' | 'Denoise' | 'Restore' | 'Lighting' | 'Matting' | 'Tool'

Indicates which category of model is being used.

model'Standard V2' | 'Low Resolution V2' | 'CGI' | 'High Fidelity V2' | 'Text Refine' | 'Standard' | 'Strong' | 'Lens Blur' | 'Lens Blur V2' | 'Motion Blur' | 'Natural' | 'Refocus' | 'Wildlife' | 'Portrait' | 'Normal' | 'Extreme' | 'Adjust' | 'Adjust V2' | 'White Balance' | 'Colorize' | 'Object' | 'Transparency Upscale'

The model to use for processing the image.

input_heightinteger required

The height of the input image in pixels.

input_widthinteger required

The width of the input image in pixels.

output_heightinteger

The desired height of the output image in pixels. Your image will automatically be upscaled to this specified value. If only one of output_height and output_width is set, then the other dimension is scaled proportionally. Only applicable for Enhance models.

output_widthinteger

The desired width of the output image in pixels. Your image will automatically be upscaled to this specified value. If only one of output_height and output_width is set, then the other dimension is scaled proportionally. Only applicable for Enhance models.

crop_to_fillboolean

Default behavior is to letterbox the image if a differing aspect ratio is chosen. Enable crop_to_fill by setting this to true if you instead want to crop the image to fill the dimensions.

output_format'jpeg' | 'jpg' | 'png' | 'tiff' | 'tif'

The desired format of the output image.

Response

The estimated time taken in seconds and the credits that would be consumed on process.

durationinteger required

The estimated time taken in seconds for the image to be enhanced with the given parameters.

creditsinteger required

The number of credits that would be consumed if the given requests was executed.