DeepSeek V4 Pro

Models

Model details

Model
deepseek-v4-pro
Provider
deepseek
API
openai-completions
Base URL
https://api.deepseek.com
Input
text
Reasoning
Yes
Context window
1,000,000
Max tokens
384,000
Show configuration
{
  "providers": {
    "deepseek": {
      "apiKey": "YOUR_API_KEY",
      "models": [
        {
          "id": "deepseek-v4-pro",
          "name": "DeepSeek V4 Pro",
          "reasoning": true,
          "input": [
            "text"
          ],
          "thinkingLevelMap": {
            "minimal": null,
            "low": null,
            "medium": null,
            "high": "high",
            "max": "max"
          },
          "contextWindow": 1000000,
          "maxTokens": 384000,
          "cost": {
            "input": 0.435,
            "output": 0.87,
            "cacheRead": 0.003625,
            "cacheWrite": 0
          },
          "compat": {
            "supportsStore": false,
            "supportsDeveloperRole": false,
            "requiresReasoningContentOnAssistantMessages": true,
            "thinkingFormat": "deepseek"
          }
        }
      ],
      "api": "openai-completions",
      "baseUrl": "https://api.deepseek.com"
    }
  }
}

Pricing

USD per million tokens. A tier is selected from the total input tokens in each request and applies to that entire request.

Pricing rates for DeepSeek V4 Pro
Request inputInputOutputCache readCache write
All requests$0.435$0.87$0.003625$0

Session cost calculator

Estimate the requests made during an agent session. A user turn can make several model calls while using tools, so costs are calculated per model request.

Session shape
Rounded median shapes from recent Pi agent sessions.
Warm-request cache reuse
Effective token reuse combines partial hits and occasional complete misses.
Estimated session$0.00
Uncached input
Cache reads
Uncached prefixes
Cache writes
Output
Without caching

The first request starts cold unless marked otherwise. Output is billed separately from context growth because reasoning tokens are not always retained. This remains a directional estimate: providers differ in eligibility, rounding, and retention.

Compatibility flags

Effective values after applying Pi's API defaults and model overrides.

Effective compatibility flags for DeepSeek V4 Pro
FeatureValue
supportsStoreNo
supportsDeveloperRoleNo
supportsReasoningEffortYes
supportsUsageInStreamingYes
maxTokensFieldmax_completion_tokens
requiresToolResultNameNo
requiresAssistantAfterToolResultNo
requiresThinkingAsTextNo
requiresReasoningContentOnAssistantMessagesYes
thinkingFormatdeepseek
openRouterRoutingEmpty
vercelGatewayRoutingEmpty
chatTemplateKwargsEmpty
zaiToolStreamNo
supportsStrictModeYes
cacheControlFormatNone
sendSessionAffinityHeadersNo
supportsLongCacheRetentionYes