Skip to content

armgit / kokon

Public Imported from GitHub
0

Edit photos by describing the change, on your own GPU. A free, open-source alternative to Nano Banana and ChatGPT image editing: photos stay on your computer, no daily limit. One installer for Windows, Mac and Linux sets up the best open model (Qwen-Image 2.1). MCP server for AI agents.

19.8 KB
Raw Blame
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>How to Run Qwen-Image 2.1 Locally on Windows, Mac and Linux (No Python, No ComfyUI)</title>
<meta name="description" content="Step-by-step guide to run Qwen-Image 2.1 on your own GPU: requirements (12 GB VRAM, AMD, Intel, Apple Silicon, Linux), one-installer setup with Kokon, editing tips, speed and troubleshooting.">
<meta name="author" content="Gabriele Lozupone">
<meta name="robots" content="index, follow, max-image-preview:large">
<meta name="theme-color" content="#0a0a0a">
<link rel="canonical" href="https://kokon.app/qwen-image-2-1-local/">
<link rel="icon" href="../assets/favicon.svg" type="image/svg+xml">
<link rel="icon" href="../assets/favicon.ico" sizes="any">
<link rel="apple-touch-icon" href="../assets/apple-touch-icon.png">
<meta property="og:site_name" content="Kokon">
<meta property="og:type" content="article">
<meta property="og:title" content="How to run Qwen-Image 2.1 locally (no Python, no ComfyUI)">
<meta property="og:description" content="Run Qwen-Image 2.1 on Windows, Mac or Linux with one installer: requirements, setup, editing tips and troubleshooting.">
<meta property="og:url" content="https://kokon.app/qwen-image-2-1-local/">
<meta property="og:image" content="https://kokon.app/assets/img/app-screenshot.webp?v=2">
<meta name="twitter:card" content="summary_large_image">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:opsz,[email protected],400..700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
<link rel="stylesheet" href="../assets/style.css?v=14">
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "TechArticle",
      "headline": "How to Run Qwen-Image 2.1 Locally on Windows, Mac and Linux (No Python, No ComfyUI)",
      "description": "Requirements, one-installer setup, editing tips, speed and troubleshooting for running Qwen-Image 2.1 on your own GPU.",
      "image": "https://kokon.app/assets/img/app-screenshot.webp?v=2",
      "datePublished": "2026-10-10",
      "dateModified": "2026-10-10",
      "author": { "@type": "Person", "name": "Gabriele Lozupone", "url": "https://gabrielelozupone.github.io/" },
      "about": [{ "@type": "Thing", "name": "Qwen-Image 2.1" }, { "@type": "SoftwareApplication", "name": "Kokon", "url": "https://kokon.app/" }],
      "mainEntityOfPage": "https://kokon.app/qwen-image-2-1-local/"
    },
    {
      "@type": "BreadcrumbList",
      "itemListElement": [
        { "@type": "ListItem", "position": 1, "name": "Kokon", "item": "https://kokon.app/" },
        { "@type": "ListItem", "position": 2, "name": "Run Qwen-Image 2.1 locally", "item": "https://kokon.app/qwen-image-2-1-local/" }
      ]
    },
    {
      "@type": "FAQPage",
      "mainEntity": [
        { "@type": "Question", "name": "How much VRAM does Qwen-Image 2.1 need?", "acceptedAnswer": { "@type": "Answer", "text": "With Kokon, 12 GB of VRAM is enough (tested on an RTX 5070 12 GB), and NVIDIA cards with 8 GB work in beta at about 1 megapixel. 16 GB or more is more comfortable. Apple Silicon Macs work with 16 GB of unified memory, slowly; 32 GB is recommended." } },
        { "@type": "Question", "name": "Can I run Qwen-Image 2.1 without ComfyUI or Python?", "acceptedAnswer": { "@type": "Answer", "text": "Yes. Kokon runs it through stable-diffusion.cpp, a native C++ engine, and ships as one installer. It downloads and checks the model on first run." } },
        { "@type": "Question", "name": "Does Qwen-Image 2.1 run on AMD or Intel GPUs?", "acceptedAnswer": { "@type": "Answer", "text": "Yes, through Vulkan on Windows (beta in Kokon), with 12 GB of VRAM or more." } },
        { "@type": "Question", "name": "How fast is Qwen-Image 2.1 locally?", "acceptedAnswer": { "@type": "Answer", "text": "With the official 8-step Turbo model on an RTX 5070 Ti: about 24 s for an edit at 1.5K and about 36 s for a new image at native 2K. An M2 Pro Mac takes about 65 seconds for a new 1-megapixel image with Kokon's own Mac engine (about 106 s for an edit)." } }
      ]
    }
  ]
}
</script>
</head>
<body>
<svg width="0" height="0" style="position:absolute" aria-hidden="true">
  <defs>
    <symbol id="mark" viewBox="0 0 1024 1024"><path d="M0.00 242.81 C0.00 112.17 70.23 25.08 175.59 25.08 C280.94 25.08 351.17 112.17 351.17 242.81 L351.17 781.19 C351.17 911.83 280.94 998.92 175.59 998.92 C70.23 998.92 0.00 911.83 0.00 781.19 Z M389.53 548.95 C389.53 250.35 662.35 25.08 1024.00 25.08 C1024.00 323.68 751.18 548.95 389.53 548.95 Z M389.53 587.31 C389.53 821.93 618.71 998.92 922.49 998.92 C922.49 764.30 693.31 587.31 389.53 587.31 Z" fill="currentColor"/></symbol>
  </defs>
