DeepSeek-V3.1

DeepSeekMCP Tool CallReasoning
deepseek/deepseek-v3.1Open Weights

Hybrid-reasoning DeepSeek model with thinking and non-thinking modes

Benchmark Pricing$0.19 / 1M in$0.71 / 1M out$0.06 cache read
Context: 131,072 tokens•Max Output: 8,192 tokens•Released: 2025-08-21

TECHNICAL SPECIFICATIONS

Context Window131,072131.1K tokens
Max Output8,1928.2K tokens
LicenseMIT LicenseSelf-hostable
Input Modalities
Text
Function / Tool CallingSupported (MCP Ready)
Structured OutputsGuaranteed Schema

MODEL CONTEXT PROTOCOL (MCP) READINESS

✓ DeepSeek-V3.1 natively supports OpenAI / Anthropic format tool calling and is fully compatible with MCP servers and agent loops.

MCP Context Window Recommendations

With a context capacity of 131,072 tokens, this model can handle moderately large MCP tool definitions and multi-turn conversation logs comfortably.

API CALL INVOCATION EXAMPLE

// Example: Calling DeepSeek-V3.1 via OpenAI SDK
import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.DEEPSEEK_API_KEY,
});

const response = await client.chat.completions.create({
  model: "deepseek/deepseek-v3.1",
  messages: [{ role: "user", content: "Hello! Can you inspect MCP tools?" }],
});

console.log(response.choices[0].message.content);

PRICING BY PROVIDER

15 providers
TokenGodeepseek/deepseek-v3.1
$0.19 / $0.71$0.06 cache
Thinking Machinesdeepseek-ai/DeepSeek-V3.1
$1.70 / $4.21$0.34 cache
Abacusdeepseek/deepseek-v3.1
$0.55 / $1.66
Vercel AI Gatewaydeepseek/deepseek-v3.1
$0.25 / $0.95$0.13 cache
Merge Gatewaydeepseek/deepseek-v3.1
$0.56 / $1.68$0.13 cache
Hugging Facedeepseek-ai/DeepSeek-V3.1
$0.27 / $1.00
Amazon Bedrockdeepseek.v3-v1:0
$0.58 / $1.68
Kilo Gatewaydeepseek/deepseek-v3.1-terminus
$0.27 / $1.00
Vertexdeepseek-ai/deepseek-v3.1-maas
$0.60 / $1.70$0.06 cache
Pioneerdeepseek-ai/DeepSeek-V3.1
$0.56 / $1.68$0.56 cache
Alibaba (China)siliconflow/deepseek-v3.1-terminus
$0.27 / $1.00
SambaNovaDeepSeek-V3.1
$3.00 / $4.50
Deep Infradeepseek-ai/DeepSeek-V3.1
$0.25 / $0.95$0.13 cache
Jiekou.AIdeepseek/deepseek-v3.1
$0.27 / $1.00
Heliconedeepseek-v3.1-terminus
$0.27 / $1.00$0.22 cache

Rates in USD per 1M tokens. Rates synchronized from models.dev public catalog.

Prompt Caching Active

This model supports prompt caching at $0.06 / 1M tokens, saving up to 68% on repetitive MCP tool definitions and system instructions.