DeepSeek-V4.1-Flash1M context, web search, and tool calling fully supported
Try it now

DeepSeek-V4-Pro

deepseek-v4-pro
Open sourceDeepSeek series

Overview

1M ContextMathCode generationDocument analysis

DeepSeek-V4-Pro is a flagship MoE model for business-critical paths: 16T total parameters, 498B activated per inference, with native million-token context. It is optimized for hard reasoning and high-quality training data, with particular strength in mathematical logic, complex reasoning, professional code generation and long-document analysis — suited to high-throughput workloads and multi-step automation pipelines as a core engine on the critical path.

Native million-token context

Native million-token context loads large codebases, very long documents and multi-turn task history in one pass.

Flagship MoE scale

16T total / 498B activated, covering the hardest mathematics, code and logical reasoning tasks.

Complex task automation

Built for long-running agentic workflows and task orchestration across multi-step, long-chain automation.

Throughput and stability

RPM 15K / TPM 1.20M sustains steady output for high-concurrency online workloads.

Features

Prefix completion✓
Context caching✓
Structured output✓
Batch✓
Web search✓
Vision✕
Fine-tuning✕

Pricing

Off-peak prices are half of peak prices. Peak hours are Monday to Friday 9:00–12:00 and 14:00–18:00 Beijing time (UTC+8); all other times are off-peak.

Off-peak

Input$0.66/M tokens
Input (cache hit)$0.022/M tokens
Output$1.98/M tokens

Peak

Input$1.32/M tokens
Input (cache hit)$0.044/M tokens
Output$3.96/M tokens

Rate Limits & Context

Context Window1M
Max Output384K
RPM (requests/min)15K
TPM (tokens/min)1200K

API Reference

POSThttps://api.tokenfab.com/v1/chat/completions

Request Example

curl https://api.tokenfab.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $TOKENFAB_API_KEY" \
  -d '{
    "model": "deepseek-v4-pro",
    "messages": [
      {"role": "system", "content": "You are a helpful assistant."},
      {"role": "user", "content": "Introduce the flagship DeepSeek-V4-Pro in one sentence."}
    ]
  }'

Response Example

{
  "id": "chatcmpl-7h2k93fa",
  "object": "chat.completion",
  "created": 1784950000,
  "model": "deepseek-v4-pro",
  "choices": [{
    "index": 0,
    "message": {
      "role": "assistant",
      "content": "I am DeepSeek-V4-Pro, a flagship MoE model with 16T total and 498B activated parameters. I natively support a million-token context and handle the hardest math, coding and long-text tasks."
    },
    "finish_reason": "stop"
  }],
  "usage": {
    "prompt_tokens": 18,
    "completion_tokens": 52,
    "total_tokens": 70
  }
}

Request Parameters

ParameterTypeRequiredDescription
modelstring✓Model ID, e.g. deepseek-v4-pro
messagesarray✓List of chat messages, each with role and content
temperaturefloat—Sampling temperature, 0–2, default 0.7
top_pfloat—Nucleus sampling, 0–1, default 0.9
max_tokensint—Maximum output tokens
streambool—Whether to stream the response, default false
toolsarray—Tool definitions for function calling
tool_choicestring—Tool choice policy: auto / none / a named function