DeepSeek-V4-Pro-0813 Publish
TL;DR Highlight
Change base_url and call DeepSeek with OpenAI or Anthropic SDKs.
Who Should Read
A backend developer who wants to switch the model behind the OpenAI SDK or agent tools like Claude Code to DeepSeek
Core Mechanics
- OpenAI- and Anthropic-compatible API
- Change base_url and you can reach DeepSeek with the OpenAI or Anthropic SDK.
- The OpenAI format uses https://api.deepseek.com and the Anthropic format uses https://api.deepseek.com/anthropic.
- Model names: deepseek-flash and deepseek-v4-pro
- deepseek-flash is now served by DeepSeek-V4.1-Flash-1017, and the calling method is unchanged.
- The legacy names deepseek-v4-flash and deepseek-v4-flash-vision-exp are still accepted, but those models are retired.
- Legacy names are billed at Flash price
- Requests using the old names are served by DeepSeek-V4.1-Flash-1017.
- They are billed at the Flash price.
- thinking and reasoning_effort parameters
- The examples set thinking to {"type":"enabled"} and reasoning_effort to "high".
- In the Python SDK, thinking is passed through extra_body.
- Works as a backend for agent tools
- Tools like Claude Code, GitHub Copilot, and OpenCode can use DeepSeek as the backend model with no code, per the docs.
- DeepSeek Harness is in developer preview for agent harness developers.
Community Reactions
- Naming confusion
- One commenter mocked the versioned, suffixed model naming and wished it were simply called 4.1.
- Doubts about benchmark source
- A commenter said the shared benchmarks reportedly came from a DeepSeek WeChat group, so take them with a grain of salt.
- Pricing worries
- A commenter wondered what pricing will look like after the planned "significant increase".
- No vision support
- A commenter was disappointed that vision appears to be missing.
How to Apply
- Point your existing OpenAI SDK call at DeepSeek
- Set base_url to https://api.deepseek.com and model to deepseek-flash in your current code, then make one call.
- Provide the API key via the DEEPSEEK_API_KEY environment variable.
- Replace legacy model names in your code
- Search for deepseek-v4-flash and deepseek-v4-flash-vision-exp and change them to deepseek-flash.
- Since the vision model is retired, check whether those calls actually depend on vision.
- Compare thinking on vs off
- Run the same prompt while varying the thinking and reasoning_effort settings, and compare quality and token usage.
- Use the results to pick a default per service.
Try It
# Run in terminal (pip install openai first, set DEEPSEEK_API_KEY env var)
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ.get('DEEPSEEK_API_KEY'),
base_url="https://api.deepseek.com",
)
response = client.chat.completions.create(
model="deepseek-flash",
messages=[
{"role": "system", "content": "You are a helpful assistant"},
{"role": "user", "content": "{{question}}"},
],
stream=False,
reasoning_effort="high",
extra_body={"thinking": {"type": "enabled"}},
)
print(response.choices[0].message.content)
# Next: set stream=True to try streaming responsesTerminology
Related Papers
A Beginner's Guide to Local AI with Inkling, Qwen, and Unsloth
Install Unsloth Desktop, load a quantized Qwen model, and share a private ChatGPT-like AI on your home LAN.
Muru – AI-assisted Rust server for Python apps by mod_WSGI's creator
mod_wsgi's creator is building Muru, an AI-assisted Rust ASGI/WSGI server, documenting it in public
87% of the Anthropic power will come from gas and 11% from coal in 2028
Analysis of Anthropic's contracted data centers: 87% gas, 11% coal power in 2028
Anthropic’s Nasdaq debut
Anthropic listed on Nasdaq and closed its first day below its opening price.
OpenAI still has a WebRTC Problem
WebRTC drops late audio, hurting voice AI; MoQ retransmits and buffers instead
Gemini 4 Neon
Gemini 4 Neon cuts cost per task 32% versus Carbon, at $3 input and $15 output per million tokens
AI is killing All About Berlin
After Google AI Overviews, a Berlin guide site lost 70-75% of its traffic.
Not Everything Needs an LLM
PostHog used small decision models to skip 98.7% of expensive LLM calls