DeepSeek — an AI company with open models and a cheap API
DeepSeek is a Chinese AI company that releases open model weights and sells a cheap API in the OpenAI and Anthropic format. SONUB’s Lyen and SONUB Code think with it.
DeepSeek at a glance
-
Who makes it
An research company in Hangzhou, China, started in 2023 by the quantitative investment firm High-Flyer. Its founder is Liang Wenfeng.
-
Open weights
The files themselves are published under the . You may download them, run them on your own , change them and use them commercially.
-
Model you call today
DeepSeek-V4.1-Flash-1017 (the name is deepseek-flash). It reads 1 million of and can also read pictures.
-
API format
The same format as the and APIs. written for them work after you change only the address, key and model name.
How DeepSeek got here
Dates from DeepSeek's API change log. Each step made the model stronger or cheaper; R1 was the moment the whole world noticed.
-
DeepSeek-V2 — an model that already sold at a very low price
-
DeepSeek-V3 — a large MoE model close to the best paid models
-
DeepSeek-R1 — a reasoning model that "thinks before it answers". 671B in total, 37B used per token, MIT . It matched top models in maths and at a fraction of the cost, and shook the AI industry
-
DeepSeek-V3.1 — thinking and non-thinking modes in one model
-
DeepSeek-V3.2 — cheaper long context
-
DeepSeek-V4 — two lines: Pro (larger) and Flash (faster and cheaper)
-
DeepSeek-V4.1-Flash — a stronger Flash
-
DeepSeek-V4.1-Flash-1017 — better scores with shorter answers; tuned for work such as building whole projects
The two models you can call now
Prices are per 1 million tokens. During peak hours they double. A " hit" is the part of the input that is the same as the beginning of an earlier request.
| deepseek-flash | deepseek-v4-pro | |
|---|---|---|
| DeepSeek-V4.1-Flash-1017 | DeepSeek-V4-Pro-0813 | |
| Context | 1M tokens | 1M tokens |
| Longest answer | 384K tokens | 384K tokens |
| Reads pictures | Yes Yes | No No |
| Input | $0.15 (peak $0.30) | $0.66 (peak $1.32) |
| Input, cache hit | $0.003 (peak $0.006) | $0.022 (peak $0.044) |
| Output | $0.60 (peak $1.20) | $1.98 (peak $3.96) |
Peak hours: 01:00–04:00 · 06:00–10:00 UTC, Monday to Friday. Weekends and Chinese public holidays are off-peak all day.
How to call it
Create an on the DeepSeek , then send the same request you would send to OpenAI — only the address and model name change.
-
Create an API key
-
Address https://api.deepseek.com
-
Model deepseek-flash
-
Send messages, get an answer
curl https://api.deepseek.com/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DEEPSEEK_API_KEY}" \
-d '{
"model": "deepseek-flash",
"messages": [{"role": "user", "content": "Hello!"}],
"thinking": {"type": "disabled"}
}'
Thinking mode is on by default: the model first writes its reasoning, then the answer. For quick answers, such as a chatbot, turn it off with "thinking": {"type": "disabled"}.
Tools built for Claude (Anthropic format) use the address https://api.deepseek.com/anthropic instead.
Why it is cheap
-
Automatic cache
If the start of a request is the same as before (the , the earlier conversation), that part is a cache hit and costs $0.003 instead of $0.15 per million tokens — 50 times cheaper. You do not have to turn anything on.
-
Off-peak hours
Outside 01:00–04:00 · 06:00–10:00 on weekdays, the price is half. Batch jobs that can wait are cheaper at night in Asia or at weekends.
-
MoE design
The model has many experts but computes each token with only a few of them, so it costs less to run than a dense model of the same size.
-
Shorter answers
The 1017 version finishes the same work with shorter output. You pay for output tokens, so a shorter answer is a cheaper answer.
Open weights — you can run it yourself
deepseek-ai/DeepSeek-V4.1-Flash-1017 is published under the MIT licence on . and SGLang serve it with an OpenAI-compatible API on your own server.
It has 763B parameters in total. That needs a server with several large — an ordinary PC or laptop cannot run the full model. For practice, a much smaller model is the right choice.
Be careful
-
Empty answers in thinking mode
In thinking mode,
max_tokenscounts the reasoning too. If it is too small, the reasoning uses it all and the answer comes back empty without any error. Raisemax_tokensor turn thinking off. -
Old model names
The old names deepseek-v4-flash, deepseek-v4-flash-vision-exp are still accepted, but those models are retired and deepseek-flash answers instead. Use deepseek-flash in new code.
-
Where data goes
DeepSeek's privacy policy says its servers are in the People's Republic of China. Do not send personal information or company secrets you are not allowed to send abroad.
-
Prices change
The prices on this page were checked on 2026-10-24. Check the official price list before you build a budget on them.
Where SONUB uses DeepSeek
Lyen chatbot
Lyen answers with DeepSeek called directly (deepseek-flash, thinking off). Direct calls kept the cache and the menu tools working.
SONUB Code
The coding agent in the cloud practice box thinks with DeepSeek-V4.1-Flash-1017 through DeepSeek's own API.
DeepSeek through OpenRouter?
We measured four ways to reach the same DeepSeek model. Calling DeepSeek directly was the cheapest outside peak hours.
In one line: DeepSeek is "strong, cheap and open" — call it through the API for convenience, or download the when you need your own server.
Sources
This page is a plain-language summary of the official documents below, checked on 2026-10-24. If they differ, the official documents are right.
- DeepSeek API Docs — Your First API Call(opens in a new tab)
- DeepSeek API Docs — Models & Pricing(opens in a new tab)
- DeepSeek API Docs — Change Log(opens in a new tab)
- DeepSeek API Docs — DeepSeek-V4.1-Flash-1017 (2026-10-17)(opens in a new tab)
- DeepSeek API Docs — Thinking Mode(opens in a new tab)
- DeepSeek API Docs — Context Caching(opens in a new tab)
- Hugging Face — deepseek-ai/DeepSeek-V4.1-Flash-1017(opens in a new tab)
- Hugging Face — deepseek-ai/DeepSeek-R1(opens in a new tab)
- DeepSeek Privacy Policy(opens in a new tab)
Loading…
Choose a pending booking to cancel. Each cancellation requires confirmation.
Your :