HDR Brackets
1. Creating an Order
const createOrder = async (apiKey) => {
const createOrderResponse = await fetch(
"https://api.autoenhance.ai/v3/orders/",
{
method: "POST",
headers: {
"Content-Type": "application/json",
"x-api-key": apiKey,
}
}
);
return { order_id } = await createOrderResponse.json();
}import requests
import json
def create_order(api_key):
create_order_url = "https://api.autoenhance.ai/v3/orders/"
headers = {
"Content-Type": "application/json",
"x-api-key": api_key,
}
create_order_response = requests.post(create_order_url, headers=headers)
if create_order_response.status_code != 200:
create_order_response.raise_for_status()
return create_order_response.json['order_id']2. Uploading the brackets
2. Grouping and enhancing your brackets
3. Checking the order status
4. Downloading image
Last updated
Was this helpful?