Try Kimi at kimi.com →

Kimi Visual Coding

Kimi can code from what it sees. Show it a screenshot of an app, a hand-drawn sketch or a picture of an error, and it can write matching code or work out what went wrong. Moonshot calls this "coding with vision". This page explains what it can do, where to use it, how to get good results, and where it falls short.

Screenshots to codePrompt builder
1. WHAT KIMI SEES Fresh bakes 2. THE CODE IT WRITES <header class="top"> <h1>Fresh bakes</h1> <button>Order</button></header><section class="cards"> <article>...</article> 3. CHECK IT AGAINST THE ORIGINAL Original Kimi's version ≈

An illustration of the idea, not a real Kimi session.

We are an independent guide. Kimi is made by Moonshot AI. We are not affiliated with them and we have not tested this feature ourselves. This page follows Moonshot's model cards, documentation and launch posts as read on 8 October 2026.
QUICK ANSWER

The short version

  1. 1

    What it is

    Kimi writes or fixes code from images: designs, sketches, screenshots of bugs.

  2. 2

    Which models

    Kimi K3, K2.7 Code and K2.6 all read images. Kimi K3 also reads video.

  3. 3

    Where

    In the Kimi app, in the Kimi Code tool, or through the API.

BASICS

What Visual Coding is

Describing a design in words is slow and easy to get wrong. "A blue button, a bit to the left, with rounded corners" leaves a lot of guessing. Showing it a picture removes most of that. Kimi's models were trained on images and text together, so they can read a layout, a chart or an error message on screen and turn it into code.

It reads layouts

Spacing, colours, columns, buttons and text, from a screenshot or mockup.

It reads screens

Error messages, broken layouts and charts, so it can explain or fix them.

It writes code

HTML and CSS, or the framework you ask for, ready to open and adjust.

Turning a finished design file into a front end is covered in detail in Design to Code. This page covers visual coding more broadly.

USES

Five things it can do

Rebuild a screen

Recreate a page or app screen from a screenshot, as a starting point you then make your own.

Sketch to page

Turn a photo of a hand-drawn wireframe into a working layout.

Fix what looks wrong

Send a screenshot of a broken layout and ask why it looks like that and how to fix it.

Read an error

Screenshot an error message or console and ask what it means.

Chart to code

Show a chart and ask for code that draws the same chart from data.

Games and motion

Kimi's K3 launch post describes turning concepts, images and video into playable games.

Respect other people's work. Rebuilding someone else's site from a screenshot is fine for learning, but do not copy their brand, logos, text or images into your own product.
NEW IN K3

Vision in the loop

Kimi's K3 launch post describes "vision in the loop": instead of writing code once and stopping, Kimi can look at what its code actually produces and keep improving it.

1. Write

Kimi writes code for the screen you asked for.

2. Render

The code runs and produces a real screen.

3. Look

Kimi takes a screenshot and compares it with the goal.

4. Fix

It adjusts the code and checks again.

Our simplified description of the idea. Moonshot's post names the feature but does not detail how it works in each product. In agent and coding tools, this runs as part of longer tasks. More: Kimi K3 · Agent Mode

GET STARTED

Where to use it

Easiest

The Kimi app

Attach an image in chat at kimi.com and ask for code. Use Kimi K3 for the best results.

For projects

Kimi Code

In the terminal tool, press Ctrl+V to paste an image straight into your project session.

For developers

The API

Send the image inside the message as base64, alongside your text.

Kimi Code's image paste shortcut and model note are from Kimi's help centre. API rules are from Moonshot's quickstarts.

TIPS

Get better results

The picture

  • Use a sharp, full-screen capture. Crop away browser bars and clutter.
  • One screen per image. For several screens, send several images.
  • Do not go huge: Moonshot says above 4K adds time without better understanding.
  • Blur or remove personal data, passwords and private information first.

The words

  • Say which technology to use, such as plain HTML and CSS, React or Tailwind.
  • Say what matters most: exact look, mobile layout, or clean code.
  • Describe what the image cannot show: hover effects, what buttons do.
  • Ask it to list anything it was unsure about.

Rebuild a screen

Here is a screenshot of a page design. Build it as a responsive page in plain HTML and CSS. Match the layout, spacing and colours as closely as you can, use placeholder text and images, and list anything you had to guess.

Fix a broken layout

This screenshot shows my page on a phone: the cards overlap and the menu is cut off. Here is my CSS. Explain what causes it and give me the smallest fix.

Sketch to page

This is a photo of my hand-drawn sketch for a sign-up page. Turn it into a clean, accessible HTML page with labelled fields and a clear button. Keep it simple.

TOOL

Prompt builder

Choose your options and get a ready-to-paste request to send with your image.

Your prompt

Runs in your browser and does not send what you type to us. The box is marked to be hidden from the analytics tools this site uses. Attach your image in Kimi itself.

MODELS

Which models can see

ModelImagesVideoBest for
Kimi K3YesYesThe strongest results, long visual tasks
Kimi K2.7 CodeYesExperimentalCoding work at a lower price
Kimi K2.6YesExperimentalQuick, low-cost questions about a picture
Kimi K2.5Introduced "coding with vision". Now retired from Moonshot's services

On a small screen, swipe the table sideways to see every column.

From Moonshot's model cards and API quickstarts. Video for K2.7 Code and K2.6 is described as experimental and limited to Moonshot's own API. In the Kimi app, Kimi says files and slides need K3; K2.6 gives text only. More: choose a Kimi model

HONEST NOTES

Limits

FAQ

Visual Coding questions

It is Kimi's ability to write or fix code from what it sees. Show it a screenshot, a sketch or a screen recording, and it can build matching code or spot what is wrong. Moonshot calls this "coding with vision".

The current models Kimi K3, Kimi K2.7 Code and Kimi K2.6 all accept images. Kimi K3 also understands video. Kimi K2.5 introduced the feature but has been retired from Moonshot's services.

Press Ctrl+V in the Kimi Code terminal tool to paste an image. Kimi's help centre notes the selected model must support image input.

Moonshot's model cards list video input as experimental and limited to its own API. Kimi's K3 launch post describes using video, but for reliable results a few clear screenshots are safer.

No. Moonshot's docs say images must be sent as base64 or, for Kimi K3, as an uploaded file reference. Public image links are not supported.

Treat it as a strong first draft. Check it in a browser at different screen sizes, test buttons and forms, and review it before it goes live.
NEXT

Related guides

Try it with your own screenshot

Kimi runs on Moonshot AI's own website and apps. We are an independent guide and do not offer sign-in or downloads here.