Execute directly against our high-throughput gateway. Replace YOUR_LUMOZ_API_KEY with your free developer key.
curl -X POST "https://lumozai.com/services/run" \
-H "Authorization: Bearer YOUR_LUMOZ_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"slug": "remove-background",
"image_url": "https://example.com/sneakers.jpg",
"output_format": "png"
}'
import requests
url = "https://lumozai.com/services/run"
headers = {"Authorization": "Bearer YOUR_LUMOZ_API_KEY"}
payload = {
"slug": "remove-background",
"image_url": "https://example.com/sneakers.jpg",
"output_format": "png"
}
res = requests.post(url, json=payload, headers=headers).json()
print("Cutout PNG URL:", res.get("output_url"))
const res = await fetch("https://lumozai.com/services/run", {
method: "POST",
headers: { "Authorization": "Bearer YOUR_LUMOZ_API_KEY", "Content-Type": "application/json" },
body: JSON.stringify({
slug: "remove-background",
image_url: "https://example.com/sneakers.jpg",
output_format: "png"
})
});
const data = await res.json();
console.log("Isolated PNG:", data.output_url);