DeepSeek V4 Pro
AvailableDeepSeek V4 Pro is the larger model in DeepSeek’s V4 family.
Good for Coding agents · Hard reasoning
Is it right for you?
It is slower and costs more per token than V4.1 Flash, and in return it handles harder work better: following a long chain of steps, reasoning about a bug across several files, and writing a plan before it edits. It takes text only. Reasoning is optional.
Best for
- The main model in a coding agent when Flash makes too many mistakes on multi-step tasks.
- Debugging and code review where the model needs to reason before it answers.
- Long-running work you can move to off-peak hours or the Batch API to lower the price.
Not ideal for
- Screenshots, diagrams or other images: this model takes text only.
- Very cheap, very frequent calls; DeepSeek V4.1 Flash costs less per token.
- Prompts longer than 128K tokens, the limit in our catalogue today.
Next to the rest of the DeepSeek line
| Model | Input | Output | Context | Per session |
|---|---|---|---|---|
| DeepSeek V4 Pro (this page) | $0.9307 | $2.4295 | 128K | $0.1894 |
| DeepSeek V4.1 Flash | $0.2146 | $0.8584 | 128K | $0.0536 |
What it costs
Prepaid, per token, no subscription. Set your traffic to see your bill.
30 days, at today's prices. You're billed on actual tokens.
- Per request
- $0.003546
- Coding session
- $0.19
- Per day
- $7.09
- Suggested key budget
- $245.00
- Alert at 80%
- $196.00
A coding session is 30 requests of 20,000 input tokens, 80% from cache, and 1,000 output tokens each: the same session as the "Per session" column above. Thinking tokens are billed as output, so reasoning raises the cost.
This model has peak and off-peak prices. A request is billed at the price in force when it starts, even if it finishes after the boundary. Batch requests (POST /v1/batches, up to 1,000 per batch) wait for the off-peak window.
Capabilities
What DeepSeek V4 Pro can do, as DeepSeek lists it.
| Capability | Support |
|---|---|
| Parallel tool calls | Not listed |
| Reasoning | Optional |
| Image input | No: text in, text out |
| JSON output | JSON mode and structured outputs yes |
| Streaming | Yes |
| Prompt caching | Cache-read price listed |
Get started
Create a key in the console, export it as YUNSHU_API_KEY, then use one of these.
export ANTHROPIC_BASE_URL=https://api.yunshurouter.com
export ANTHROPIC_AUTH_TOKEN=$YUNSHU_API_KEY
export ANTHROPIC_MODEL=deepseek-v4-procurl https://api.yunshurouter.com/v1/chat/completions \
-H "Authorization: Bearer $YUNSHU_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-v4-pro",
"messages": [{"role": "user", "content": "Write a Python function that reverses a string."}]
}'curl https://api.yunshurouter.com/v1/messages \
-H "x-api-key: $YUNSHU_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-v4-pro",
"max_tokens": 1024,
"messages": [{"role": "user", "content": "Write a Python function that reverses a string."}]
}'import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.yunshurouter.com/v1",
api_key=os.environ["YUNSHU_API_KEY"],
)
response = client.chat.completions.create(
model="deepseek-v4-pro",
messages=[{"role": "user", "content": "Write a Python function that reverses a string."}],
)
print(response.choices[0].message.content)import os
from anthropic import Anthropic
client = Anthropic(
base_url="https://api.yunshurouter.com", # no /v1: the SDK adds it
api_key=os.environ["YUNSHU_API_KEY"],
)
message = client.messages.create(
model="deepseek-v4-pro",
max_tokens=1024,
messages=[{"role": "user", "content": "Write a Python function that reverses a string."}],
)
print(message.content[0].text)Full steps for each tool: integration guides →
Questions
What is DeepSeek V4 Pro?
DeepSeek V4 Pro is the larger model in DeepSeek’s V4 family, made for harder coding and reasoning tasks than V4.1 Flash. It takes text in and returns text.
Does DeepSeek V4 Pro support tool calling?
Yes. Tool calling works in both the OpenAI format (tools) and the Anthropic format (tools with input_schema).
Does DeepSeek V4 Pro support reasoning?
Yes. Reasoning is optional on this model, so you can turn it on for hard problems and off for quick answers.
Should I use V4 Pro or V4.1 Flash?
Start with V4.1 Flash for routine agent work because it costs less per token. Switch to V4 Pro when tasks fail on Flash, for example long multi-file changes. You can also list Flash first and V4 Pro as a fallback with models (OpenAI format) or fallbacks (Anthropic format).