Video summary

What it Costs to Run ChatGPT Intelligent UI Locally?

Main summary

Key takeaways

Technology

Summary

Kai tests whether ChatGPT-style “Intelligent UI”—interfaces generated in response to a prompt—can run locally using OpenUI, Ollama, and a local language model.

How OpenUI works

  • The model does not generate HTML. Instead, it writes OpenUI Lang, a compact, line-by-line description that selects components the application already knows how to render.
  • Because the renderer displays components as they arrive, parts of an interface—such as photos or a map—can appear before the model finishes its response.
  • The video compares OpenUI Lang with JSON-based formats, including json-render and Google’s A2UI. In a Thesys benchmark, the same 46 screens took about 1,110 tokens in OpenUI Lang versus 2,688 in json-render’s JSON—around 2.4 times as many tokens for the JSON version. The presenter argues that fewer tokens can mean substantially faster generation on local hardware.

Setup and local-running guide

The demonstration uses the open-source open-intelligent-ui example. The presenter describes setting it up with the OpenUI CLI and running it locally at localhost:3000. The app initially displays a gallery of 16 examples and two dashboards that work without an API key.

For local model use, the app is configured to use Ollama. One important setup warning is that the app’s component instructions are roughly 8,000 tokens long. Ollama’s default context length of 4,096 tokens can truncate them and lead to malformed interfaces. The recommended fix is to explicitly set the context length to 32,768.

The app’s library.ts file registers its React components. To add a custom component, the guide recommends implementing and registering it, adding rules and an example to the prompt options, then regenerating the schema and prompt with:

npm run generate
npm run prompt

Timing and performance analysis

On a used RTX 3090, the presenter reports that a typical screen takes about 28 seconds to generate with Qwen 3.8 27B; the first screen takes about 35 seconds.

The video divides generation time into two stages:

  • Prefill: The model reads the prompt and component instructions. At roughly 1,300 tokens per second, processing the initial 8,000-token prompt takes about six seconds. This cost recurs after the model has been unloaded; the video notes that Ollama’s default idle-unload period is five minutes.
  • Decode: The model writes the response. At around 40 tokens per second and roughly 1,145 tokens per screen on average, this takes about 28 seconds. Decode is therefore the main recurring time cost.

Based on the benchmark token difference and the model’s generation speed, the presenter estimates that using JSON instead of OpenUI Lang could add around 40 seconds per screen on an RTX 3090.

Quality, limitations, and trade-offs

  • The hosted Gateway validates and corrects generated OpenUI Lang. Local output is rendered as written, so invalid output can produce broken screens. The cited benchmark reports that Qwen 3.8 27B produces a structurally valid screen 78.8% of the time.
  • A Better Stack example illustrates why speed alone is not enough: a very fast model reportedly generated broken apps and encountered rate limits.
  • The demo is not fully offline: image searches use Wikipedia/Wikimedia Commons, and routes use the public OSRM demo server. Those services would need to be replaced if all requests must remain local.
  • The presenter estimates that an RTX 5090 could reduce generation time to about 15 seconds, but would cost roughly $4,800 more than a used RTX 3090. The video favors optimizing the output format over making that upgrade.
  • Electricity for generating a screen is described as costing a fraction of a cent. However, the presenter concludes that renting an API can still be cheaper overall when hardware costs are included. The case for local use is instead control: keeping prompts on the machine, choosing models, and changing providers without rebuilding the app.

Main speakers and sources

  • Kai — presenter and narrator.
  • Thesys/OpenUI benchmark and project documentation — format comparisons, setup details, and component guidance.
  • Hardware Corner — cited for RTX 3090 prompt-processing speed.
  • Better Stack — cited as an example of generated-app quality issues despite high model speed.
  • Local LLM community comment — cited for the observation that presentation and polish contribute to the appeal of AI applications.

Rate this summary

Your feedback will help improve summaries.

Improve this summary

Reprocess with a stronger model when the summary feels incomplete or inaccurate.

Pro

Translate summary in another language

Pro

Ask questions to this video

Chat for follow-up questions, clarifications, and source-backed answers.

Coming soon

Share this summary

Original video