DeepSeek Beginners Guide: V4, Chat, and Your First API Call

New to DeepSeek? This DeepSeek beginners guide covers V4 models, pricing, and your first API call. Start in under 10 minutes.

Guides·April 25, 2026·By DS Guide Editorial
DeepSeek Beginners title card with the tagline 'Web chat first, then the API with deepseek-flash.' and four stats: Free web chat, 2 API model IDs, 1M context window and 384K max output, beside an open-book motif.

You opened DeepSeek, saw a chat box that looks like every other AI assistant, and then noticed model names like deepseek-flash and deepseek-v4-pro, a thinking-mode switch, and an API page full of token-cost tables. Where do you actually start? This DeepSeek beginners guide cuts through the menus. We explain what each surface (web chat, mobile app, API) does, what it costs, and which model to pick for a first task, based on DeepSeek’s official documentation, pricing page and Change Log. By the end you will have sent a first message in the chat, sized up the pricing, and — if you want — made your first API call in Python.

What DeepSeek is, in one paragraph

Illustration: person at a laptop typing a first message into a generic AI chat app that is streaming a one-sentence answer about eventual consistency; not DeepSeek's interface.
Illustration of a generic chat interface, not a screenshot of DeepSeek's app.

DeepSeek is a Chinese AI lab (founded 2023, based in Hangzhou, linked to the hedge fund High-Flyer) that builds large language models and ships them as open weights on Hugging Face plus a hosted chat and API. As of October 2026 the API lists two models: deepseek-flash, served by DeepSeek-V4.1-Flash-1017 (released 17 October 2026, the only current API model that accepts images), and deepseek-v4-pro, served by DeepSeek-V4-Pro-0813 (the official V4-Pro release of 13 August 2026). Both share a 1M-token context window with output up to 384K tokens, according to DeepSeek’s Models & Pricing page, and both publish their weights on Hugging Face under the MIT license. If you want a longer primer on the company itself, see what is DeepSeek.

The three ways you’ll actually use DeepSeek

Most beginners conflate “DeepSeek” with the chat website. There are really three distinct surfaces, and they behave differently:

Surface Who it’s for State Cost
Web chat (chat.deepseek.com) Anyone with a browser Keeps history per conversation Free at time of writing
Mobile app (iOS, Android) Phone users Keeps history per conversation Free at time of writing
API (api.deepseek.com) Developers Stateless — you resend history every call Pay per token

Important detail beginners miss: the API is stateless. The web chat and app remember what you said earlier in the conversation; the API does not. If you build something on the API, your code must resend the full message history with every request. More on that below.

Step 1: Try the chat (5 minutes, free)

The simplest way to get a feel for DeepSeek is the hosted chat. Go to chat.deepseek.com and register: DeepSeek’s Terms of Use (updated 27 March 2026) describe registration with an email address or a third-party account, and its Privacy Policy (updated 10 February 2026) names Apple and Google sign-in where available. According to DeepSeek’s 17 October 2026 Change Log, the official web and app models were updated to DeepSeek-V4.1-Flash-1017.

The mode switch has changed names over time. DeepSeek’s August 2025 V3.1 announcement described a “DeepThink” button for turning thinking on and off; its 24 April 2026 V4 announcement pointed to “Expert Mode / Instant Mode”; and its 13 August 2026 announcement said V4 Pro is available on app and web via “Expert Mode”. No official DeepSeek page from after 17 October 2026 describes the current selector, so go by what your chat shows. The idea stays the same: a thinking mode reasons step by step before answering — slower, but aimed at maths, code and multi-step problems. Walk-through: how to use DeepSeek.

A first prompt worth trying, because it benefits from step-by-step reasoning:

“I have a CSV with 12 months of revenue and cost data per region. Suggest three exploratory analyses and the Python (pandas) code for each. Then list two pitfalls in interpreting the results.”

If your chat offers a thinking switch, run the prompt with it off and then on, and compare the answers. That is the same trade-off you will make in the API later with the thinking toggle and the reasoning_effort parameter.

