Open Weights · MIT

DeepSeek-V3.1

One model, two brains — a thinking mode and a non-thinking mode from the same MIT-licensed MoE, at a price that still embarrasses closed labs.

Illustration of open versus closed AI models
Params671B total / 37B active (MoE)
Context128K
LicenseMIT (open weights)
ReleasedAug 2025
Price / 1M~$0.25 in / ~$1.00 out (as of Nov 2026)
ModalityText

What it is and who makes it

DeepSeek-V3.1 is the August 2025 refresh of DeepSeek's open-weights flagship, from the lab in Hangzhou that made the industry recalibrate its pricing spreadsheets. Its headline trick is hybrid inference: the same weights serve both a fast non-thinking chat mode and an R1-style deliberative reasoning mode, toggled at the API or by how you prompt. Weights ship under MIT. As of Nov 2026, V3.2 has superseded it on price-performance, but V3.1 remains a known-quantity workhorse with a huge serving ecosystem.

Architecture and what's under the hood

Like the rest of the V3 line, V3.1 is a mixture-of-experts transformer: roughly 671B total parameters with only about 37B active per token. Public DeepSeek documentation describes Multi-head Latent Attention (MLA) for KV-cache compression and DeepSeekMoE fine-grained expert routing with shared experts, plus a substantially raised multi-token prediction and long-context post-training regime over V3. The hybrid thinking behavior is implemented as a post-training and prompting construct, not two separate models — the same checkpoint answers in both registers. Training-data specifics stay undisclosed; treat precise claims accordingly. Figures as of Nov 2026.

Strengths

  • One MIT-licensed checkpoint, two operating modes — no separate reasoner to host or route to.
  • Excellent coding and agentic benchmark results for its price class (SWE-bench ~66, approximate).
  • Cheap API (~$0.25 / ~$1.00 per 1M tokens) and ubiquitous third-party serving.
  • 128K context that holds up reasonably well on long repo-level tasks.
  • Strong multilingual coverage with a real edge in English and Chinese.

Weaknesses and failure modes

  • Superseded by V3.2, which delivers better price-performance — new deployments should benchmark both.
  • Peak-hour latency and rate limits on the official CN API; offshore resellers cost more but behave better.
  • Censorship/refusal behavior on Chinese political topics, same as the rest of the family.
  • Self-hosting the full model needs serious multi-GPU infrastructure; quantization helps but eats quality.
  • Hybrid mode switching is prompt-sensitive — sloppy system prompts leak thinking tokens into chat output.

Best for / avoid for

Best for: code agents that need occasional deep reasoning without a second model, batch pipelines, private on-prem deployments with MIT requirements, and cost-bound production workloads.

Avoid for: brand-new deployments where V3.2 or newer is available, vision tasks, and orgs whose compliance requires non-CN infrastructure without a reseller in between.

Variants and family

The API exposes deepseek-chat (non-thinking) and deepseek-reasoner (thinking; note the separate deepseek-reasoner alias historically maps to R1-class behavior rather than V3.1's hybrid mode — check current provider docs). The V3 family tree runs V3 → V3.1 → V3.2, and the R1 distills remain the portable small-form reasoning option. MIT weights for all of them are on Hugging Face under the deepseek-ai org.

Pricing, access and how to run it

Official DeepSeek API pricing is roughly $0.25 in / $1.00 out per 1M tokens as of Nov 2026, with aggressive cache discounts on repeated prefixes. OpenRouter, Together, Fireworks and Novita all serve it, often with non-CN jurisdictions. Local: the full 671B model wants an 8xH100-class node via vLLM; Ollama carries quantized variants that fit smaller setups with quality tradeoffs.

# vLLM, multi-GPU, full precision
python -m vllm.entrypoints.openai.api_server \
  --model deepseek-ai/DeepSeek-V3.1 --tensor-parallel-size 8

# Ollama (quantized — check current tags)
ollama run deepseek-v3.1

# OpenAI-compatible call, thinking mode via chat completions
curl https://api.deepseek.com/chat/completions \
  -H "Authorization: Bearer $DEEPSEEK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "deepseek-chat", "messages": [{"role": "user", "content": "Design a rate limiter."}], "thinking": true}'

Benchmarks snapshot

Approximate, as of Nov 2026; evals drift, providers differ:

  • MMLU ~89 · GPQA ~78 · SWE-bench Verified ~66 (atlas figures)
  • AIME 2025 ~85 in thinking mode (reported, directional)
  • LiveCodeBench strong mid-tier vs Qwen 3 235B class (reported, approximate)

How it stacks up

vs DeepSeek V3.2: V3.2 is cheaper and stronger on agentic evals — same MIT story, newer training. Pick V3.1 only if your provider hasn't migrated or you've validated V3.1 specifically. vs Qwen 3 235B A22B: Qwen matches on general quality, adds Apache 2.0 clarity and broader multilingual reach; V3.1 generally edges it on code and reasoning-per-dollar. vs Kimi K2: K2 is the heavier agentic specialist — better long-horizon tool chains, much harder to self-host. V3.1 is the saner default for mixed workloads.

PeaBox fit

For a PeaBox AI Workbench, V3.1 is a natural general endpoint: OpenAI-compatible, MIT-licensed, and good enough that most agent loops never notice the difference from closed frontier models. The hybrid mode is particularly handy for "cheap until it isn't" routing — fast answers by default, escalate to thinking when the task demands it.

Practical tips: keep the system prompt stable to hit cache discounts, set explicit max_tokens on thinking-mode calls, and put a spend cap on the key. The pricing is friendly right up until an unattended agent loop decides to re-verify a proof 400 times overnight.

One migration note for teams already on V3: the V3.1 bump was mostly post-training — better tool use, longer effective context behavior, and the hybrid mode itself — so prompts and few-shot templates from V3 carry over cleanly. If something broke after you switched, diff your sampling params first; defaults drifted between releases and silent decoding changes explain more "the model got dumber" reports than any weight-level regression ever has.

V3.1 is the model that made "just use open weights" a defensible engineering decision. It's been eclipsed on paper, but it's battle-tested, everywhere, and yours to run. If your stack hasn't absorbed it yet, it's still one of the safest open bets going.