hjLabs AI Playground
Starting the on-device runtime…
Every other task on this site exists because a maintained ONNX model exists for it. Text-to-image does not: querying the Hugging Face API for models tagged both text-to-image and transformers.js returns exactly zero results. A browser diffusion pipeline needs a text encoder, a UNet or DiT, a VAE decoder and a scheduler wired together by hand — several gigabytes of weights, tens of sequential denoising steps, and a memory profile that runs straight into the WebGPU maximum buffer binding size on most consumer hardware. Projects have demonstrated it; none of them is a dependable, maintained library you could build a product on today. Rather than ship a broken generator, this page explains the real constraints, what image work does run well in a browser, and where to go if you need generation.
Yes — WebGPU demos of SD-Turbo and similar distilled models exist and work on high-end GPUs. They are research demos with hand-written pipelines, multi-gigabyte downloads and long first-run times, not something to build a general-audience product on.
Three things at once: no maintained ONNX text-to-image pipeline in transformers.js, weights in the gigabytes rather than the hundreds of megabytes, and WebGPU buffer limits around 2 GB per binding that a full UNet plus VAE hits on typical hardware.
Background removal, segmentation, depth estimation, object detection, classification, zero-shot classification with CLIP, captioning and OCR — all with models under a few hundred megabytes that run in seconds.
Yes. The moment a maintained browser-grade text-to-image pipeline lands with a sane download size, it goes on the site. Until then this page stays as the honest answer.