Credentials. The engine uses your provider key; keep it on the server side.
Who it is forA frontend developer adding image generation to a product.
The problemBuilding a polished prompt bar with model menus and attachments takes weeks.
The outcomeA working Composer with results rendered in cards.
What you need first
- React 18.3 or 19, or Vue 3.5 or later
- pnpm
- An engine account such as Fal.ai or OpenRouter
Steps
- Run
pnpm add @chai-ui/react @chai-ui/core @chai-ui/tokens - Import the token CSS and component styles
- Create an engine with createFalEngine and pass it to useComposer
- Render Composer and ResultCard inside ChaiProvider
Prompt for your agent
Add kazarazat/chai-ui to <React app>, wire Composer to createFalEngine, and generate one image. Confirm the ResultCard shows the result and status transitions.
Caveat. The model menu pre-fills aspect ratios per model, so check them for custom models.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for kazarazat/chai-ui and "Add an AI prompt bar and results to a React app"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer