Skip to content
MizanStack

DeepSeek for students and developers: free chat, very cheap API

A million tokens of DeepSeek Flash output costs $1.20 at peak and $0.60 off-peak, while the chat app costs nothing. They are two separate products with two separate bills. Here is what each one is on the official pages (6 November 2026), how the prepaid balance works, and how to connect the API to a coding tool without burning money.

Two products, two different bills

  • The chat app (website and phone app). DeepSeek's download page (opens in a new tab) says you can "chat with leading AI models for free". You type, it answers. Nothing to set up.
  • The API. This is for programs: your script, your editor or a coding agent sends text to DeepSeek and pays per token from a prepaid balance. The chat app and the API are separate, and the free chat does not give you API credit.
  • A token is a small piece of text. DeepSeek's token page (opens in a new tab) estimates about 0.3 token per English character and about 0.6 per Chinese character, and says the real count is the one returned in each response.

Most money mistakes come from mixing these up. If you only want to ask questions, learn or debug a snippet, the chat is enough. The API matters when you want a tool to work on your whole project.

What is free: the chat app

  1. Open chat.deepseek.com (opens in a new tab) in a browser, or install the app only from the links on the official download page (opens in a new tab) (iOS and Android).

  2. Create an account and ask. Sign-in works with email, a Google account or Apple ID, and the chat has a DeepThink switch and web search.

  3. Turn on DeepThink for hard problems (maths, debugging logic) and leave it off for quick questions.

We found no published daily message cap for the free chat, so we will not guess one. Heavy use may be slowed or limited, and the service can be busy. Also see the privacy section below before pasting anything private.

What the API costs

The pricing page (opens in a new tab) lists two models today: deepseek-flash (served by DeepSeek-V4.1-Flash-1017) and deepseek-v4-pro. Prices are in US dollars per 1 million tokens:

  • deepseek-flash, input that was already cached: $0.006 peak, $0.003 off-peak.
  • deepseek-flash, input not cached: $0.30 peak, $0.15 off-peak.
  • deepseek-flash, output: $1.20 peak, $0.60 off-peak.
  • deepseek-v4-pro: input cached $0.044 / $0.022, input not cached $1.32 / $0.66, output $3.96 / $1.98 (peak / off-peak).

Peak hours are 01:00-04:00 and 06:00-10:00 UTC, Monday to Friday, except Chinese public holidays. Every other hour, including weekends, is off-peak at half price. Cairo is UTC+2 in winter, so those windows are 03:00-06:00 and 08:00-12:00 Cairo time (add one hour if Egypt is on summer time). Check your own offset.

A worked example

Using only the listed deepseek-flash prices: a session that sends 1 million uncached input tokens and receives 200,000 output tokens costs $0.30 + $0.24 = $0.54 at peak, and about $0.27 off-peak. This is arithmetic on the published rates, not a promise: real sessions also reuse cached input, which is cheaper, and agents often send far more input than you expect.

The same page lists a search tool and a fetch tool at $0.75 per 1,000 successful requests each, and says web search also uses extra tokens to summarise results.

Credits, top-up and the balance

  • The API is prepaid. Usage is deducted from a topped-up balance or a granted balance, and the granted balance is used first when both exist (pricing page and Terms of Service).
  • No official free or granted balance for new accounts is listed, so do not count on one. After you sign up, check your balance on the platform (opens in a new tab).
  • The balance endpoint (Get User Balance (opens in a new tab)) reports total_balance, granted_balance and topped_up_balance, in CNY or USD, and an is_available flag.
  • When money runs out, requests fail with HTTP 402 "Insufficient Balance" (error codes (opens in a new tab)). Add funds on the Top up page.
  • The Terms of Service say recharge methods, prices and any free quota are whatever the platform shows at the time. Check the Top up page for payment methods, the minimum amount and whether Egyptian cards work before you plan around it.

Practical tip: start with the smallest top-up the page allows, set one key per project, and delete keys you stop using.

Get a key and make your first call

  1. Sign in at platform.deepseek.com (opens in a new tab) and create a key on the API keys page (opens in a new tab). Copy it once and store it in a password manager.

  2. Put the key in an environment variable, not in your code:

    export DEEPSEEK_API_KEY=<your DeepSeek API Key>
  3. Send a test request (from the official quick start, shortened):

    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!"}], "stream": false}'
  4. If you get an answer, it works. 401 means a wrong key, 402 means no balance, 429 means you are sending too fast.