Step 2: Pick a model (deepseek-flash vs deepseek-v4-pro)

For chat users this happens automatically. For API users it is the most important decision you will make, because deepseek-v4-pro costs 3.3× as much as deepseek-flash on output and 4.4× on cache-miss input.

Model ID Served by Vision Output $/1M tokens (peak / off-peak)
deepseek-flash DeepSeek-V4.1-Flash-1017 Yes $1.20 / $0.60
deepseek-v4-pro DeepSeek-V4-Pro-0813 Not supported $3.96 / $1.98

Start with deepseek-flash: it is the cheaper model, the only one with image input, and DeepSeek’s 10 September 2026 news page says tests by multiple parties put V4.1-Flash ahead of V4-Pro on performance, cost, speed and total runtime. Move to deepseek-v4-pro only if a specific task works better there and the price difference is worth it. For a deeper breakdown, see the dedicated pages for DeepSeek V4-Flash and DeepSeek V4-Pro, or browse the DeepSeek models hub for the full lineup.

What about the old deepseek-chat and deepseek-reasoner IDs?

If you’ve seen tutorials referencing deepseek-chat or deepseek-reasoner, those are legacy model IDs. In their last months they pointed to the non-thinking and thinking modes of deepseek-v4-flash; they were scheduled for retirement on 2026-07-24 at 15:59 UTC and are no longer listed in DeepSeek’s docs. deepseek-v4-flash and deepseek-v4-flash-vision-exp are also legacy names: they are still accepted, but those models are retired and the requests are served by DeepSeek-V4.1-Flash-1017 at the Flash price. Migration is a one-line change: keep base_url and set model to deepseek-flash (or deepseek-v4-pro).

Step 3: Understand the pricing before you spend a dollar

DeepSeek bills three buckets per request, and every rate has a peak and an off-peak price. Forgetting a bucket is the most common cost-estimate mistake.

Bucket deepseek-flash $/1M (peak / off-peak) deepseek-v4-pro $/1M (peak / off-peak)
Input — cache hit $0.006 / $0.003 $0.044 / $0.022
Input — cache miss $0.30 / $0.15 $1.32 / $0.66
Output $1.20 / $0.60 $3.96 / $1.98

Rates as of October 2026 from DeepSeek’s official pricing page; see also our DeepSeek API pricing guide. Off-peak rates are half the peak rates. Peak hours are 01:00–04:00 and 06:00–10:00 UTC, Monday through Friday, excluding Chinese public holidays; all other hours are off-peak, including weekends and Chinese public holidays in full.

Worked example — deepseek-flash, 1 million calls

2,000-token system prompt (cached across calls), 200-token user message (uncached on each call), 300-token response:

  • Cached input: 2,000 × 1,000,000 = 2,000,000,000 tokens × $0.006/M = $12.00 peak; × $0.003/M = $6.00 off-peak
  • Uncached input: 200 × 1,000,000 = 200,000,000 tokens × $0.30/M = $60.00 peak; × $0.15/M = $30.00 off-peak
  • Output: 300 × 1,000,000 = 300,000,000 tokens × $1.20/M = $360.00 peak; × $0.60/M = $180.00 off-peak
  • Total: $432.00 if run entirely in peak hours ($12.00 + $60.00 + $360.00); $216.00 if run entirely off-peak ($6.00 + $30.00 + $180.00)

The same workload on deepseek-v4-pro comes to $1,540.00 at peak ($88.00 + $264.00 + $1,188.00) and $770.00 off-peak ($44.00 + $132.00 + $594.00) — about 3.6× the Flash cost. A real workload usually straddles both periods. For interactive what-if estimates, the DeepSeek pricing calculator handles the three buckets for you.

Step 4: Your first API call (Python)

