SoloJuju / script.json
Shinhati2023's picture
Upload 2 files
341eeb0 verified
raw
history blame
612 Bytes
fetch(
"https://api-inference.huggingface.co/models/stabilityai/stable-diffusion-xl,
{
method: "POST",
headers: {
"content-type": "application/json",
},
body: JSON.stringify({
inputs:
"award winning high resolution photo of a giant tortoise/((ladybird)) hybrid, [trending on artstation]",
negative_prompt: "blurry,ugly hands, ugly legs, ugly fingers, malformed hands, low resolution image"
}),
}
)
.then((res) => res.blob())
.then((blob) => {
const tab = window.open((target = "_blank"));
tab.location.href = window.URL.createObjectURL(blob);
});