Execute directly against our high-throughput gateway. Replace YOUR_LUMOZ_API_KEY with your free developer key.
curl -X POST "https://lumozai.com/api/v4/run" \
-H "Authorization: Bearer YOUR_LUMOZ_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "photon",
"prompt": "Cinematic portrait photograph of an astronaut in a worn space suit, reflections on helmet visor, harsh dramatic sun rim lighting, 85mm lens, photorealistic, 8k",
"negative_prompt": "cartoon, illustration, 3d render, plastic, oversaturated",
"width": 1024,
"height": 1024,
"num_inference_steps": 30
}'
import requests
url = "https://lumozai.com/api/v4/run"
headers = {"Authorization": "Bearer YOUR_LUMOZ_API_KEY"}
payload = {
"model": "photon",
"prompt": "Editorial fashion photography of a model in haute couture silk dress in Paris, golden hour lighting, 35mm film grain, hyperrealistic",
"width": 896,
"height": 1152
}
res = requests.post(url, json=payload, headers=headers).json()
print("Generated image URL:", res.get("output"))
const res = await fetch("https://lumozai.com/api/v4/run", {
method: "POST",
headers: { "Authorization": "Bearer YOUR_LUMOZ_API_KEY", "Content-Type": "application/json" },
body: JSON.stringify({
model: "photon",
prompt: "Close up portrait of an elderly watchmaker working in cozy workshop, warm candle lighting, detailed wrinkles, macro lens",
width: 1024,
height: 1024
})
});
const data = await res.json();
console.log("Image URL:", data.output);