Grouping Brackets and Processing Orders
const apiKey = "YOUR_API_KEY";
const orderId = "ID_OF_YOUR_ORDER";
const preferences = {
ai_version: "5.x",
enhance: true,
enhance_type: 'property',
hdr: true
}
const mergeOrder = async (apiKey,orderId, preferences) => {
return await fetch(
`https://api.autoenhance.ai/v3/orders/${orderId}/process`,
{
method: "POST",
headers: {
"x-api-key": apiKey,
},
body: JSON.stringify({
image_name: "your-image-name",
contentType: "image/jpeg",
...preferences
}),
}
);
}Specification
The version of the AI model to use for enhancing the image. Versions ending in an .x will use the latest minor version as soon as it's published.
The type of clouds in the new sky to replace the original sky with. Options include: CLEAR, LOW_CLOUD, HIGH_CLOUD
Whether to enhance the image.
trueThe type of enhancement to apply to the image. PROPERTY or PROPERTY_USA is used with AI version < 4.0, for >= 4.0 use WARM or NEUTRAL..
Correct any lens distortion in the image.
trueIf provided then group into an image after every specified number of brackets, if not provided or set to 0 then we automatically group based on visual analysis.
Whether to blur any faces or license plates in the image.
Restage options for in-painting or modifying scene elements. Allows correcting details like lighting a fireplace, removing fingerprints from a TV screen, or removing unwanted items like tripods.
Enable the replacement of the original sky for a summer sky.
Whether to upscale the image.
Correct any vertical distortion in the image so that it appears straight.
trueWhat type of window pull to apply to the image (Available since AI version >= 4.0, WITH_SKIES can only be used from AI version 5.2 or higher).
Successful response
The creation date of the order.
Default sort order for images in the order.
The list of images for the order.
The status of the order.
The processing status for the order
The processing status for the order
The last updated date of the order.
The name for the order.
The ID for the order.
The status of the order.
Number of images in the order.
Authentication error
Not found
Validation error
Last updated
Was this helpful?