---
title: DeepSeek: DeepSeek V3.1 API | Text Generation | ModelsLab
description: Powerful 671B MoE LLM (37B active) with 128K context, hybrid thinking/non-thinking modes, advanced tool calling, and superior coding/reasoning for agents.
url: https://modelslab.com/models/deepseek/deepseek-deepseek-chat-v3.1.md
canonical: https://modelslab.com/models/deepseek/deepseek-deepseek-chat-v3.1.md
type: product
component: Playground/LLM/Index
generated_at: 2026-06-03T20:22:07.260551Z
---

DeepSeek: DeepSeek V3.1
---

 [LLMs.txt](https://modelslab.com/models/open_router/deepseek-deepseek-chat-v3.1/llms.txt) [.md](https://modelslab.com/models/deepseek/deepseek-deepseek-chat-v3.1.md)

DeepSeek: DeepSeek V3.1
---

Choose a prompt below to get started or type your own message

 Explain quantum computing in simple terms

 Write a Python function to sort a list

 Create a marketing email for a SaaS product

 Compare REST vs GraphQL APIs

Send

### DeepSeek: DeepSeek V3.1

deepseek deepseek-deepseek-chat-v3.1

Copy model ID

PricingInput $0.21 / 1M tokens

Output $0.79 / 1M tokens

API EndpointsOpenAI Compatible

`https://modelslab.com/api/v7/llm/chat/completions`Endpoint

Anthropic Compatible

`https://modelslab.com/api/v7/llm/v1/messages`Messages

`https://modelslab.com/api/v7/llm/v1/messages/count_tokens`Count Tokens

`https://modelslab.com/api/v7/llm/v1/models`Models

Use with Claude Code

cURL Example

ParametersSystem MessageYou are a helpful AI assistant specialized in providing accurate and detailed responses.

Temperature0.7

Max Tokens1000

Top P0.9

Frequency Penalty0

Presence Penalty0

Model Info

Support

Related Models
---

Discover similar models you might be interested in

 [View all LLM Models](https://modelslab.com/models?feature=llmaster)

[#### openai/GPT-5.1-Codex-Max

gpt-5.1-codex-max

From $5.63/M tokens](https://modelslab.com/models/openai/gpt-5.1-codex-max)

[#### together\_ai/Qwen3.5 397B A17b

Qwen-Qwen3.5-397B-A17B

From $2.10/M tokens](https://modelslab.com/models/together_ai/Qwen-Qwen3.5-397B-A17B)

[#### open\_router/Amazon: Nova Micro 1.0

amazon-nova-micro-v1

From $0.09/M tokens](https://modelslab.com/models/open_router/amazon-nova-micro-v1)

[#### open\_router/Anthropic: Claude Opus 4.8

anthropic-claude-opus-4.8

From $15.00/M tokens](https://modelslab.com/models/open_router/anthropic-claude-opus-4.8)

[#### open\_router/Cohere: Command R+ (08-2024)

cohere-command-r-plus-08-2024

From $6.25/M tokens](https://modelslab.com/models/open_router/cohere-command-r-plus-08-2024)

[#### open\_router/Mistral: Ministral 3 8B 2512

mistralai-ministral-8b-2512

From $0.15/M tokens](https://modelslab.com/models/open_router/mistralai-ministral-8b-2512)

[#### together\_ai/LFM2-24B-A2B

LiquidAI-LFM2-24B-A2B

From $0.07/M tokens](https://modelslab.com/models/together_ai/LiquidAI-LFM2-24B-A2B)

[#### open\_router/OpenAI: GPT-3.5 Turbo (older v0613)

openai-gpt-3.5-turbo-0613

From $1.50/M tokens](https://modelslab.com/models/open_router/openai-gpt-3.5-turbo-0613)

[#### open\_router/MiniMax: MiniMax M2-her

minimax-minimax-m2-her

From $0.75/M tokens](https://modelslab.com/models/open_router/minimax-minimax-m2-her)

[#### open\_router/Mistral Large

mistralai-mistral-large

From $4.00/M tokens](https://modelslab.com/models/open_router/mistralai-mistral-large)

[#### meta/Meta Llama 3.1 70B Instruct Turbo

meta-llama-Meta-Llama-3.1-70B-Instruct-Turbo

From $0.88/M tokens](https://modelslab.com/models/meta/meta-llama-Meta-Llama-3.1-70B-Instruct-Turbo)

[#### open\_router/Mistral: Devstral 2 2512

mistralai-devstral-2512

From $1.20/M tokens](https://modelslab.com/models/open_router/mistralai-devstral-2512)

[#### open\_router/Anthropic: Claude Opus Latest

anthropic-claude-opus-latest

From $15.00/M tokens](https://modelslab.com/models/open_router/anthropic-claude-opus-latest)

[#### open\_router/Qwen: Qwen3 VL 235B A22B Thinking

qwen-qwen3-vl-235b-a22b-thinking

From $1.43/M tokens](https://modelslab.com/models/open_router/qwen-qwen3-vl-235b-a22b-thinking)

[#### open\_router/Mistral Large 2407

mistralai-mistral-large-2407

From $4.00/M tokens](https://modelslab.com/models/open_router/mistralai-mistral-large-2407)

[#### open\_router/Qwen: Qwen3.6 Flash

qwen-qwen3.6-flash

From $0.66/M tokens](https://modelslab.com/models/open_router/qwen-qwen3.6-flash)

[#### open\_router/Mistral: Ministral 3 3B 2512

mistralai-ministral-3b-2512

From $0.10/M tokens](https://modelslab.com/models/open_router/mistralai-ministral-3b-2512)

[#### alibaba\_cloud/Qwen: Qwen3.5 397B A17B

qwen-qwen3.5-397b-a17b

From $2.10/M tokens](https://modelslab.com/models/alibaba_cloud/qwen-qwen3.5-397b-a17b)

Open Source Alternatives
---

Explore open-source models that offer similar capabilities with full transparency and flexibility

 [View all open source models](https://modelslab.com/models?feature=llm&provider=open-source-models)

[MU](https://modelslab.com/models/modelslab/uncensored-chat)[ModelsLab](https://modelslab.com/models/modelslab)

 [Modelslab: Uncensored Chat

Open Source Model](https://modelslab.com/models/modelslab/uncensored-chat)

About DeepSeek: 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...

### Technical Specifications

Model IDdeepseek-deepseek-chat-v3.1

CategoryLLM Models

TaskText Generation

Price$0.5 per million tokens

AddedFebruary 20, 2026

### Key Features

- Chat completion and multi-turn conversation API
- Streaming response with token-by-token output
- Function calling and tool use support
- System prompts and role-based messaging
- JSON mode and structured output

### Quick Start

Integrate DeepSeek: DeepSeek V3.1 into your application with a single API call. Get your API key from the [pricing page](https://modelslab.com/pricing) to get started.

PythonJavaScriptcURLPHP

```
<code>import requests
import json

url = "https://modelslab.com/api/v7/llm/chat/completions"

headers = {
    "Content-Type": "application/json"
}

data = {
        "model_id": "deepseek-deepseek-chat-v3.1",
        "messages": [
            {
                "role": "user",
                "content": "Hello!"
            }
        ],
        "max_tokens": 1000,
        "key": "YOUR_API_KEY"
    }

try:
    response = requests.post(url, headers=headers, json=data)
    response.raise_for_status()  # Raises an HTTPError for bad responses (4XX or 5XX)
    result = response.json()
    print("API Response:")
    print(json.dumps(result, indent=2))
except requests.exceptions.HTTPError as http_err:
    print(f"HTTP error occurred: {http_err} - {response.text}")
except Exception as err:
    print(f"Other error occurred: {err}")</code>
```

### Pricing

DeepSeek: DeepSeek V3.1 API costs $0.500000 per million tokens. Pay only for what you use with no minimum commitments. [View pricing plans](https://modelslab.com/pricing)

### Use Cases

- AI chatbots and virtual assistants
- Code generation and developer tools
- Content writing and copywriting automation
- Data analysis, summarization, and extraction

[Browse LLM Models](https://modelslab.com/models?feature=llmaster) [More from Deepseek](https://modelslab.com/models/open_router) [View Pricing](https://modelslab.com/pricing)

DeepSeek: DeepSeek V3.1 FAQ
---

### What is DeepSeek: 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...

### How do I use the DeepSeek: DeepSeek V3.1 API?

You can integrate DeepSeek: DeepSeek V3.1 into your application with a single API call. Sign up on ModelsLab to get your API key, then use the model ID "deepseek-deepseek-chat-v3.1" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation.

### How much does DeepSeek: DeepSeek V3.1 cost?

DeepSeek: DeepSeek V3.1 costs $0.500000 per million tokens. ModelsLab uses pay-per-use pricing with no minimum commitments. A free tier is available to get started.

### What is the DeepSeek: DeepSeek V3.1 model ID?

The model ID for DeepSeek: DeepSeek V3.1 is "deepseek-deepseek-chat-v3.1". Use this ID in your API requests to specify this model.

### Does DeepSeek: DeepSeek V3.1 have a free tier?

Yes, ModelsLab offers a free tier that lets you try DeepSeek: DeepSeek V3.1 and other AI models. Sign up to get free API credits and start building immediately.

---

*This markdown version is optimized for AI agents and LLMs.*

**Links:**
- [Website](https://modelslab.com)
- [API Documentation](https://docs.modelslab.com)
- [Blog](https://modelslab.com/blog)

---
*Generated by ModelsLab - 2026-06-04*