DeepSeek V4-Flash Setup Guide
Use DeepSeek's V4-Flash model through the API or run its open weights, and know what's changed since release.
What V4-Flash is
DeepSeek-V4-Flash is the smaller model in DeepSeek's V4 family, released in April 2026. It's a mixture-of-experts model with 284 billion total parameters, of which 13 billion are active for each token. It supports up to 1 million input tokens and up to 384K output tokens. The official build, DeepSeek-V4-Flash-0731, was released on 31 July 2026 with open weights under the MIT licence.
Option 1: Use the API (easiest)
The API speaks the OpenAI Chat Completions format, and DeepSeek also documents an Anthropic-compatible endpoint. Use the model name deepseek-v4-flash:
from openai import OpenAI
import os
client = OpenAI(base_url="https://api.deepseek.com", api_key=os.environ["DEEPSEEK_API_KEY"])
r = client.chat.completions.create(
model="deepseek-v4-flash",
messages=[{"role": "user", "content": "Summarise this changelog in 5 bullets: ..."}],
)
print(r.choices[0].message.content)
V4 also offers reasoning modes: non-think for fast replies, plus think-high and think-max for harder problems. See the API docs for how to choose one.
Option 2: Run the open weights
The weights are published on Hugging Face as deepseek-ai/DeepSeek-V4-Flash-0731. With 284 billion parameters, running it yourself needs server-class GPUs and an inference engine that supports the model, so it suits teams with that hardware already.
Good uses
- Agent and coding workloads where cost per task matters.
- Long documents, thanks to the 1-million-token context.
- Self-hosted deployments where data must stay in your own infrastructure.