Skip to main content
21st AI turns a text prompt into working UI. Instead of one answer, it generates several drafts at once so you can compare and pick the direction you like, then refine your choice in plain language.

The core loop

1

Describe what you want

Write a prompt — a landing hero, a pricing table, a settings page. Attach images or reference a marketplace component as a starting point.
2

Get multiple drafts

21st generates several variations in parallel so you can compare approaches side by side instead of iterating on a single guess.
3

Pick and refine

Choose your favorite draft and refine it with follow-up instructions (“make it bolder”, “add a toggle”, “use this theme”).
4

Take the code

Copy the code or a paste-ready prompt and drop it into your project, editor, or AI agent.

Two ways to generate

https://mintcdn.com/21st/uLCB5kikM-FHl_zp/icons/nav/sketch.svg?fit=max&auto=format&n=uLCB5kikM-FHl_zp&q=85&s=bc36a205d059b7ce5959f6eb69ade101

Sketch mode

Fast HTML/Tailwind drafts rendered in the browser. Best for exploring layout and visual direction quickly.
https://mintcdn.com/21st/uLCB5kikM-FHl_zp/icons/nav/code.svg?fit=max&auto=format&n=uLCB5kikM-FHl_zp&q=85&s=83ac6893f55365e9010dc4f453c3ff28

Code mode

Full React/shadcn components with a live preview and multi-turn editing. Best when you want real, installable code.

Where you can use it

https://mintcdn.com/21st/uLCB5kikM-FHl_zp/icons/nav/globe.svg?fit=max&auto=format&n=uLCB5kikM-FHl_zp&q=85&s=36c2d03033c42d6dc19d1a06b6ec77d9

Web

Generate and refine at 21st.dev/ai.
https://mintcdn.com/21st/uLCB5kikM-FHl_zp/icons/nav/terminal.svg?fit=max&auto=format&n=uLCB5kikM-FHl_zp&q=85&s=13207e3f98dae6e6cb5a5d8c5c81b297

CLI

21st generate, iterate, and take from your terminal.
https://mintcdn.com/21st/uLCB5kikM-FHl_zp/icons/nav/cable.svg?fit=max&auto=format&n=uLCB5kikM-FHl_zp&q=85&s=f782045c79c2ffa04e192209e563f025

MCP

The same generation tools inside Cursor, Claude, and VS Code.
Generation uses credits. Search and browsing are free; each generation and refinement draws from your monthly credits. See Pricing & Credits.