LoomCode AI

Use case

Screenshot to app: turn a UI image into working code

Attach a UI screenshot, get a running React app with working search and filters. A tested run with the input and output side by side, model support and limits.

Updated Nov 23, 2026First published Nov 22, 20264 min readtested

You can attach a screenshot or mockup to a prompt in the LoomCode builder, and a vision-capable model will write an app that reproduces it. The useful part is not the static copy: you can ask for the controls in the image to actually work. In our test, a team directory mockup became a React app with live search and department tabs in under 30 seconds of generation time.

A tested run: team directory from a mockup

We designed an original mockup (no real company or people), attached it in the builder, chose gpt-6.2-sol and the React template, and sent this prompt on 2026-11-22:

Recreate this screenshot as a working React app. Match the layout, spacing, colors and text as closely as you can. Make the search box filter the team member cards by name or role, and make the department tabs filter the list.

Input mockup: a team directory titled Team directory with a search box, four department tabs and nine people cards with colored initials
Input: the mockup we attached to the prompt (1200 px wide).
Generated React app reproducing the team directory with the same nine cards, initials, colors and department tags
Output: the generated app in the sandbox preview, captured in a 1280 px browser window.

Generation took 28.4 seconds and the sandbox started in 3.2 seconds (one run, not a benchmark). The model returned two files, src/App.tsx and src/App.css.

What was different

Compare the two images closely and the differences are small but real:

  • The layout is fluid. The generated CSS uses fixed side padding and no maximum width, so in our wider browser window the cards stretched and the search box moved further right. The mockup did not say how the page should behave at other widths, so the model chose.
  • Typography is close, not identical. The model picked Arial; the title renders slightly heavier and the card names a little larger than in the mockup.
  • Everything else matched: card order, colors, tag styling, tab pills and copy.

That is a typical outcome. A model reads an image the way a developer reads a screenshot: it estimates sizes and colors and guesses at behavior it cannot see.

Which models accept images

Only vision-capable models accept image attachments. The default model, GPT-6.2 Sol, does; it is also the only one we have call-tested. The others below are listed as image-capable based on their providers' documentation.

Supported models
ModelAPI idProviderImagesStatus
GPT-6.2 Solgpt-6.2-solOpenAIYescall-tested
GPT-6.2 Astragpt-6.2-astraOpenAIYesprovider docs
GPT-6.1 Terragpt-6.1-terraOpenAIYesprovider docs
GPT-6 Lunagpt-6-lunaOpenAIYesprovider docs
Claude Sonnet 5.5claude-sonnet-5-5AnthropicYesprovider docs
Claude Opus 5.5claude-opus-5-5AnthropicYesprovider docs
Claude Haiku 5.5claude-haiku-5-5AnthropicYesprovider docs
Claude Fable 5.2claude-fable-5-2AnthropicYesprovider docs
Gemini 3.8 Flashgemini-3.8-flashGoogleYesprovider docs
Grok 4.7grok-4.7xAIYesprovider docs

Checked against provider documentation on Nov 22, 2026.

The builder accepts PNG, JPEG, WebP and GIF files, up to 4 images per prompt and 5 MB each. With a model that does not accept images, the image button changes to "Use images", which switches you to a model that does. Use the Image button or paste the screenshot into the prompt box.

Tips for better results

  • One screen per image. A single, focused screen gives a much closer match than a long scrolling capture or a collage of states.
  • Describe the interactions. An image cannot show what a button does. Say "the tabs filter the list" or "clicking a card opens a detail panel".
  • State the framework. Pick the template before you send. React works well for single screens; choose Next.js if the design implies several routes.
  • Say what to ignore. Browser chrome, notification bars and placeholder ads in a screenshot will otherwise get rebuilt too.
  • Ask for responsive behavior if it matters: "on screens narrower than 700 px, show one card per row".
  • Use follow-ups for fixes. "Make the title lighter and cap the content width at 1100 px" is faster than regenerating.

Limits to know first

  • No Figma import. There is no design-file integration. Export a frame as PNG and attach that.
  • Images go to the model provider. Attachments are sent as data URLs through the LoomCode server to the provider you selected. Do not attach screenshots containing customer data, credentials or anything under NDA unless your agreement with that provider allows it. The security page explains the data flow.
  • Not pixel-perfect. Expect "close and editable", as above. If exact spacing matters, adjust the CSS by hand.
  • Images and links do not travel together. The button below opens the builder with the prompt, template and model filled in, but you must attach your own image.
  • The preview is temporary. It runs for about 10 minutes, and a share link lasts at most 24 hours. Export the files before you close the tab; nothing is saved for you.
Open the screenshot prompt in the builder

After the builder opens, attach your image and send. New to the builder? Start with the quickstart.