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": "website-screenshot",
"url": "https://stripe.com",
"full_page": true,
"viewport_width": 1440,
"viewport_height": 900
}'
import requests
url = "https://lumozai.com/services/run"
headers = {"Authorization": "Bearer YOUR_LUMOZ_API_KEY"}
payload = {
"slug": "website-screenshot",
"url": "https://github.com",
"full_page": True
}
res = requests.post(url, json=payload, headers=headers).json()
print("Screenshot 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: "website-screenshot",
url: "https://news.ycombinator.com",
full_page: false
})
});
const data = await res.json();
console.log("Screenshot URL:", data.output_url);