</svg>

<header class="nav scrolled" id="nav">
  <div class="wrap">
    <a class="logo" href="../" aria-label="Kokon home"><svg><use href="#mark"/></svg>Kokon</a>
    <nav class="nav-links" id="nav-links" aria-label="Site">
      <ul>
        <li class="dd"><button type="button" aria-expanded="false" aria-controls="dd-product">Product<svg class="caret" viewBox="0 0 12 12" aria-hidden="true"><path d="M3 4.5 6 7.5 9 4.5"/></svg></button>
          <div class="dd-panel" id="dd-product"><ul>
            <li><a href="/#examples"><b>Examples</b><span>Real edits, before and after</span></a></li>
            <li><a href="/#features"><b>Features</b><span>Edit, paint, combine, expand, upscale</span></a></li>
            <li><a href="/#layers"><b>Layers lab <span class="new">New</span></b><span>Split an image, move the pieces</span></a></li>
            <li><a href="/#devices"><b>On your phone</b><span>Use your GPU from any device</span></a></li>
            <li><a href="/mcp-image-generation/"><b>For AI agents</b><span>MCP server and HTTP API</span></a></li>
            <li><a href="/#requirements"><b>Requirements</b><span>GPUs, Macs and disk space</span></a></li>
          </ul></div></li>
        <li class="dd"><button type="button" aria-expanded="false" aria-controls="dd-guides">Guides<svg class="caret" viewBox="0 0 12 12" aria-hidden="true"><path d="M3 4.5 6 7.5 9 4.5"/></svg></button>
          <div class="dd-panel" id="dd-guides"><ul>
            <li><a href="/qwen-image-2-1-local/"><b>Setup guide</b><span>Install and run Qwen-Image 2.1</span></a></li>
            <li><a href="/self-hosted/"><b>Phone and server</b><span>Other devices, Linux, Docker, Tailscale</span></a></li>
            <li><a href="/prompt-guide/"><b>Prompt guide</b><span>Write prompts that work</span></a></li>
            <li><a href="/remove-objects-from-photos-offline/"><b>Remove objects</b><span>Step by step, offline</span></a></li>
            <li><a href="/image-to-layers/"><b>Image to layers <span class="new">New</span></b><span>Split a photo, export a PSD</span></a></li>
            <li><a href="/uninstall/"><b>Uninstall</b><span>Remove Kokon and its models</span></a></li>
          </ul></div></li>
        <li class="dd"><button type="button" aria-expanded="false" aria-controls="dd-compare">Compare<svg class="caret" viewBox="0 0 12 12" aria-hidden="true"><path d="M3 4.5 6 7.5 9 4.5"/></svg></button>
          <div class="dd-panel" id="dd-compare"><ul>
            <li><a href="/local-ai-photo-editor/"><b>Local AI photo editor</b><span>Why edit on your own computer</span></a></li>
            <li><a href="/offline-alternative-to-nano-banana/"><b>vs Nano Banana</b><span>Offline alternative to cloud editing</span></a></li>
            <li><a href="/comfyui-alternative/"><b>vs ComfyUI</b><span>Simpler, no nodes, no Python</span></a></li>
            <li><a href="/ai-image-editing-from-your-phone/"><b>From your phone</b><span>Kokon vs ComfyUI with --listen</span></a></li>
          </ul></div></li>
        <li><a class="top" href="/#faq">FAQ</a></li>
      </ul>
      <p class="nav-more"><a href="https://github.com/GabrieleLozupone/kokon" rel="noopener">GitHub</a><a href="/press/">Press kit</a></p>
      <a class="btn kofi-btn" href="https://ko-fi.com/gabrielelozupone" target="_blank" rel="noopener"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 20.5s-7.3-4.4-9.3-8.9C1.2 8.3 3.2 4.5 6.8 4.5c2.1 0 3.5 1.1 4.3 2.5h1.8c.8-1.4 2.2-2.5 4.3-2.5 3.6 0 5.6 3.8 4.1 7.1-2 4.5-9.3 8.9-9.3 8.9z"/></svg>Support Kokon on Ko-fi</a>
    </nav>
    <span class="spacer"></span>
    <a class="gh" href="https://github.com/GabrieleLozupone/kokon" rel="noopener"><svg width="18" height="18" fill="currentColor"><use href="#github"/></svg>GitHub</a>
    <a class="kofi" href="https://ko-fi.com/gabrielelozupone" target="_blank" rel="noopener"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 20.5s-7.3-4.4-9.3-8.9C1.2 8.3 3.2 4.5 6.8 4.5c2.1 0 3.5 1.1 4.3 2.5h1.8c.8-1.4 2.2-2.5 4.3-2.5 3.6 0 5.6 3.8 4.1 7.1-2 4.5-9.3 8.9-9.3 8.9z"/></svg>Support</a>
    <a class="btn primary small" href="https://github.com/GabrieleLozupone/kokon/releases/latest" rel="noopener" data-dl-auto>Download</a>
    <button class="burger" type="button" aria-expanded="false" aria-controls="nav-links" aria-label="Open menu"><span class="bars"><span></span><span></span></span><span class="lbl">Menu</span></button>
  </div>
