Use text or image prompts to generate UI components and apps built with React. Powered by OpenAI's Assistants API and CodeSandbox's Sandpack.
Get an OpenAI API Key
Create a .env.local
file in the root of the project and add your OpenAI API key:
OPENAI_API_KEY=sk-...
yarn install
yarn dev
Open http://localhost:3000 to view it in your browser.
- These can be generic (e.g. React), or specific to a component library (e.g. React Spectrum)
- These can be managed within GenUI, or on OpenAI's Platform. Use OpenAI's platform to add files for knowledge retrieval (e.g. component library documentation in markdown files).
- This represents the app that you're building, and all its iterations.
- Note: Your OpenAI account must have access to the
gpt-vision-preview
model to upload images.