DeepSeek and Qwen are the two Chinese model families developers most often look at for coding. Both publish open weights and sell API access, but they are organised differently. DeepSeek keeps a small lineup: its API serves two models, deepseek-flash and deepseek-v4-pro. Qwen, from Alibaba, is a broad family with general models, dedicated coder models, vision and audio models, and its own open-source terminal agent, Qwen Code.
On the API side, as listed in November 2026 in USD per million tokens, deepseek-v4-pro costs $1.32 input on a cache miss and $3.96 output at peak, and half that off-peak. deepseek-flash is $0.30 and $1.20 at peak. Both list a 1M-token context and up to 384K output tokens, with a thinking mode on by default. Alibaba Cloud Model Studio's Singapore region lists qwen4-max at $1.50 input and $4.50 output, qwen3.8-flash at $0.15 and $0.47, and qwen3-coder-flash tiered by input size from $0.30 and $1.50 up to $1.60 and $9.60.
For local use the gap is size. DeepSeek-V4-Pro has 1.6 trillion total parameters with 49B active, which is out of reach for a workstation. Qwen3-Coder-30B-A3B-Instruct has 30.5B total and 3.3B active parameters, which a well-equipped developer machine can run.
How they compare
| Aspect | DeepSeek | Qwen |
|---|---|---|
| Coding models | General models used for code: deepseek-flash and deepseek-v4-pro on the API. | Dedicated Qwen3-Coder models (Next, 480B-A35B and 30B-A3B) plus qwen4-max and qwen3-coder-flash on the API. |
| Weights licence | DeepSeek-V4-Pro repository and weights are under the MIT licence. | Qwen3-Coder-30B-A3B-Instruct is Apache 2.0; check each model card, as licences can differ. |
| API pricing (as listed in November 2026, USD per 1M tokens) | v4-pro $1.32 in / $3.96 out at peak; flash $0.30 / $1.20; off-peak is half price; cache hits are much cheaper. | qwen4-max $1.50 / $4.50; qwen3.8-flash $0.15 / $0.47; qwen3-coder-flash $0.30 / $1.50 up to 32K input, rising with input size. |
| Context | 1M tokens with up to 384K output on both API models. | Qwen3-Coder is 256K natively, extendable to 1M with YaRN; API tiers go up to 1M input. |
| Local use | Weights are open, but V4-Pro's 1.6T parameters need server-class hardware. | 30B-A3B and a GGUF build of Qwen3-Coder-Next make local runs realistic. |
| Tooling | OpenAI-style and Anthropic-compatible APIs, so many agents can point at it by changing a base URL. | Qwen Code, an Apache 2.0 terminal agent, plus a GitHub Action for running it in workflows. |
| Free allowance | None listed on the pricing page; the weights are free to download. | 1M tokens per model for 90 days in Singapore on qwen4-max, qwen3.7-plus and qwen3.8-flash, but not on qwen3-coder-flash. |
Price at a glance
| Plan detail | DeepSeek | Qwen |
|---|---|---|
| Free option | Open source | Trial only |
| How paid plans charge | Usage (tokens, credits) | Usage (tokens, credits) |
| Cheapest paid plan | No monthly USD price published | No monthly USD price published |
Entry plans differ in what they include, so read the full pricing in the DeepSeek and Qwen reviews. From the same data as our AI tool pricing overview, checked November 2026.
Choose DeepSeek if…
- You want a strong, cheap hosted model and can schedule heavy jobs off-peak.
- You use an agent that speaks the Anthropic or OpenAI API and want a drop-in backend.
- Very long outputs or a 1M-token context matter to your work.
- You prefer a simple two-model lineup.
Choose Qwen if…
- You want to run a capable coding model on your own machine.
- You want models trained specifically for code, with Apache 2.0 weights.
- You want an open-source terminal agent from the same team as the model.
- You need vision, audio or image models from the same family.
Researched November 2026 from each product's official documentation and pricing pages. Prices and features change often, so check the vendors' sites before you decide.
Sources
- api-docs.deepseek.com /quick_start/pricing
- huggingface.co /deepseek-ai/DeepSeek-V4-Pro
- alibabacloud.com /help/en/model-studio/model-pricing
- github.com /QwenLM/Qwen3-Coder
- huggingface.co /Qwen/Qwen3-Coder-30B-A3B-Instruct
- github.com /QwenLM/qwen-code