DeepSeek logo

DeepSeek V4 Pro 0813

deepseek/deepseek-v4-pro-0813Chat
  • Function calling
  • Reasoning

DeepSeek, released Aug 2026, updated Aug 2026

DeepSeek V4 Pro 0813 (deepseek/deepseek-v4-pro-0813) is a 1.7T-parameter chat model from DeepSeek with a 1,048,576-token context window and 393,216 max output tokens, priced at $1.32/1M input and $3.96/1M output tokens. Available via the haimaker.ai OpenAI-compatible API.

API usage

from openai import OpenAI

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

response = client.chat.completions.create(
    model="deepseek/deepseek-v4-pro-0813",
    messages=[
        {"role": "user", "content": "Hello, how are you?"}
    ],
)

print(response.choices[0].message.content)

Replace YOUR_API_KEY with a key from your haimaker account. Get an API key or read the developer docs.

Benchmarks

DeepSeek V4 Pro 0813 scores 80 of 100 on the haimaker intelligence index, 10th of 53 open-weight models, from 5 benchmarks.

Coding
BenchmarkSourceScore
Terminal-Bench 2.xModel card87.9%
Terminal-Bench 4Independent6.7%
Agents and tools
BenchmarkSourceScore
ToolathlonModel card74.1%
Knowledge
BenchmarkSourceScore
Epoch Capabilities IndexIndependent156.0
GPQA DiamondIndependent91.7%

Sources use different harnesses and settings, so treat these as a starting point. Compare intelligence and price across models

Overview

A large language model by DeepSeek with strong reasoning and coding capabilities.

Specifications

ModeChat
SupportsFunction calling, Reasoning
Not supportedVision, Web search, URL context
LicenceMIT
ArchitectureDeepseekV4ForCausalLM
Model typedeepseek_v4
Librarytransformers

Frequently asked questions

What is the context window of DeepSeek V4 Pro 0813?

DeepSeek V4 Pro 0813 (deepseek/deepseek-v4-pro-0813) has a 1,048,576-token context window and supports up to 393,216 output tokens per request.

How much does DeepSeek V4 Pro 0813 cost?

DeepSeek V4 Pro 0813 is priced at $1.32 per 1M input tokens and $3.96 per 1M output tokens when accessed via the haimaker.ai OpenAI-compatible API.

What features does DeepSeek V4 Pro 0813 support?

DeepSeek V4 Pro 0813 supports function calling, reasoning.

How do I use DeepSeek V4 Pro 0813 via API?

Send requests to https://api.haimaker.ai/v1/chat/completions with model "deepseek/deepseek-v4-pro-0813" using any OpenAI-compatible SDK. Authentication uses a Bearer API key from https://app.haimaker.ai.

Model card

Written by the model’s publisher on Hugging Face. Shown without its logos and badges.

Technical Report👁️

Introduction

DeepSeek-V4-Pro-0813 is the official release of DeepSeek-V4-Pro, superseding the preview version, with greatly enhanced agentic capabilities and performance improvements that are especially pronounced in production environments. It is built on the DeepSeek-V4-Pro (Preview) model structure, with a DSpark speculative decoding module attached.

DeepSeek-V4-Pro-0813 outperforms DeepSeek-V4-Pro (Preview) on the benchmarks listed below, and is broadly competitive with the strongest proprietary models available.

BenchmarkDeepSeek-V4-Pro-0813DeepSeek-V4-Flash-0731DeepSeek-V4-Pro (Preview)DeepSeek-V4-Flash (Preview)GLM-5.2Kimi K3Opus-4.8Fable-5 (w/ fallback)
HLE (wo / w tools)42.7 / 60.037.8 / 51.537.7 / 48.234.8 / 45.140.5 / 54.743.5 / 56.049.8 / 57.953.3 / 63.0
Terminal Bench 2.187.982.772.161.881.088.385.088.0
NL2Repo61.554.238.539.448.9-69.7-
Cybergym83.376.752.738.7-80.078.383.1
DeepSWE62.754.412.87.346.267.558.070.0
Toolathlon-Verified74.170.355.949.759.976.576.277.9
Agents' Last Exam25.725.216.515.823.827.625.7-
AutomationBench (Public)31.825.112.810.812.930.827.229.1
DSBench-FullStack †71.168.741.837.061.873.771.677.2
DSBench-Hard †67.259.631.125.854.563.071.768.3

