
Claude is the best AI model for UI design. Claude Opus 5.5 gives the cleanest layouts and the best frontend code inside a real React and Tailwind codebase, and Claude Fable 5.2 takes over for long sessions across many screens. GPT is a close second: GPT-6.2 Astra follows a detailed spec most faithfully and is strongest when you hand it a screenshot to match. Gemini is third: Gemini 4 is good for fast exploration of directions, weaker at keeping a multi-screen app consistent.
The gap between these three is smaller than the gap between workflows. The builders who get good UI from any of them do the same four things: they generate several directions, pick from variations side by side, fix the details with design control, and build with their own components. Subframe is the design step in that workflow, and it runs on the Claude or Codex subscription you already pay for, including Fable 5.2 and GPT-6.2.
| Model | Best for | Main strength | Main weakness | Where you can use it |
|---|---|---|---|---|
| Claude Opus 5.5 | Most UI and frontend work | Clean hierarchy and spacing; code that fits your components | Conservative styling without a reference | claude.ai, Claude Code, Subframe (with your Claude subscription) |
| Claude Fable 5.2 | Long multi-screen sessions | Holds a whole app in context (1M tokens) | Twice the per-token price of Opus 5.5 | claude.ai, Claude Code, Subframe (with your Claude subscription) |
| GPT-6.2 Astra | Matching a spec or screenshot | Follows detailed instructions closely | Generic, card-heavy defaults without a style guide | ChatGPT, Codex, Subframe (with your Codex subscription) |
| GPT-6.2 Sol | Everyday frontend code | Strong frontend code at a lower price than Astra | Less polished first results than Astra | ChatGPT, Codex, Subframe (with your Codex subscription) |
| Gemini 4 Carbon | Exploring directions | Willing to try bolder layouts; very large context | Drifts across screens | Gemini app, Google AI Studio |
We looked at the jobs builders actually use a model for, not benchmark scores:
We don't say which model is "smartest" in general. Vendors' own benchmarks disagree, and the top of every leaderboard changes month to month.
Anthropic's current lineup is Claude Fable 5.2, Opus 5.5, Sonnet 5.5 and Haiku 5.5. Anthropic tells developers to start with Opus 5.5 for most workloads and move to Fable 5.2 for demanding, long-horizon work (Anthropic models overview). All four take images as input, so they can work from a screenshot.
Best for: UI that has to land in a real React and Tailwind codebase.
Pros:
Cons:
Where to use it: Claude Code for work in your repo, claude.ai for quick screens, and Subframe's agent when you connect your Claude subscription, where Fable 5.2 is in the model menu.
OpenAI's newest models are GPT-6.2 Astra and GPT-6.2 Sol. Astra is OpenAI's most capable tier, and Sol gets close to it at a lower cost (OpenAI models). OpenAI pitched the Astra line as bringing "stronger visual judgment" to the websites and apps it builds (GPT-6 Astra).
Best for: turning a detailed spec, sketch or screenshot into a working page.
Pros:
Cons:
Where to use it: ChatGPT, Codex, and Subframe's agent when you connect your Codex subscription, where GPT-6.2 Astra and GPT-6.2 Sol are in the model menu.
Google's current lineup is Gemini 4: Carbon, its strongest reasoning model, Argon, a faster and more efficient frontier model, and Hydrogen, built for speed on everyday coding (Gemini models). Gemini also powers Google Stitch, Google's AI UI design tool (Google).
Best for: fast exploration of several directions before you commit.
Pros:
Cons:
Where to use it: the Gemini app, Google AI Studio and Google Stitch.
Every answer to this question ends with "the workflow matters more than the model." Here's that workflow for UI, step by step, and where each model and tool fits.
1. Generate several directions, not one. Most people can't describe the design they want, but they can recognize it. Ask for several variations and look at them side by side. In Subframe, agents build several pages at once on the canvas, so you compare real options instead of rewriting a prompt.
2. Pick, then combine. Choose the closest option and borrow from the others: "the header from this one, the layout from that one." Picking is faster and better than describing, whichever model you use.
3. Fix the details with design control. "Make the card a bit tighter" is a bad prompt. Pointing at the card and changing its padding is a precise edit. Models are good at big changes and bad at small, exact ones, so the last 10% is yours. In Subframe you select an element and edit it directly in the Inspector, or select it and ask the agent to change exactly that.
4. Let the model see what it built. A model that only reads and writes code is guessing what the page looks like. Both OpenAI and Anthropic now pitch their models' ability to check the rendered result. In Subframe's desktop app, the agent opens your running app in a browser tab and measures the exact spacing, sizes and type instead of estimating from a screenshot.
5. Build with your own components. The model should use your components and theme, not invent new ones each time. Subframe's agents design with your project's components, and the design turns into React and Tailwind code your engineers can use.
None of these steps depend on which model you chose. That's why switching from Claude to GPT changes less than adding the steps you're missing.
Subframe is a design tool for your codebase, built on HTML and CSS. It doesn't replace your model: its agent runs on your own Claude or Codex subscription, or on Subframe AI credits.
Already designing in a chat? Add Subframe from Claude's connector directory to design from any Claude chat, or install the Subframe plugin in ChatGPT and build the designs in Codex. Either way, you can open a design on the Subframe canvas to edit it without leaving the chat (MCP server).
Claude, with GPT a close second and Gemini third. Claude Opus 5.5 is the best default for UI work in a real codebase; GPT-6.2 Astra is best at following a detailed spec; Gemini 4 is best for fast exploration.
Claude Opus 5.5 in Claude Code, if your app is already in code. The bigger win is the workflow around it: generate several variations, pick one, and fix the details directly instead of re-prompting.
For frontend code in an existing codebase, yes. For matching a detailed spec or a screenshot, GPT-6.2 Astra is as good or better.
Yes for exploration: it's fast and willing to try bolder layouts. It's weaker at keeping many screens consistent.
Subframe's agent runs on your own Claude or Codex subscription, including Fable 5.2, GPT-6.2 Astra and GPT-6.2 Sol, or on Subframe AI credits. Your own subscription needs the desktop app. Cursor and other agents connect through MCP.
Less than most people expect. What the model can see (your running app, your components) and how you iterate (picking from variations, precise edits) change the result more than switching between the top models.
Design with the model you already use, then pick, polish and ship it in your real codebase. Try Subframe free.