OUI-1
Thesys' open diffusion-Gemma text+image model.
Working when we checked on .
What is OUI-1?
OUI-1 is a diffusion model built for generative UI that writes user interface screens as openui-lang code from a plain-language brief and a component library's signatures in the system prompt. It is intended for developers building OpenUI applications or serving UI-generating models. It scores 71.7% on the Generative UI Benchmark (5.5x its base model), uses 4B active parameters, and can be served with vLLM via an OpenAI-compatible API. It also supports Gemma 4 native function calling with standard OpenAI tool_calls.
OUI-1 pricing
Pricing model: Free
Free/Open-weights (Self-hosted, requiring custom GPU compute infrastructure)
OUI-1 pros
- Scores 71.7% on Generative UI Benchmark, 5.5x base DiffusionGemma's 13.0%
- Open weights under Apache 2.0, published on Hugging Face
- Text diffusion writes 256-token blocks, screens arrive in about a second on one GPU
- Works with any component library via system prompt signatures
- Serves with vLLM as an OpenAI-compatible chat model
- Native function calling passed 9 of 9 tool asks in testing
OUI-1 cons
- Temperature and seed parameters are ignored; identical requests can return differently worded screens
- tool_choice 'required' and named functions are accepted but ignored
- Requires substantial GPU hardware: 25.8 GiB at FP8 or ~52 GiB at bf16
- On Ampere GPUs, FP8 gives memory savings but no compute speedup
Frequently asked questions about OUI-1
What is OUI-1?
OUI-1 is the first diffusion model built for generative UI. It is a finetune of Google's DiffusionGemma 26B-A4B-it that writes UI screens in openui-lang, the declarative language behind OpenUI, with 4B active parameters.
How well does OUI-1 perform on benchmarks?
It scores 71.7% (132/184) on the Generative UI Benchmark, versus 13.0% for the base DiffusionGemma model — a 5.5x improvement. Raw outputs are committed to the benchmark repo so results can be rescored offline.
How fast does OUI-1 generate a screen?
As a text diffusion model it writes a 256-token block at once, committing tokens as it becomes sure of them. A light screen takes about a second and a dense one three to six seconds on an A100 80GB.
What license does OUI-1 use?
It is released under Apache 2.0, the same as the base model's Gemma 4 license. Base weights are copyright Google DeepMind; the finetuned weights are a derivative published by Thesys.
How is OUI-1 served?
It can be served with vLLM 0.24 or newer using FP8 quantization (25.8 GiB of weights) and called as an OpenAI-compatible chat model. Transformers 5.11+ also works at bf16, peaking around 52 GiB of GPU memory.
Does OUI-1 support function calling?
Yes, it keeps Gemma 4's native tool-call format and returns standard OpenAI tool_calls when served with --tool-call-parser gemma4. It called the correct tool with correct arguments on 9 of 9 test asks.
Can OUI-1 work with my own component library?
Yes. Any component library with signatures can be placed in the system prompt, generated via npx @openuidev/cli, and the output can be rendered with @openuidev/react-lang (or Vue/Svelte renderers) and validated with @openuidev/lang-core.
What is the context length of OUI-1?
It supports 16,384 tokens as served, and the benchmark runs at max_tokens of 8192, while 4096 covers every screen in the tested size bands.
Who is OUI-1 for?
It is aimed at developers building generative UI applications with OpenUI, and teams who need a model that turns plain-language briefs and component library signatures into rendered UI screens.
Does streaming work with OUI-1?
Yes, stream=True works, but unlike autoregressive models text arrives one 256-token canvas at a time, so a screen fitting in one canvas arrives as a single chunk.