DeepSeek V4.1 Flash
deepseek/deepseek-v4.1-flashDeepSeek V4.1 Flash is the smallest model in DeepSeek's V4.1 architecture family, released in September 2026 with native visual understanding. It is a 552B-parameter mixture-of-experts model using a Causal Encoder-Decoder design that activates 8B parameters for input and 16B for output, with a KV cache about a quarter the size of the previous Flash generation. DeepSeek positions it for agentic coding and long-context work and reports it ahead of V4 Pro, replacing V4 Flash and V4 Flash Vision Exp on its API.
- Girdi fiyatı
- $0.15
$0.30USD / 1M token - Çıktı fiyatı
- $0.60
$1.20USD / 1M token - Önbellek okuma
- $0.003
$0.006USD / 1M token - Bağlam penceresi
- 1M
- Maks. çıktı
- 384K
Teknik özellikler
- Girdi
- Metin, görsel
- Çıktı
- Metin
Bu model hakkında
DeepSeek V4.1 Flash is the smallest model in DeepSeek's V4.1 family, released in September 2026. It is a 552B-parameter mixture-of-experts model that reads text and images, reasons before it answers, and has a 1M-token context window with up to 384K output tokens. DeepSeek positions it for agentic coding and long-context work.
When to use it
- Coding agents that read large parts of a repository.
- Long-document question answering and summarization.
- Screenshots and diagrams combined with text in one request.
Call it
The model works on Chat Completions (/v1/chat/completions).
from openai import OpenAI
client = OpenAI(base_url="https://api.sandbase.ai/v1", api_key="$SANDBASE_API_KEY")
resp = client.chat.completions.create(
model="deepseek/deepseek-v4.1-flash",
messages=[{"role": "user", "content": "Explain what an API gateway does."}],
max_tokens=512,
)
print(resp.choices[0].message.content)
What works on SandBase
Checked with real calls through SandBase on October 28, 2026.
| Feature | Works | Notes |
|---|---|---|
| Streaming | Yes | stream: true, with usage in the last chunk when stream_options.include_usage is set. |
| Tool calling | Yes | tools and tool_choice; returns tool_calls. |
| Structured output | Yes | response_format: {"type": "json_schema", …} returned valid JSON. |
| Image input | Yes | image_url parts with an https URL or a data: URI. |
| Reasoning | By default | A two-sentence answer used 79 reasoning tokens. reasoning_effort is accepted. |
Limits and parameters
- Context window: 1,048,576 tokens.
- Maximum output: 384,000 tokens per request (
max_tokens). - The request schema accepts
temperature,top_p,top_k,frequency_penalty,presence_penalty,seedandstop. - Leave room in
max_tokensfor reasoning tokens.
Example response
Real response to "In two sentences, explain what an API gateway does." through Chat Completions, trimmed.
{
"id": "7466ca35-539…",
"object": "chat.completion",
"model": "deepseek/deepseek-v4.1-flash",
"choices": [
{
"index": 0,
"finish_reason": "stop",
"message": {
"role": "assistant",
"content": "An API gateway is a single entry point that receives client requests and routes them to the appropriate backend services. It also handles cross-cutting…"
}
}
],
"usage": {
"completion_tokens": 127,
"completion_tokens_details": {
"reasoning_tokens": 79
},
"prompt_tokens": 41,
"prompt_tokens_details": {
"cache_write_tokens": 0,
"cached_tokens": 0
},
"total_tokens": 168
}
}
Pricing
| Tokens | Price per 1M |
|---|---|
| Input | $0.30 |
| Output | $1.20 |
| Cached input (read) | $0.006 |
Reasoning tokens are part of completion_tokens and are billed at the output price.
Related models
- DeepSeek V4 Pro: DeepSeek's larger V4 model.
- DeepSeek V4 Flash: the previous Flash generation.
- DeepSeek V3: DeepSeek V3, without reasoning or image input.
Modeli deneyin
Oynatma Alanı
Bu modeli denemek için bir istem yazın. Kullanım, gösterilen fiyatlar üzerinden ücretlendirilir.
Bir istem deneyin
Bir görsel ekleyin (isteğe bağlı)
Yanıtınız burada görünecek
Bir örnek seçin veya bir istem yazın, ardından Çalıştır'a tıklayın.
Geliştirmeye başlayın
İlk isteğinizi gönderin
Birleşik kimlik doğrulama ve kullanım takibi sunan OpenAI uyumlu uç nokta.
curl -X POST "https://api.sandbase.ai/v1/chat/completions" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek/deepseek-v4.1-flash",
"messages": [
{
"role": "user",
"content": "Hello"
}
],
"max_tokens": 2048
}'Giriş Şeması
13 parametre · 1 zorunlu · 12 isteğe bağlı
| Parametre | Tür | Zorunlu | Açıklama |
|---|---|---|---|
messages | object[] | Zorunlu | Conversation so far, as an ordered list of messages with a role (system, user or assistant) and content. |
seed | integer | İsteğe bağlı | Best-effort deterministic sampling: repeated requests with the same seed and parameters should return similar results. |
stop | string[] | İsteğe bağlı | Sequences where the model stops generating. The stop sequence is not included in the output. |
tools | array | İsteğe bağlı | Functions the model may call. Each tool declares a name, description and JSON Schema parameters. |
top_k | integer | İsteğe bağlı | Only sample from the k most likely next tokens. · Min: 0 |
top_p | number | İsteğe bağlı | Nucleus sampling: only tokens within this cumulative probability are considered. · Min: 0 · Maks: 1 |
stream | boolean | İsteğe bağlı | Stream the response as server-sent events instead of returning it in one piece. · Varsayılan: false |
max_tokens | integer | İsteğe bağlı | Maximum number of tokens to generate in the response. · Maks: 384000 |
temperature | number | İsteğe bağlı | Sampling temperature. Higher values make output more random; lower values make it more focused. · Min: 0 · Maks: 2 · Varsayılan: 1 |
tool_choice | string | İsteğe bağlı | Controls tool use: "auto", "none", "required", or a specific function. |
response_format | object | İsteğe bağlı | Output format, for example { "type": "json_object" } or a JSON Schema for structured output. |
presence_penalty | number | İsteğe bağlı | Penalizes tokens that already appear at all, encouraging new topics. · Min: -2 · Maks: 2 |
frequency_penalty | number | İsteğe bağlı | Penalizes tokens by how often they already appear, reducing repetition. · Min: -2 · Maks: 2 |
Çıkış Şeması
| Alan | Tür | Açıklama |
|---|---|---|
id | string | Tamamlamanın benzersiz tanımlayıcısı |
object | string | Nesne türü, örn. "chat.completion" |
model | string | Tamamlamada kullanılan model |
choices | array | Tamamlama seçeneklerinin listesi |
choices[].message.content | string | Oluşturulan metin içeriği |
choices[].finish_reason | string | Oluşturmanın durmasının nedeni |
usage.prompt_tokens | integer | İstemdeki token sayısı |
usage.completion_tokens | integer | Tamamlamadaki token sayısı |
usage.total_tokens | integer | Kullanılan toplam token sayısı |
Sorular
SSS
DeepSeek V4.1 Flash'i SandBase üzerinden nasıl çağırırım?
Bir SandBase API anahtarı oluşturun, ardından model kimliği "deepseek/deepseek-v4.1-flash" ile https://api.sandbase.ai adresindeki Chat Completions API (/v1/chat/completions) uç noktalarına istek gönderin. Bu sayfadaki istek örnekleri tam yükü gösterir.
DeepSeek V4.1 Flash'in fiyatı nedir?
Mevcut %50 indirimle 1M giriş tokenı başına $0.15 ve 1M çıkış tokenı başına $0.60 (liste fiyatı $0.30 / $1.20), istek başına SandBase bakiyenizden tahsil edilir.
DeepSeek V4.1 Flash'in bağlam penceresi nedir?
1M token bağlam, yanıt başına en fazla 384K çıkış tokenı ile.
DeepSeek V4.1 Flash hangi özellikleri destekliyor?
DeepSeek V4.1 Flash, görsel algılama (görüntü girişi), akıl yürütme, fonksiyon çağrısı, yapılandırılmış çıktı destekler. Tam liste için yukarıdaki Teknik Özellikler bölümüne bakın.
Ayrı bir DeepSeek hesabına ihtiyacım var mı?
Hayır. Tek bir SandBase API anahtarı ve bakiyesi size DeepSeek V4.1 Flash ve katalogdaki diğer modellere erişim sağlar; DeepSeek için ayrıca kayıt olmanız gerekmez.
