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.
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
Authentication error
Not found
Validation error
Last updated
Was this helpful?