Skip to content

deepseek/deepseek-v4-pro

deepseek/deepseek-v4-pro

Release date:

1,048,576 context · $1.65/M input tokens · $3.301/M output tokens

DeepSeek V4 Pro is DeepSeek's flagship open-source model released in April 2026, featuring a 1.6T-parameter Mixture-of-Experts architecture with 49B parameters active per token. It supports a 1M-token context window through a novel hybrid attention mechanism combining Compressed Sparse Attention and DeepSeek Sparse Attention, reducing inference FLOPs to 27% and KV cache to 10% compared to V3.2 at million-token scale. Pre-trained on 33T tokens with post-training via GRPO reinforcement learning and on-policy distillation, V4 Pro delivers frontier-level performance in coding (LiveCodeBench 93.5, Codeforces 3206), math (IMOAnswerBench 89.8), and agentic tasks (SWE-bench Verified 80.6) — competitive with GPT-5.4 and Claude Opus 4.6 at a fraction of the cost. It natively supports thinking and non-thinking modes with configurable reasoning effort, function calling, JSON output, and has been specifically optimized for mainstream agent frameworks including Claude Code, OpenClaw, and OpenCode.

Ask about this model

Pricing

Catalog rates in USD

Ask about the rates that apply to your workspace before requesting access.
Input
$1.65 / M Tokens
Output
$3.301 / M Tokens
Cache Read
$0.33 / M Tokens

API examples

Use a model ID and API address enabled for your workspace.

import OpenAI from 'openai';

if (!process.env.OPENSI_API_KEY) throw new Error('Set OPENSI_API_KEY');
const client = new OpenAI({
  apiKey: process.env.OPENSI_API_KEY,
  baseURL: 'https://llm.opensi.com.ai/v1',
  timeout: 120_000,
  maxRetries: 0,
});

try {
  const response = await client.chat.completions.create({
    model: 'deepseek/deepseek-v4-pro',
    messages: [{ role: 'user', content: 'Hello!' }],
  });
  if (response.error) throw new Error(response.error.message || 'LLM generation failed');
  console.log(response.choices[0]?.message?.content ?? '');
} catch (error) {
  console.error('LLM request failed:', error);
  process.exitCode = 1;
}

Model Introduction

On this page

DeepSeek: DeepSeek V4 Pro 0423

DeepSeek V4 Pro is a large-scale Mixture-of-Experts model from DeepSeek with 1.6T total parameters and 49B activated parameters, supporting a 1M-token context window. It is designed for advanced reasoning, coding,...

This model is available through the OpenSIAI OpenAI-compatible API for chat completions and compatible application workflows.


Why It Looks Great

  • text->text architecture for Text to Text workloads
  • 1048576 context window for long prompts, document analysis, and multi-turn workflows
  • Function calling and tool-use support for agentic application workflows
  • Structured output support for JSON responses and schema-constrained generation
  • Reasoning controls available through supported parameters

Key Features

  • Context Window: 1048576 tokens
  • Max Input: 664576 tokens
  • Max Output: 384000 tokens
  • Vision: Not listed
  • Function Calling: Supported
  • Structured Outputs: Supported
  • Image Generation: Not listed
  • Audio Input: Not listed
  • Supported Parameters: frequency_penalty, include_reasoning, logit_bias, logprobs, max_completion_tokens, max_tokens, min_p, presence_penalty, reasoning, reasoning_effort, repetition_penalty, response_format, seed, stop, structured_outputs, temperature, tool_choice, tools, top_k, top_logprobs, top_p

Specifications

SpecificationValue
Providerdeepseek
Model TypeChat Completions model
Architecturetext->text
Context Window1048576 tokens
Max Input664576 tokens
Max Output384000 tokens
InputText
OutputText
VisionNot listed
Function CallingSupported
Structured OutputsSupported
Release DateApril 24, 2026

How to Use

  1. Write your prompt - describe the task, provide context, and specify the desired output format.
  2. Submit - the model processes your request and returns the response.

API Integration

Base URL: https://llm.opensi.com.ai/v1 API Endpoint: chat/completions Model ID: deepseek/deepseek-v4-pro


API Usage

Python SDK

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://llm.opensi.com.ai/v1"
)

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

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

cURL

curl https://llm.opensi.com.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "deepseek/deepseek-v4-pro",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Notes

  • Model: deepseek/deepseek-v4-pro
  • Provider: deepseek

DeepSeek V4 Pro API

deepseek/deepseek-v4-pro

DeepSeek V4 Pro is DeepSeek's flagship open-source model released in April 2026, featuring a 1.6T-parameter Mixture-of-Experts architecture with 49B parameters active per token. It supports a 1M-token context window through a novel hybrid attention mechanism combining Compressed Sparse Attention and DeepSeek Sparse Attention, reducing inference FLOPs to 27% and KV cache to 10% compared to V3.2 at million-token scale. Pre-trained on 33T tokens with post-training via GRPO reinforcement learning and on-policy distillation, V4 Pro delivers frontier-level performance in coding (LiveCodeBench 93.5, Codeforces 3206), math (IMOAnswerBench 89.8), and agentic tasks (SWE-bench Verified 80.6) — competitive with GPT-5.4 and Claude Opus 4.6 at a fraction of the cost. It natively supports thinking and non-thinking modes with configurable reasoning effort, function calling, JSON output, and has been specifically optimized for mainstream agent frameworks including Claude Code, OpenClaw, and OpenCode.

Input
$1.65 /M
Output
$3.301 /M
Context
1049K
Max Output
393K
Tool Use
Supported

Workspace access

Include the model ID when you contact OpenSI about availability and token rates.

Frequently Asked Questions about DeepSeek V4 Pro

Related LLM APIs