Notes:

  1. For the code-agent tasks among the public benchmarks above, DeepSeek-V4-Pro-0813 is evaluated with the minimal mode of DeepSeek Harness as the agent framework, using the max reasoning effort level with temperature = 1.0, top_p = 0.95.
  2. † DSBench-FullStack is an internal full-stack development test set; DSBench-Hard is an internal test set of difficult coding-agent problems.

Chat Template

This release does not include a Jinja-format chat template. Instead, we provide a dedicated encoding folder with Python scripts and test cases demonstrating how to encode messages in OpenAI-compatible format into input strings for the model, and how to parse the model's text output. Please refer to the encoding folder for full documentation.

The reasoning_effort parameter now supports three levels — low, high, and max — which control how much deliberation the model spends before answering.

A brief example:

from encoding_dsv4 import encode_messages, parse_message_from_completion_text

messages = [
    {"role": "user", "content": "hello"},
    {"role": "assistant", "content": "Hello! I am DeepSeek.", "reasoning_content": "thinking..."},
    {"role": "user", "content": "1+1=?"}
]

# messages -> string
prompt = encode_messages(messages, thinking_mode="thinking", reasoning_effort="max")

# string -> tokens
import transformers
tokenizer = transformers.AutoTokenizer.from_pretrained("deepseek-ai/DeepSeek-V4-Pro-0813")
tokens = tokenizer.encode(prompt)

How to Run with vLLM

DSpark speculative decoding is enabled with a single flag — add --speculative-config with method: dspark to your vLLM launch command:

--speculative-config '{"method":"dspark","num_speculative_tokens":7,"draft_sample_method":"greedy"}'

For example, the command below serves the model with vLLM on a single 4×GB300 node. See the vLLM recipe for detailed instructions and other hardware configurations.

vllm serve deepseek-ai/DeepSeek-V4-Pro-0813 \
  --trust-remote-code --kv-cache-dtype fp8 --block-size 256 \
  --data-parallel-size 4 --enable-expert-parallel \
  --moe-backend deep_gemm_mega_moe \
  --attention-config '{"use_fp4_indexer_cache": true}' \
  --speculative-config '{"method":"dspark","num_speculative_tokens":7,"draft_sample_method":"greedy"}'

How to Run with SGLang

Enable DSpark with --speculative-algorithm DSPARK and do not set a separate --speculative-draft-model-path as the target and draft weights therefore come from the same checkpoint. See the SGLang cookbook for detailed instructions, benchmarks and other hardwares configurations.

sglang serve \
  --trust-remote-code \
  --model-path deepseek-ai/DeepSeek-V4-Pro-0813 \
  --tp 4 \
  --moe-runner-backend flashinfer_mxfp4 \
  --speculative-algorithm DSPARK \
  --mem-fraction-static 0.90 \
  --chunked-prefill-size 4096 \
  --swa-full-tokens-ratio 0.1 \

How to Run Locally

Please refer to the inference folder for detailed instructions on running DeepSeek-V4 locally, including model weight conversion and interactive chat demos.

For local deployment, we recommend setting the sampling parameters to temperature = 1.0, with top_p = 0.95 for agentic scenarios and top_p = 1.0 otherwise. For the high and max reasoning effort levels, we recommend a maximum output length of 384K tokens.

License

This repository and the model weights are licensed under the MIT License.

Citation

@misc{deepseekai2026deepseekv4,
      title={DeepSeek-V4: Towards Highly Efficient Million-Token Context Intelligence},
      author={DeepSeek-AI},
      year={2026},
}

Contact

If you have any questions, please raise an issue or contact us at service@deepseek.com.