DeepSeek-V3.1 API
DeepSeek-V3.1 is a text-generation model from deepseek-ai. In ServerNet, its chat route accepts conversation messages and returns a generated answer; the price separates input and output tokens.
AvailableToman per million tokens
The usage rate is fixed at request admission. Reported consumption determines the final usage amount.
- API model ID
- di-deepseek-aideepseek-v31-fc635a9dc2
- Model developer
- deepseek-ai
- Service type
- Text chat
- Current availability
- Available
- Configured context limit
- 163,840 tokens
- Gateway output cap
- 4,096 tokens
Model features
Reasoning ✓
Tool calling ✓
Streaming ✓
What is DeepSeek-V3.1?
Use the public identifier di-deepseek-aideepseek-v31-fc635a9dc2 for DeepSeek-V3.1 in ServerNet. The gateway uses this identifier to select the configured route; the developer is deepseek-ai.
For DeepSeek-V3.1, distinguish the configured gateway route from other modes in the model family. Use the mode and limits shown here when estimating cost.
Where to use DeepSeek-V3.1
- Add DeepSeek-V3.1 to a support assistant that receives the relevant conversation as text.
- Test DeepSeek-V3.1 on summaries and extraction using your own documents, with a small output limit first.
- Compare answer quality, total token usage and cost per completed task before choosing DeepSeek-V3.1 for production.
Model description
Original catalogue description in English. It describes the model; the gateway limits and availability on this page define what you can request here.
DeepSeek-V3.1 is post-trained on the top of DeepSeek-V3.1-Base, which is built upon the original V3 base checkpoint through a two-phase long context extension approach, following the methodology outlined in the original DeepSeek-V3 report. We have expanded our dataset by collecting additional long documents and substantially extending both training phases. The 32K extension phase has been increased 10-fold to 630B tokens, while the 128K extension phase has been extended by 3.3x to 209B tokens. Additionally, DeepSeek-V3.1 is trained using the UE8M0 FP8 scale data format to ensure compatibility with microscaling data formats.
How to evaluate this model
This gateway lists a context limit of 163,840 tokens and an output cap of 4,096 tokens for DeepSeek-V3.1. Keep instructions, history and the requested response within the applicable limits.
Before you integrate
- Use a representative test set and check factual accuracy, format and failure cases.
- Keep the first request bounded. Follow the operation-specific example and its API scope.
- Record response time and usage in your own environment before setting a production budget.
Conversation & code
Compare output limits, tool calling and streaming on representative prompts.
Compare models ↗Build your integration
Send system and user messages, set max_tokens and store X-Request-Id with your usage record. Stream only when this route supports it. Function calls describe actions for your application to run; the gateway does not execute your tools.
Inputs and service limits
The current chat route accepts text only and one completion per request. Images, audio and hosted paid tools are not enabled by the source model’s capabilities. The configured context and output limits may be below the developer’s maximum. Test language quality on your own dataset.
A request cost example
For 1,000 input tokens and 500 output tokens, without a cache discount. This is a catalogue estimate, not a fixed request fee. Reported consumption and the price frozen for your request determine the usage amount.
- Estimated usage, Toman
- 227
Plan your token usage
Estimate from the displayed uncached token rates. This is a planning calculation; final billing follows actual usage and the applicable request contract.
Connect to DeepSeek-V3.1 API
Enable ai:chat on your key and ai:models:read to check availability. Set SERVERNET_API_KEY in your server environment. Change the idempotency key for each new request; keep it unchanged only for an identical retry.
curl https://servernet.cloud/v1/chat/completions \
-H "Authorization: Bearer $SERVERNET_API_KEY" \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: CHANGE_FOR_EACH_NEW_REQUEST' \
-d '{
"model": "di-deepseek-aideepseek-v31-fc635a9dc2",
"messages": [
{
"role": "user",
"content": "Hello"
}
],
"max_tokens": 128
}'import json, os, urllib.request
from uuid import uuid4
body = json.loads("{\n \"model\": \"di-deepseek-aideepseek-v31-fc635a9dc2\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Hello\"\n }\n ],\n \"max_tokens\": 128\n}")
request = urllib.request.Request(
"https://servernet.cloud/v1/chat/completions",
data=json.dumps(body).encode(),
headers={
"Authorization": "Bearer " + os.environ["SERVERNET_API_KEY"],
"Content-Type": "application/json",
"Idempotency-Key": str(uuid4()),
},
method="POST",
)
with urllib.request.urlopen(request) as response:
print(json.load(response))import { randomUUID } from 'node:crypto';
const response = await fetch('https://servernet.cloud/v1/chat/completions', {
method: 'POST',
headers: {
Authorization: 'Bearer ' + process.env.SERVERNET_API_KEY,
'Content-Type': 'application/json',
'Idempotency-Key': randomUUID(),
},
body: JSON.stringify({
"model": "di-deepseek-aideepseek-v31-fc635a9dc2",
"messages": [
{
"role": "user",
"content": "Hello"
}
],
"max_tokens": 128
}),
});
if (!response.ok) throw new Error('HTTP ' + response.status);
console.log(await response.json());Use the same Idempotency-Key when retrying an identical request. Successful responses are replayed without a second charge for 24 hours. Do not automatically retry when x-should-retry:false is present. The key is shown once. Store it in a server environment variable. Keep it out of browser code, GitHub and logs.
Keys, budgets and usage reportsFrequently asked questions
Is DeepSeek-V3.1 available through ServerNet?
DeepSeek-V3.1 is currently available on the configured route. Check GET /v1/models before sending a request: availability can change with provider capacity, catalogue freshness or account configuration.
Which model ID and API endpoint should I use for DeepSeek-V3.1?
Use di-deepseek-aideepseek-v31-fc635a9dc2 as the model field, the endpoint shown below and the matching key scope. ServerNet keys are project-specific; an SDK also needs https://servernet.cloud/v1 as its base URL.
How is DeepSeek-V3.1 usage charged?
Input and output tokens use separate tariffs. Reported reasoning tokens, where supported, count towards output consumption. Cached input receives a discount only when a verified cached tariff exists. The dashboard records consumption for each request.
What should I check before using DeepSeek-V3.1 in production?
The current chat route accepts text only and one completion per request. Images, audio and hosted paid tools are not enabled by the source model’s capabilities. The configured context and output limits may be below the developer’s maximum. Test language quality on your own dataset.
Compare models for the same task
DeepSeek-R1-0528
Available Text chatConfigured context limit: 163,840 tokens
DeepSeek-V3
Available Text chatConfigured context limit: 163,840 tokens
DeepSeek-V3.2
Available Text chatConfigured context limit: 163,840 tokens
DeepSeek-V4-Flash
Available Text chatConfigured context limit: 1,048,576 tokens
DeepSeek-V4-Flash-0731
Available Text chatConfigured context limit: 1,048,576 tokens
DeepSeek-V4-Flash-Vision-Exp
Available Text chatConfigured context limit: 1,048,576 tokens