DeepSeek V4 Pro is a large-scale Mixture-of-Experts model with 1.6T total parameters and 49B activated parameters, supporting a 1M-token context window. It is designed for advanced reasoning, coding, and complex problem solving.
Quick Reference
Property
Value
Model ID
deepseek/deepseek-v4-pro
Context window
1,000,000 tokens
Max output
8,192 tokens
Training data cutoff
2024
Streaming
✓
Function calling
✓
Structured output
✓
Batch API
✓
Pricing
Type
Price
Input
$0.76 / 1M tokens / 1M tokens
Output
$1.52 / 1M tokens / 1M tokens
Example
from openai import OpenAIclient = OpenAI( base_url="https://openapi.linkwo.ai/v1", api_key="YOUR_API_KEY")response = client.chat.completions.create( model="deepseek/deepseek-v4-pro", messages=[ {"role": "system", "content": "You are an expert Python developer."}, {"role": "user", "content": "Implement a binary search tree with insert, search, and delete operations."} ], temperature=0.3)print(response.choices[0].message.content)
Best Practices
Use temperature: 0.3 for coding and math tasks for more deterministic output
Use temperature: 0.7 for creative writing and brainstorming
Break complex tasks into steps for better results
Leverage the 1M context for large codebases or long documents