The DeepSeek API is OpenAI-compatible. That means the official OpenAI Python SDK works against DeepSeek by changing only base_url and api_key. Chat requests hit POST /chat/completions, the OpenAI-compatible endpoint. (DeepSeek also offers an Anthropic-compatible interface at https://api.deepseek.com/anthropic if you prefer that SDK.)

First, get a key — see get a DeepSeek API key for the click-by-click — and store it in the DEEPSEEK_API_KEY environment variable. Then install the SDK:

pip install openai

Thinking mode is on by default, and it ignores temperature. This minimal script switches thinking off so you get a quick, short answer and the temperature setting takes effect:

import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ.get("DEEPSEEK_API_KEY"),
    base_url="https://api.deepseek.com",
)

resp = client.chat.completions.create(
    model="deepseek-flash",
    messages=[
        {"role": "system", "content": "You are a concise assistant."},
        {"role": "user", "content": "Explain MoE in two sentences."},
    ],
    temperature=1.3,
    max_tokens=256,
    extra_body={"thinking": {"type": "disabled"}},
)

print(resp.choices[0].message.content)

That’s it. With thinking mode (the default), the model returns reasoning_content alongside the final content; you can set it explicitly and choose the effort:

resp = client.chat.completions.create(
    model="deepseek-v4-pro",
    messages=[{"role": "user", "content": "Plan a 3-step database migration."}],
    reasoning_effort="high",
    extra_body={"thinking": {"type": "enabled"}},
)
print(resp.choices[0].message.reasoning_content)
print(resp.choices[0].message.content)

reasoning_effort accepts low, high (the default) and max; DeepSeek suggests max for more complex scenarios, and you’ll need max_tokens headroom (up to 384K) for long reasoning output. Full parameter reference and more samples in the DeepSeek API documentation.

Temperature defaults worth memorising

DeepSeek’s recommended values, which apply in non-thinking mode only:

  • 0.0 — code generation, mathematics
  • 1.0 — data analysis, data cleaning
  • 1.3 — general conversation, translation
  • 1.5 — creative writing, poetry

Step 5: Know what DeepSeek can and can’t do

DeepSeek’s current releases are aimed at coding, agents, long-context analysis and tool calling. DeepSeek-reported results include 77.0 on DeepSWE v1.1 for DeepSeek-V4.1-Flash-1017 (17 October 2026 Change Log) and 87.9 on Terminal Bench 2.1 for DeepSeek-V4-Pro-0813 (13 August 2026 Change Log); see the official Change Log for the full lists. The chat endpoint does not browse the web on its own; for live web content DeepSeek offers separate Search and Fetch APIs, billed at $0.75 per 1,000 successful requests each. Image input works on deepseek-flash only, and neither API model lists image generation — that has lived in separate releases like DeepSeek Janus. Honest list of rough edges: DeepSeek limitations.

Beginner pitfalls — and the fixes

Three Ways In title card with the tagline 'Web chat and app keep history; the API is stateless.' and four tiles: WEB free chat, APP iOS and Android, API pay per token, and 2 API model IDs, beside a vintage compact-computer illustration.
Pitfall Fix
API costs come in far above the estimate The uncached-input bucket was left out, or the estimate used off-peak rates for peak-hour traffic. Each new user message is a cache miss against the cached prefix.
A multi-turn chatbot forgets the last message The API is stateless. Resend the full messages array every call.
JSON mode returned empty content Include the word “json” plus a small example schema in your prompt and raise max_tokens. JSON mode is designed to return valid JSON, not guaranteed.
temperature seems to do nothing Thinking mode is the default and ignores it. Disable thinking with extra_body={"thinking": {"type": "disabled"}} if you need temperature control.
Old tutorials use deepseek-chat Use deepseek-flash for new code. The legacy IDs were scheduled for retirement on 2026-07-24 15:59 UTC and are no longer listed in the docs.

Where to go next

You now know the surfaces, the two API models, the three pricing buckets with their peak and off-peak rates, and how to send a first request. Pick the path that matches what you’re building:

Is DeepSeek free for beginners?

