DeepSeek V3.1

DeepSeek chatreasoning

API ID: deepseek/deepseek-chat-v3.1

Input Price
$0.15
/1M tokens
Output Price
$0.75
/1M tokens

About DeepSeek V3.1

DeepSeek-V3.1 is a large hybrid reasoning model (671B parameters, 37B active) that supports both thinking and non-thinking modes via prompt templates. It extends the DeepSeek-V3 base with a two-phase long-context training process, reaching up to 128K tokens, and uses FP8 microscaling for efficient inference. Users can control the reasoning behaviour with the `reasoning` `enabled` boolean. [Learn more in our docs](https://openrouter.ai/docs/use-cases/reasoning-tokens#enable-reasoning-with-default-config) The model improves tool use, code generation, and reasoning efficiency, achieving performance comparable to DeepSeek-R1 on difficult benchmarks while responding more quickly. It supports structured tool calling, code agents, and search agents, making it suitable for research, coding, and agentic workflows. It succeeds the [DeepSeek V3-0324](/deepseek/deepseek-chat-v3-0324) model and performs well on a variety of tasks.

๐Ÿ’ฐ
Price Ranking
#812 lowest price among 1240 Chat models

Model Specifications

Context Length
164k
Max Output
66k
Release Date
2025-08-21
Capabilities
chat reasoning
Input Modalities
text
Output Modalities
text

Best For

  • Complex reasoning, math problems, multi-step logic
  • Conversations, content writing, general assistance

Consider Alternatives For

  • Image understanding (needs vision capability)
  • Simple Q&A (cheaper models available)

๐Ÿ’ฐ Real-World Cost Examples

Estimated monthly costs for common use cases

Personal AI Assistant
$0.29
/month
50 conversations/day, ~500 tokens each
Customer Service Bot
$9.00
/month
1000 tickets/day, ~800 tokens each
Data Analysis Pipeline
$12.38
/month
500 analyses/day, ~2k tokens each

DeepSeek Model Lineup

Compare all models from DeepSeek to find the best fit

Model Input Output Context Capabilities
DeepSeek V3.1 Current Free Free 164k chat reasoning
DeepSeek V3.1 Base Free Free 164k chat
DeepSeek V3.1 Base Free Free 164k chat
DeepSeek Prover V2 Free Free 164k chat
DeepSeek V3 Base Free Free 131k chat
DeepSeek V3 Base Free Free 131k chat

Similar Models from Other Providers

Cross-brand alternatives with similar capabilities

Mistral Mistral Small 3.1 24B
Input: $0.35
Output: $0.56
Context: 128k
Alibaba Qwen Qwen3 Coder Next
Input: $0.12
Output: $0.80
Context: 262k
Alibaba Qwen Qwen3 32B
Input: $0.29
Output: $0.59
Context: 131k
Alibaba Qwen Qwen3 Next 80B A3B Thinking
Input: $0.10
Output: $0.78
Context: 262k

๐Ÿš€ Quick Start

Get started with DeepSeek V3.1 API

OpenAI-compatible SDK
from openai import OpenAI

client = OpenAI(
    base_url="https://api.provider.com/v1",
    api_key="YOUR_API_KEY"
)

response = client.chat.completions.create(
    model="deepseek/deepseek-chat-v3.1",
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)
print(response.choices[0].message.content)