Reprocessing
const apiKey = "YOUR_API_KEY";
const imageId = "ID_OF_YOUR_IMAGE";
const preferences = {
ai_version: "4.x",
enhance: true,
enhance_type: 'neutral',
hdr: true
}
const processImage = async (imageId, apiKey, preferences) => {
const processImageResponse = await fetch(
`https://api.autoenhance.ai/v3/images/${imageId}/process`,
{
method: "POST",
headers: {
"Content-Type": "application/json",
"x-api-key": apiKey,
},
body: JSON.stringify({
...preferences
}),
}
);
const data = await processImageResponse.json();
}Specification
Last updated
Was this helpful?