DeepSeek: Wiring Chat, Harness and the API Into One Pipeline

Choosing a model is an engineering decision, not a demo. Three stages make up the route, and each hands a defined shape to the next: the chat entry point frames the requirement, the two modes decide whether the model reasons or reaches outward for sources, and the API stage lands the answer inside your own stack.

DeepSeek (深度求索) works on general-purpose artificial intelligence, on the underlying models and on the technology behind them. The release in place today is V4.1-Flash-1017, and four separate call sites reach the same model family.

Pipeline stages

Three stages, one model family

Work passes along a line here. One stage frames the request, the next decides how the model should handle it, and the last one forwards whatever comes out.

Where the requirement is framed

Open the browser chat or the mobile app and describe the outcome you need. Scope, constraints and acceptance criteria get settled here, while nothing has been wired up yet.

Once the wording holds up, the same structure can be reused as a system prompt.

Where the mode is chosen

Deep Thinking expands a request into several reasoning passes. Smart Search brings current web material into the answer. Choose per task rather than leaving both switched on.

Where the result is handed over

The API accepts OpenAI compatible requests, returns the reply in chunks or as one JSON body, and reports token usage so cost stays visible.

Local work: the Harness client

The desktop Harness runs on your own machine and takes on documents, tables and code. Plugins extend it, and longer jobs keep going with visible progress.

Call sites

Choosing where the work runs

Each call site differs in where the work runs and what you have to put in place before the first call.

Call site Where it executes Setup required Where to point
DeepSeek API Your servers and applications Register, generate a key, nothing to install platform.deepseek.com
DeepSeek on the web A browser on any device No download required chat.deepseek.com
DeepSeek App iOS and Android devices Grab it from the official app store The official DeepSeek app sits on App Store and on the major Android stores
Harness on desktop Your own workstation Install the desktop program Open the official Harness site

The model line-up

V4.1 is the current flagship for general work. The official update notes highlight stronger project-level engineering, and web search with page fetching on the API side.

V4 stays useful for everyday asks, writing and routine programming. A working pipeline does not need migrating just because a version number moved on.

R1 is the reasoning option. Its reasoning trace can be inspected on its own, and open weights under an MIT licence make private deployment, and adjusting the weights on data you hold, practical.

Inside the chat entry point you never type a model name. There is a switch instead: Deep Thinking for multi-step derivation, Smart Search when the answer depends on recent sources.

Over the API the same choice is expressed through the model name and the request parameters, with deepseek-chat for general tasks and deepseek-reasoning for reasoning ones.

Base URL and error handling

The API base URL is https://api.deepseek.com with a /v1 path and an OpenAI compatible body. Two error codes account for most of the traffic.

  • 401 means the credential side is broken. Check that the Authorization header is present, that it uses the Bearer format, that the key has no stray whitespace and that it has not been revoked.
  • 429 means the rate or quota side is saturated. Inspect the console balance and rate limits, then retry with exponential backoff and a reduced concurrency.

The Chinese section of this site covers the same ground in more depth, including request samples, output validation and tool calling. Start with the endpoint guide for the request contract, or open the walkthrough index for task level detail.

Fault lines

Where the wiring usually breaks

What kind of company is DeepSeek?

DeepSeek is a general-purpose artificial intelligence company working on underlying models and technology. Its work reaches users through browser chat, mobile apps, an API platform and the Harness desktop client.

When should I turn on Smart Search?

Turn it on when the answer depends on current facts: recent model releases, news, pricing, or anything else that stored knowledge alone will not cover. For reasoning over material you already supplied, keep it off.

How do I get an API key?

Register on the API platform, create a key in the console and store it in an environment variable straight away. The full value is normally shown only once, and a key that leaks should be revoked and replaced.

Which model should my pipeline call?

General tasks map to deepseek-chat, reasoning tasks map to deepseek-reasoning. If you need to look at the choice in more detail, the model roster maps each model to the stage it fits.

Can I run DeepSeek inside my own network?

Yes. Part of the model family ships with open weights, and R1 uses an MIT licence. Check the official repository for deployment notes, and see the local deployment guide for the hardware and access control steps.

Next in the line

Hand over to the Chinese guides

They take the same route further: picking a model, setting the endpoint up, and working through real tasks one at a time.