Val Generative UI
Let your AI answer with real interface. Your team designs components; your model fills them in; your app draws them.
A live component — the answer to “How did revenue do last quarter?”
Start here
Section titled “Start here”015 minTry it locallyCreate a component and preview it in your browser. No account.Quickstart →0215 minConnect your backendGive your model your components as tools and stream the answer.Server SDK →0310 minDraw it in your appRender the reply natively — prose and components.React · Flutter →
Let your coding agent set it upOne prompt: it finds your LLM route and chat UI, installs the SDKs and wires them in.
Claude CodeCodexCursorCopilotWindsurf
Set up useval (generative UI) in this app.
useval lets this app's AI assistant answer with interactive components that our team designs. The model never writes UI: it picks a published component and fills in its values with a tool call; the frontend draws it natively.
Work in this order and keep the app's existing behaviour intact:
1. Explore first. Find (a) the backend code that calls the LLM — provider (OpenAI, Anthropic, Vercel AI SDK or other), the chat route and the tool-calling loop — and (b) the frontend that renders assistant replies — React or Flutter. Tell me what you found and your plan before editing anything.
2. Install the SDKs. They ship as archives in the useval release download; ask me for the extracted sdk/ directory if it isn't in the repo.How it fits together
Section titled “How it fits together”Your model and your keys stay on your side. Val holds the components, checks every value the model sends, and hands your app something it can draw. See one request, end to end →
Pick your stack
Section titled “Pick your stack”BackendNode.js
@val-genui/serverOpenAI · Anthropic · Vercel AI SDKAppReact@val-genui/reactWeb, React 18+AppFlutterval_genui_flutteriOS · Android · webBackendDartval_genuiA Dart backend or agentConcepts
Section titled “Concepts”ComponentsMarkup plus a typed shape — what a component is made of.
Keys and securityWhich key goes where, and what never leaves your server.
PublishingDrafts, staging, production and rollback.
ThemingYour brand on every component, light and dark.