---
last_updated: 2026-11-27
source_url: https://opper.ai/deepseek/deepseek-v3-1
title: "DeepSeek V3.1 by DeepSeek"
description: "DeepSeek V3.1, hybrid model toggling thinking and non-thinking modes in one 671B MoE with 128K context."
---

# DeepSeek V3.1

By [DeepSeek](https://opper.ai/deepseek).

Released 21 Aug 2025, 85 days after [DeepSeek R1 (0528)](https://opper.ai/deepseek/deepseek-r1-0528) · [Announcement](https://api-docs.deepseek.com/news/news250821) · [All DeepSeek releases](https://opper.ai/model-releases/deepseek)

DeepSeek-V3.1, released in August 2025, was one of the first production-ready hybrid inference models, combining thinking and non-thinking modes within a single 671-billion-parameter MoE. Both modes activate 37 billion parameters per token and support a 128K-token context, letting developers switch between multi-step reasoning and direct answers via the chat template.

Thinking mode performs chain-of-thought reasoning at quality comparable to the earlier R1 model while reaching answers faster, and non-thinking mode delivers quick, tool-compatible responses with function calling support. Post-training notably strengthened agent and tool-use skills, with widely reported improvements in multi-step reasoning over its predecessor.

Open weights are available on Hugging Face. V3.1 suits agentic systems that need to move dynamically between rapid inference and deeper reasoning depending on the task.

## Available routes

DeepSeek V3.1 runs on 2 different routes through the Opper gateway. Prices are per 1M tokens. One route also sells flex processing: the same model at another price, picked per request with service_tier. [How service tiers work](https://docs.opper.ai/build/gateway/service-tiers). Its routes and prices, live from the catalogue, are public JSON with no API key needed at https://api.opper.ai/v3/models?q=deepinfra%2Fdeepseek-ai%2FDeepSeek-V3.1.

| Provider | Model id | Region | Zero data retention | Training | Input | Output | Cache read |
| --- | --- | --- | --- | --- | --- | --- | --- |
| [DeepInfra](https://opper.ai/provider/deepinfra) | `deepinfra/deepseek-ai/DeepSeek-V3.1` | US (United States) | Yes | No | $0.25 | $0.95 | $0.13 |
| [DeepInfra](https://opper.ai/provider/deepinfra), Flex | `deepinfra:flex/deepseek-ai/DeepSeek-V3.1` | US (United States) | Yes | No | $0.20 | $0.76 | $0.10 |
| [Infercom](https://opper.ai/provider/infercom) | `infercom/deepseek-v3.1` | US (United States) | Yes | No | $3.29 | $4.94 | Input price |

## Key info

- Model id: `deepinfra/deepseek-ai/DeepSeek-V3.1`
- Input: Text
- Output: Text
- Features: Reasoning, Tools, Structured output
- Context window: 164K
- Max output: 164K
- Input price: $0.25 per 1M tokens ($0.13 cache read)
- Output price: $0.95 per 1M tokens
- Released: 21 Aug 2025
- US residency available
- Zero data retention on pay-as-you-go
- No training by default

## Data handling per route

Each route hosting DeepSeek V3.1 has its own privacy posture, residency, and GDPR terms. Postures are maintained by Opper with a last-verification timestamp.

### DeepInfra — United States

Zero data retention: nothing is logged, held for abuse monitoring or used for training. No training on customer data. US; SCCs.

- Zero data retention: Yes. Nothing is logged, held for abuse monitoring or used for training.
- Training: No training on customer data.
- Logging: None
- Abuse monitoring: No classifier
- Transfer mechanism: SCCs

Verified by Opper on 2026-10-19.

### Infercom — United States

Zero data retention: nothing is logged, held for abuse monitoring or used for training. No training on customer data. US; SCCs.

- Zero data retention: Yes. Nothing is logged, held for abuse monitoring or used for training.
- Training: No training on customer data.
- Logging: None
- Abuse monitoring: No classifier
- Subprocessor access: Subprocessors may read content
- Transfer mechanism: SCCs

Verified by Opper on 2026-09-16.

## Benchmarks

Independent benchmark scores via [Artificial Analysis](https://artificialanalysis.ai) ([view on AA](https://artificialanalysis.ai/models/deepseek-v3-1)). Indices and domain scores are out of 100, Omniscience runs from −100 to 100, Briefcase is an Elo rating, and the other evaluation scores are the share of tasks solved.

- Global rank: #222 of 523 LLMs on the [LLM leaderboard](https://opper.ai/llm-leaderboard)
- Tier: Efficient
- Output speed: 93 tok/s
- Intelligence Index (previous version): 13.7

### Coding

- LiveCodeBench: 78%

### Agentic & knowledge work

- Terminal-Bench Hard: 25%
- τ²-Bench Telecom: 37%

### Science & reasoning

- Humanity's Last Exam: 14%
- GPQA Diamond: 78%
- Long-context reasoning: 57%

### Knowledge

- MMLU-Pro: 85%

### Math & instruction following

- AIME 2025: 90%
- IFBench: 42%

## Get started

Call DeepSeek V3.1 through the Opper gateway with one API key. Opper is drop-in compatible with the OpenAI, Anthropic and Google AI SDKs.

DeepSeek V3.1 is a premium model on Opper. Sign up needs no credit card: you get an API key straight away and the free models work in the playground and the API. Add a card to use premium models, pay-as-you-go with no minimum.

### Set it up with your agent

Paste this into a coding agent like Claude Code, Cursor or Codex and it will wire up Opper for you:

```text
Use curl to download, read and follow: https://skills.opper.ai Call DeepSeek V3.1
```

### Or call it directly

OpenAI:

```javascript
import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.OPPER_API_KEY,
  baseURL: "https://api.opper.ai/v3/compat",
});

const completion = await client.chat.completions.create({
  model: "deepinfra/deepseek-ai/DeepSeek-V3.1",
  messages: [{ role: "user", content: "Hello" }],
});
console.log(completion.choices[0].message.content);
```

Anthropic:

```javascript
import Anthropic from "@anthropic-ai/sdk";

const client = new Anthropic({
  apiKey: process.env.OPPER_API_KEY,
  baseURL: "https://api.opper.ai/v3/compat",
});

const message = await client.messages.create({
  model: "deepinfra/deepseek-ai/DeepSeek-V3.1",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Hello" }],
});
console.log(message.content);
```

Gemini:

```javascript
import { GoogleGenAI } from "@google/genai";

const ai = new GoogleGenAI({
  apiKey: process.env.OPPER_API_KEY,
  httpOptions: { baseUrl: "https://api.opper.ai/v3/compat" },
});

const response = await ai.models.generateContent({
  model: "deepinfra/deepseek-ai/DeepSeek-V3.1",
  contents: "Hello",
});
console.log(response.text);
```

cURL:

```bash
curl https://api.opper.ai/v3/compat/chat/completions \
  -H "Authorization: Bearer $OPPER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepinfra/deepseek-ai/DeepSeek-V3.1",
    "messages": [{ "role": "user", "content": "Hello" }]
  }'
```

## Use DeepSeek V3.1 in your apps

Pick your tool to see how to run it on DeepSeek V3.1 through Opper.

- [Claude Code](https://opper.ai/apps/claude-code/deepseek-v3-1)
- [Claude Cowork](https://opper.ai/apps/claude-cowork/deepseek-v3-1)
- [Codex](https://opper.ai/apps/codex/deepseek-v3-1)
- [DeepSeek Harness](https://opper.ai/apps/deepseek-harness/deepseek-v3-1)
- [GitHub Copilot CLI](https://opper.ai/apps/github-copilot-cli/deepseek-v3-1)
- [Aider](https://opper.ai/apps/aider/deepseek-v3-1)
- [Goose](https://opper.ai/apps/goose/deepseek-v3-1)
- [Droid](https://opper.ai/apps/droid/deepseek-v3-1)
- [OpenCode](https://opper.ai/apps/opencode/deepseek-v3-1)
- [Pi](https://opper.ai/apps/pi/deepseek-v3-1)
- [OpenClaw](https://opper.ai/apps/openclaw/deepseek-v3-1)
- [Hermes](https://opper.ai/apps/hermes/deepseek-v3-1)
- [Copilot for Obsidian](https://opper.ai/apps/obsidian-copilot/deepseek-v3-1)
- [OmniRoute](https://opper.ai/apps/omniroute/deepseek-v3-1)
- [Cursor](https://opper.ai/apps/cursor/deepseek-v3-1)
- [Cline](https://opper.ai/apps/cline/deepseek-v3-1)
- [Continue](https://opper.ai/apps/continue/deepseek-v3-1)
- [Kilo Code](https://opper.ai/apps/kilo-code/deepseek-v3-1)
- [GitHub Copilot](https://opper.ai/apps/github-copilot/deepseek-v3-1)
- [Zed](https://opper.ai/apps/zed/deepseek-v3-1)
- [JetBrains AI Assistant](https://opper.ai/apps/jetbrains-ai-assistant/deepseek-v3-1)
- [Voidleap Code](https://opper.ai/apps/voidleap-code/deepseek-v3-1)
- [n8n](https://opper.ai/apps/n8n/deepseek-v3-1)
- [LibreChat](https://opper.ai/apps/librechat/deepseek-v3-1)
- [Open WebUI](https://opper.ai/apps/open-webui/deepseek-v3-1)
- [See all apps](https://opper.ai/apps)

## Other models from DeepSeek

- [DeepSeek V4.1 Flash (1017)](https://opper.ai/deepseek/deepseek-v4-1-flash-1017)
- [DeepSeek V4 Pro](https://opper.ai/deepseek/deepseek-v4-pro)
- [DeepSeek V4 Pro 0813](https://opper.ai/deepseek/deepseek-v4-pro-0813)
- [DeepSeek V4.1 Flash](https://opper.ai/deepseek/deepseek-v4-1-flash)
- [DeepSeek V4 Flash (0731)](https://opper.ai/deepseek/deepseek-v4-flash-0731)
- [DeepSeek V4 Flash](https://opper.ai/deepseek/deepseek-v4-flash)
