Guides · dev · run qwen locally

Run Qwen locally when the API price is not the constraint

Published 16 Oct 2026. Updated 16 Oct 2026. Researched 16 Oct 2026.

Local models are a privacy decision that sometimes saves money. The money part is easy to fake with a benchmark screenshot from one person’s GPU. We will not do that. The API price is in the repo. The hardware speed is not, until we measure it.

The price you are replacing

API prices a local model has to beatqwen3.8-27b$0.730/Mqwen3.8-flash$0.230/Mdeepseek-v4.1-flash$0.198/Mclaude-opus-5.5$8.00/Mgpt-6.1-sol$4.00/M
API prices a local model has to beat. OpenRouter list price, blended 75% input / 25% output. Snapshot 2026-10-16 06:10 UTC. Comparators resolve to Anthropic: Claude Opus 5.5 and OpenAI: GPT-6.1 Sol.
ModelBlendedvs Opusvs Sol
qwen3.8-27b$0.73091% cheaper82% cheaper
qwen3.8-flash$0.23097% cheaper94% cheaper
deepseek-v4.1-flash$0.19898% cheaper95% cheaper

Qwen3.8 27B is the id in the spotlight that people mean when they talk about a model that might fit a workstation. Flash is so cheap on the API that electricity and your time can cost more than the tokens, unless the prompt cannot leave the building. That is the whole trade.

Illustrative Document question costqwen3.8-27b$0.0088qwen3.8-flash$0.0031Anthropic: Claude Opus 5.5$0.088OpenAI: GPT-6.1 Sol$0.044
Document question: 50 thousand input tokens, 80% cached, 2 thousand output tokens. All rows use the OpenRouter list price. Comparators are OpenRouter list prices for Anthropic: Claude Opus 5.5 ($8.00/M blended) and OpenAI: GPT-6.1 Sol. Snapshot 2026-10-16. Cache-write fees are excluded. A missing cache price is billed as a full input token.
ModelSessionvs Opusvs SolCache price
qwen3.8-27b$0.008890% cheaper80% cheaperpublished
qwen3.8-flash$0.003197% cheaper93% cheaperpublished
Anthropic: Claude Opus 5.5$0.088——published
OpenAI: GPT-6.1 Sol$0.044——published

The percentages in this table compare session cost. The price table's percentages compare blended token price. They answer different questions.

The document-question mix is the fairer local comparison: a pile of context, a short answer. A coding-agent mix of 3 million tokens is not what a laptop context window is for.

How to do it without a made-up speed

A local run we would actually trust1Pick a weight on the official Hugging Face org, and read the licence2Choose a quant the file size says will fit in your RAM3Run one prompt you care about and time it yourself4Write down the tokens per second you measured5Compare that wait with the API price chart, not with a stranger's screenshot

Qwen’s Hugging Face org is Qwen. DeepSeek’s is deepseek-ai. Kimi K3’s card describes a 2.8T model. That is not this guide. The licence note is where K3 belongs.

What X threads get wrong

A post that says a 27B model “flies” on a specific Mac is one machine, one quant, one prompt length. It is not a spec. If we later measure a machine we control, the number will be dated and the prompt will be attached. Until then the chart above is the only figure.

Related: hosts outside China, Qwen API.

Questions

Can I run the flagship on a laptop?

Not the largest Qwen or Kimi K3. Start from a small instruct id whose weights you can actually download. We are not publishing an unverified tokens-per-second claim for a 16 GB Mac.

When is local cheaper?

When the machine is already paid for and the prompts are sensitive. Otherwise the flash API price in the chart is the number to beat.

Sources

  1. OpenRouter models API, accessed 2026-10-16
  2. Qwen on Hugging Face, accessed 2026-10-16
  3. DeepSeek on Hugging Face, accessed 2026-10-16