The API format is compatible with the OpenAI SDK (base URL https://api.deepseek.com) and with the Anthropic format (base URL https://api.deepseek.com/anthropic), so many tools only need those two settings changed.

Plug it into coding tools

OpenCode (simplest)

  1. Install OpenCode from opencode.ai/download. DeepSeek's page recommends version 1.18.30 or newer.

  2. Run opencode, type /connect, enter deepseek and pick the provider.

  3. Paste your DeepSeek API key, then choose the DeepSeek Flash model from the list.

Claude Code

DeepSeek documents a way to use Claude Code with its Anthropic-compatible endpoint. You need Node.js 18 or newer (and Git for Windows on Windows).

  1. Install Claude Code if you do not have it:

    npm install -g @anthropic-ai/claude-code
  2. Set these variables in the terminal (macOS and Linux syntax; the official page also shows PowerShell). Replace the placeholder with your key:

    export ANTHROPIC_BASE_URL=https://api.deepseek.com/anthropic
    export ANTHROPIC_AUTH_TOKEN=<your DeepSeek API Key>
    export ANTHROPIC_MODEL=deepseek-flash[1m]
    export ANTHROPIC_DEFAULT_OPUS_MODEL=deepseek-flash[1m]
    export ANTHROPIC_DEFAULT_SONNET_MODEL=deepseek-flash[1m]
    export ANTHROPIC_DEFAULT_HAIKU_MODEL=deepseek-flash
    export CLAUDE_CODE_SUBAGENT_MODEL=deepseek-flash
    export CLAUDE_CODE_EFFORT_LEVEL=max
    export CLAUDE_CODE_AUTO_COMPACT_WINDOW=786432
  3. Start it inside your project folder:

    cd /path/to/my-project
    claude
  • Model mapping from the docs: names starting with claude-opus go to deepseek-v4-pro (billed at Pro price), names starting with claude-haiku or claude-sonnet go to deepseek-flash. If a tool silently picks an "opus" model, your bill rises.
  • Web search inside Claude Code is supported, but it is billed twice: extra tokens plus Search API requests.
  • The official Claude Code page lists other tools too (Codex, OpenClaw and more). See the Claude Code page (opens in a new tab).

How to spend less

  • Use deepseek-flash by default and use deepseek-v4-pro only for problems Flash fails on. Pro is priced at more than four times Flash on uncached input and more than three times on output (from the table above).
  • Run big batch jobs in off-peak hours (weekends are fully off-peak) for half price.
  • Keep prompts stable at the start. Cached input is far cheaper than uncached input, so a long fixed instruction at the top of each request costs less than changing text.
  • Start a fresh session for a new task. Agents resend the whole conversation, so long sessions get expensive.
  • Watch your balance after the first few sessions. An agent loop can use more than you guess.

DeepSeek against other free options, and who should skip it

  • Compared with free tiers of other chat assistants: DeepSeek chat is a good free option for maths, code explanation and drafting. Others may have better file or image tools or clearer written limits. Try two or three on your own tasks.
  • Compared with OpenCode's free models list (see our OpenCode free models guide): free models there are free for a limited time and change often, while DeepSeek API is stable pay-per-use you control.
  • If you want nothing to leave your machine, run models locally instead: see our Ollama guide.
  • Not for you if: your code is confidential or under an NDA, you cannot accept data stored in China, you need guaranteed uptime for a business product, or you cannot pay online at all and have no workaround you trust.

Where your data goes: servers in China

  • DeepSeek's privacy policy (opens in a new tab) (updated 10 February 2026) says it collects chat text, uploaded files, prompts and usage data, and stores personal data in the People's Republic of China.
  • It says data may be used to train and improve models, and that you can ask to opt out by emailing privacy@deepseek.com. It does not describe an in-app opt-out. You can delete chat history in settings.
  • The policy does not clearly cover API inputs, so assume everything you send through the API leaves your machine too.
  • A coding agent reads your project files and sends them to DeepSeek, whose policy stores data in China. Run it only in a folder with no secrets and no confidential code.
  • Never put your key in a public GitHub repo. If it leaks, delete it on the API keys page and create a new one.

Quick answers: free API, rate limit, old model names

Is the API free?

No. It is prepaid and pay-per-token. It is cheap, and we found no official free allowance. The chat app is the free part.

What is the rate limit?

The rate limit page (opens in a new tab) lists concurrency per account: 2500 for deepseek-flash and 500 for deepseek-v4-pro. Going over returns HTTP 429. It does not list requests-per-minute limits. A request that has not started after 10 minutes is closed by the server.

Why did my old model name still work?

The pricing page says the old names deepseek-v4-flash and deepseek-v4-flash-vision-exp are still accepted, but those models are retired and requests go to the current Flash model at Flash price. Use the current names in new setups.

What did we not verify?

The free chat daily limit, the payment methods and minimum top-up, any new-account credit amount, and whether Egyptian bank cards are accepted. Check these yourself on the platform.

Checked against the official DeepSeek pages on 2026-11-06. Prices and limits change often, so check the sources before you pay.