</header>

<main class="article">
  <div class="wrap narrow">
    <nav class="crumbs" aria-label="Breadcrumb"><a href="../">Kokon</a> <span>/</span> Guide</nav>
    <h1>How to run Qwen-Image 2.1 locally on Windows, Mac and Linux</h1>
    <p class="lede-left">No Python, no ComfyUI, no cloud. One installer, a model download, and you edit photos by describing the change. Updated October 10, 2026.</p>

    <figure>
      <img src="../assets/img/app-screenshot.webp?v=2" width="1600" height="1000" alt="Kokon running Qwen-Image 2.1 locally: a café street photo with the scooter removed, shown with a before/after slider" loading="eager">
      <figcaption>Kokon with a local Qwen-Image 2.1 edit: the scooter was painted and removed.</figcaption>
    </figure>

    <h2>What Qwen-Image 2.1 is</h2>
    <p>Qwen-Image 2.1 is the open-weights image model from Alibaba's Qwen team. One model both <strong>creates images from text</strong> and <strong>edits existing photos from an instruction</strong> ("remove the people", "make it a snowy night", "change the sign to say…"). It leads the open-weights image-editing rankings, and the official <strong>Turbo</strong> version makes an image in 8 steps, fast enough to use on a consumer GPU.</p>
    <p>Most guides run it through ComfyUI: install Python, add custom nodes, download several model files and load a workflow. That works, but it is a lot to set up and keep working. This guide uses <a href="../">Kokon</a>, a free, open-source desktop app that does all of that for you.</p>

    <h2>What you need</h2>
    <div class="table-wrap">
      <table class="cmp-table">
        <thead><tr><th></th><th class="us">Minimum</th><th>Recommended</th></tr></thead>
        <tbody>
          <tr><td>Windows + NVIDIA</td><td class="us">12 GB VRAM (RTX 3060 12 GB, 4070, 5070)</td><td>16 GB or more (RTX 4080, 5070 Ti, 4090, 5090)</td></tr>
          <tr><td>Windows + AMD / Intel Arc</td><td class="us">12 GB VRAM, Vulkan (beta)</td><td>16 GB or more</td></tr>
          <tr><td>Mac</td><td class="us">Apple Silicon, 16 GB unified memory, macOS 15 (slow)</td><td>32 GB or more, Pro/Max/Ultra chip</td></tr>
          <tr><td>Linux (beta)</td><td class="us">x86-64, Ubuntu 22.04 / Debian 12 / Fedora 40 or newer, GPU as on Windows</td><td>16 GB VRAM or more, NVIDIA proprietary driver</td></tr>
          <tr><td>Disk</td><td class="us">15 GB free</td><td>25 GB free</td></tr>
        </tbody>
      </table>
    </div>
    <p class="note">NVIDIA cards with 8 GB work in beta (since Kokon 0.9.3): images are made at about 1 megapixel, and users report 1 to 2 minutes per edit on an RTX 3060 Ti and an RTX 5050 Laptop. 16 GB of system RAM is recommended. 12 GB or more gives larger images and faster edits.</p>

    <h2>Step 1: Install Kokon</h2>
    <p>Download the latest release from <a href="https://github.com/GabrieleLozupone/kokon/releases/latest" rel="noopener">GitHub</a>:</p>
    <ul>
      <li><strong>Windows:</strong> <code>Kokon_&lt;version&gt;_x64-setup.exe</code> (about 136 MB). It installs for your user only, no administrator rights. The beta is not code-signed yet, so if SmartScreen warns, click <em>More info → Run anyway</em>.</li>
      <li><strong>Linux (x86-64, beta):</strong> <code>Kokon_&lt;version&gt;_amd64.deb</code> (Ubuntu, Debian, Mint: <code>sudo apt install ./Kokon_&lt;version&gt;_amd64.deb</code>) or <code>Kokon-&lt;version&gt;-1.x86_64.rpm</code> (Fedora: <code>sudo dnf install ./Kokon-&lt;version&gt;-1.x86_64.rpm</code>). NVIDIA cards need the proprietary driver.</li>
      <li><strong>Mac (Apple Silicon, beta):</strong> <code>Kokon_&lt;version&gt;_aarch64.dmg</code>. Drag Kokon to Applications. The beta is not notarized by Apple yet, so macOS blocks it the first time:</li>
    </ul>
    <ol class="mac-steps">
      <li>Open Kokon. macOS says <strong>&ldquo;Kokon&rdquo; Not Opened</strong>: click <strong>Done</strong> (not <em>Move to Trash</em>).<img class="dialog" src="../assets/mac/not-opened.webp" width="534" height="550" alt="The macOS dialog &ldquo;Kokon&rdquo; Not Opened, with the buttons Move to Trash and Done" loading="lazy"></li>
      <li>Open <strong>System Settings &rarr; Privacy &amp; Security</strong> and scroll down to <strong>Security</strong>. Next to &ldquo;Kokon&rdquo; was blocked to protect your Mac, click <strong>Open Anyway</strong> and confirm with your password or Touch ID.<img class="settings" src="../assets/mac/open-anyway.webp" width="970" height="360" alt="System Settings, Privacy and Security: &ldquo;Kokon&rdquo; was blocked to protect your Mac, with the Open Anyway button highlighted" loading="lazy"></li>
      <li>Open Kokon again and click <strong>Open</strong>. You only do this once; in-app updates don&#39;t trigger it again.</li>
    </ol>
    <p>If macOS instead only says <strong>The application &ldquo;Kokon&rdquo; can&#39;t be opened</strong>, with just an <strong>OK</strong> button, and Privacy &amp; Security shows no <em>Open Anyway</em>: open <strong>Terminal</strong>, run <code>xattr -dr com.apple.quarantine /Applications/Kokon.app</code>, then open Kokon as usual. This removes the &ldquo;downloaded from the internet&rdquo; flag from Kokon only.</p>

    <h2>Step 2: Let it download the model</h2>
    <p>On first launch Kokon shows your graphics card (or your Mac's chip and memory) and recommends a preset. It downloads what it needs: the stable-diffusion.cpp engine, <strong>Qwen-Image 2.1 Turbo</strong> as a 4-bit GGUF (about 4 GB), the Qwen3-VL text encoder and the VAE, about 12 GB in total. Downloads resume if interrupted, and every file is checked against a pinned SHA-256 hash.</p>
    <p>On Windows with an NVIDIA card you can pick the <strong>CUDA</strong> engine (fastest) or <strong>Vulkan</strong>; AMD and Intel cards use Vulkan. Macs use Metal.</p>

    <h2>Step 3: Create or edit</h2>
    <ol>
      <li><strong>Create:</strong> type a description and press Enter. Add an aspect ratio in words ("16:9 banner") or pick one from the menu.</li>
      <li><strong>Edit:</strong> drop or paste a photo, describe the change, press Enter. The result appears as a new version; drag the slider to compare before and after.</li>
      <li><strong>Edit only one area:</strong> click <em>Paint area</em>, brush over the part to change, then choose <em>Change</em>, <em>Remove</em>, <em>Replace</em> or <em>Add</em>. Pixels outside the brush stay exactly as they were.</li>
      <li><strong>Expand:</strong> click <em>Expand</em> to extend the photo beyond its borders, to any ratio.</li>
    </ol>
    <p>There are only three quality levels: <strong>Fast</strong> (~1 MP), <strong>Balanced</strong> (~1.5K) and <strong>Quality</strong> (native 2K). Resolution, memory use and upscaling are chosen for your GPU.</p>

    <h2>Prompts that work well</h2>
    <div class="table-wrap">
      <table class="cmp-table">
        <thead><tr><th>Edit</th><th class="us">Example prompt</th></tr></thead>
        <tbody>
          <tr><td>Remove</td><td class="us">"Remove all the people from the beach"</td></tr>
          <tr><td>Replace</td><td class="us">"Replace the yellow armchair with a deep green velvet sofa"</td></tr>
          <tr><td>Relight</td><td class="us">"Make it a snowy winter night, warm light glowing from the windows"</td></tr>
          <tr><td>Text</td><td class="us">"Change the gold sign text to 'KOKON CAFÉ' in the same lettering"</td></tr>
          <tr><td>Restyle</td><td class="us">"Turn it into a hand-painted watercolor illustration"</td></tr>
          <tr><td>Product shot</td><td class="us">"Place the sneaker on wet black stone with a soft orange rim light"</td></tr>
        </tbody>
      </table>
    </div>
    <p>Say what should change and, when it matters, what should stay: "…keep the person and the composition the same". For small objects, paint the area first: it is more reliable than describing where the object is. More rules, with good and bad examples side by side: <a href="../prompt-guide/">the prompt guide</a>.</p>

    <h2>How fast is it?</h2>
    <p>Measured with Qwen-Image 2.1 Turbo (8 steps):</p>
    <ul>
      <li><strong>RTX 5070 Ti (16 GB):</strong> about 24 s for an edit at 1.5K, about 36 s for a new image at native 2K, about 11 s to upscale a 1-megapixel image 4×.</li>
      <li><strong>RTX 5070 (12 GB):</strong> works with the 12 GB preset, a little slower than the 5070 Ti.</li>
      <li><strong>M2 Pro, 16 GB:</strong> about 65 seconds for a new 1-megapixel image with Kokon's own Mac engine (about 106 s for an edit).</li>
    </ul>
    <p>Kokon measures your machine with the first image and shows realistic time estimates from then on.</p>

    <h2>Troubleshooting</h2>
    <ul>
      <li><strong>"Out of memory":</strong> choose Fast or Balanced, close other GPU-heavy apps, or run setup again and pick a lighter preset.</li>
      <li><strong>The first image is slow:</strong> the model loads once (and Vulkan compiles its GPU programs on first use). Later images are faster.</li>
      <li><strong>Something else:</strong> Settings → Diagnostics → Copy, then <a href="https://github.com/GabrieleLozupone/kokon/issues" rel="noopener">open an issue</a> with the report.</li>
    </ul>

    <h2>Use it from an AI agent</h2>
    <p>Kokon includes an MCP server, so Claude Code, Cursor or any MCP client can create and edit images on your GPU without an API key. See <a href="../mcp-image-generation/">free local image generation for Claude Code and MCP</a>.</p>

    <h2>License notes</h2>
    <p>Kokon is open source (AGPL-3.0). Qwen-Image 2.1 and its Turbo model are under the <a href="https://huggingface.co/Qwen/Qwen-Image-2.1/blob/main/LICENSE" rel="noopener">Qwen Research License</a>: research and evaluation only, no commercial use without a license from the Qwen team. Kokon is an independent project, not affiliated with Alibaba.</p>

    <div class="cta-box">
      <h2>Try it</h2>
      <p>Free and open source for Windows, macOS and Linux.</p>
      <div class="ctas" style="justify-content:flex-start">
        <a class="btn primary" href="https://github.com/GabrieleLozupone/kokon/releases/latest" rel="noopener">Download Kokon</a>
        <a class="btn ghost" href="https://github.com/GabrieleLozupone/kokon" rel="noopener">View on GitHub</a>
      </div>
    </div>
  </div>
</main>

<footer>
  <div class="wrap">
    <a class="logo" href="../"><svg><use href="#mark"/></svg>Kokon</a>
    <span>Designed and built by <a class="me" href="https://gabrielelozupone.github.io/" rel="author">Gabriele Lozupone</a>, with the help of Claude Code.</span>
    <nav aria-label="Links">
      <a href="../">Home</a>
      <a href="../mcp-image-generation/">MCP guide</a>
      <a href="https://github.com/GabrieleLozupone/kokon" rel="noopener">GitHub</a>
      <a href="../support/">Support Kokon</a>
    </nav>
  </div>
</footer>
<script src="/download.js" defer></script>
<script src="/nav.js" defer></script>
</body>
</html>