The DeepSeek web chat at chat.deepseek.com and the official mobile apps are free to use at the time of writing; DeepSeek’s Terms of Use describe registration with an email address or a third-party account. The API is paid, billed per token: as of October 2026 deepseek-flash costs $0.30 per million cache-miss input tokens and $1.20 per million output tokens at peak, and $0.15 / $0.60 off-peak. DeepSeek may offer a granted balance — a small promotional credit that can expire — so check the billing console for current offers. More detail: is DeepSeek free.

What’s the difference between deepseek-v4-pro and deepseek-flash?

They come from different releases: deepseek-flash is served by DeepSeek-V4.1-Flash-1017 (17 October 2026) and deepseek-v4-pro by DeepSeek-V4-Pro-0813 (13 August 2026). Both have a 1M-token context window, up to 384K output, thinking and non-thinking modes, JSON output and tool calls; only deepseek-flash accepts images. deepseek-v4-pro costs 3.3× as much on output and 4.4× on cache-miss input, at peak and off-peak alike. deepseek-flash is the sensible default. Side-by-side: DeepSeek V4.

How do I make my first DeepSeek API call?

Install the OpenAI Python SDK with pip install openai, then point it at base_url="https://api.deepseek.com" with your DeepSeek API key read from an environment variable. Call client.chat.completions.create(model="deepseek-flash", messages=[...]) against POST /chat/completions. DeepSeek-specific fields such as thinking go in extra_body; otherwise OpenAI SDK code paths work unchanged. Step-by-step: DeepSeek API getting started.

Does DeepSeek remember my conversation history?

The web chat and mobile app keep conversation history per session — you can scroll back through past chats. The API does not. The API is stateless, which means your client code must resend the full messages array (system, user, assistant turns) on every request to maintain context. This is the single biggest difference between the chat surface and the developer surface. Pricing implications: DeepSeek context caching.

Can I run DeepSeek offline on my own machine?

Yes — recent releases, including DeepSeek-V4.1-Flash-1017, DeepSeek-V4-Pro-0813, V3.2, V3.1 and R1, publish weights under the MIT license on Hugging Face, so you can self-host. The current models are very large, though: the V4.1-Flash-1017 files total about 510 GB and the V4-Pro-0813 files about 893 GB. Most beginners start with a small distilled model instead; on Ollama, deepseek-r1:8b is DeepSeek-R1-0528-Qwen3-8B (a 5.2 GB download), while the deepseek-v4.1-flash and deepseek-v4-pro tags are cloud-only (Ollama library, October 2026). See DeepSeek R1 Distill, and for a walkthrough, running DeepSeek on Ollama.

Sources & Methodology

Last source check: October 24, 2026

Primary sources

  • Model cardDeepSeek on Hugging FaceWeights, license, usage notes per modelLast checked: October 24, 2026
  • Official documentationDeepSeek API Docs: Models & PricingModel IDs and versions, 1M context, 384K max output, vision on deepseek-flash only, peak/off-peak prices and peak-hour rule, Search/Fetch price, legacy-name routingLast checked: October 24, 2026
  • Official documentationDeepSeek API Docs: Your First API CallBase URLs (OpenAI and Anthropic format) and the Python exampleLast checked: October 24, 2026
  • Official documentationDeepSeek API Docs: Change LogV4.1-Flash-1017 on web/app/API (17 Oct 2026), V4-Pro GA (13 Aug 2026), DeepSeek-reported benchmarks, legacy-ID scheduleLast checked: October 24, 2026

Technical references

Context sources

Methodology

Information in this article was checked against the official DeepSeek documentation, the article's cited primary sources, and the deepseekai.guide pricing dataset on the date shown above. Where third-party numbers are quoted, the originating source is linked inline so the reader can verify and re-check.

Data confidence

High for facts cited inline with primary-source links; medium for context narrative.

Editorial note

AI tooling moves quickly. If you spot an outdated number or a broken link, the contact link in the footer is the fastest way to flag it for the editorial team.

Leave a Reply

Your email address will not be published. Required fields are marked *