<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>Bookmark this javascript code to make the minimal Stable Diffusion UI thanks to @huggingface inference API pic.twitter.com/i1slI4ObdH
— Radamés Ajna (@radamar) February 1, 2023
Bookmark this code
javascript:p=prompt("Enter your prompt:");fetch("https://api-inference.huggingface.co/models/runwayml/stable-diffusion-v1-5",{method:"POST",headers:{"content-type":"application/json","X-Wait-For-Model":"true"},body:JSON.stringify({inputs:p})}).then(e=>e.blob()).then(e=>window.open(URL.createObjectURL(e),"_self"))