Skip to content
Phạm Nam

Search

Type a keyword to search the posts.

Go back
en

DeepSeek API Opens App Features: Search, Files, Voice

DeepSeek opened its app features as APIs on deepseek-flash: web search with citations, file and URL reading, OCR, ASR and TTS — plus pricing and a guide.

11 min read—

Illustration of the DeepSeek API with web search, file reading, link reading and voice on the deepseek-flash model

DeepSeek Turns Its Whole App Into APIs: Web Search, File and Link Reading, Voice — on deepseek-flash Only

Opening: a chatbot that meant four vendors, four keys, four bills

You get asked to build a customer-support chatbot: it must answer fresh-news questions, read PDFs and links users send in, and understand voice notes. Each capability is a separate vendor — search, PDF parser, Whisper, TTS, moderation — each with its own SDK, key, bill, and failure point.

On 13/11/2026, DeepSeek opened its app’s full feature set — web search, file reading, link reading, voice, safety checks — to developers via API. This article covers how they work, how to call them, what they cost, and what that convenience costs you. Announcement dated 13/11/2026, checked against official docs on 14/11/2026; curl examples come from the docs — I have not run them against the real API.

What is new in the DeepSeek API on 13/11/2026?

The Change Log entry dated 2026-11-13, “Releasing the full suite of application APIs”: the DeepSeek App features — web search, file input, URL reading, voice interaction, safety — are now open to developers via parameters in the existing APIs. This is not a new model: the supported model is deepseek-flash (currently pointing to DeepSeek-V4.1-Flash-1017), with calling method and token pricing unchanged from V4.1 Flash. The features run in Messages, Responses, and Chat Completions.

deepseek-flash is currently served by DeepSeek-V4.1-Flash-1017, an upgrade of V4.1 Flash from 17/10/2026: 1M context, 384K max output, JSON output, tool calls, Responses API, Anthropic API, vision. Base URLs: https://api.deepseek.com (OpenAI format), https://api.deepseek.com/anthropic (Anthropic format). Vendor-reported benchmarks — Terminal-Bench 4.0: 42.3, HLE: 42.6, DeepSWE v1.1: 77.0 — not independently verified.

The new DeepSeek API features

Web search with citations

With thinking off, enable the deepseek_web_search tool: the model searches the web or images and answers with citations. With thinking on, it becomes deep-thinking search, using more tokens and tool calls. Citations matter most: without sources, an answer cannot be verified.

File reading and URL reading

File input accepts PDFs, Office files, images, and more; contents enter the context after parsing. URL reading uses the deepseek_read_url tool: the model detects links in a message, fetches the page, and answers from its content. Only deepseek-flash supports these built-in tools.

OCR, ASR, and TTS: standalone APIs

These are standalone APIs, called separately, not through a model call: Search and Fetch, OCR, ASR, TTS. Voice is not a flag in a chat call. TTS supports 10 languages, ASR 21 — both include Vietnamese. TTS voices: stella and tide. ASR limits: up to 8 MiB and 120 seconds, WAV PCM 16-bit or Ogg Opus. DeepSeek also open-sourced a demo chat client using these APIs, which imports chat history — take the repo from the Demo link in the Build a Chatbot docs.

Built-in tools in a model call vs standalone APIs

FeatureBuilt-in in a callStandalone APIWhen to choose
Web searchdeepseek_web_search (+ citations)Search and FetchNeed grounding: built-in; need raw results: standalone
URL readingdeepseek_read_urlWeb fetchModel summarises: built-in; need the content: standalone
File reading / OCRFile input in the callOCR / File parsingQ&A on a file: built-in; bulk extraction: standalone
VoiceNot in a chat callASR + TTS separatelyAlways use standalone
Safety checkParameter in the call—Mandatory for public services

Architecture: one API key, one model, two tool layers

The architecture is “thin client + thick API”: one API key, one model — deepseek-flash — at the centre. Tools are enabled by parameters in the same call; the server runs the tool calls and assembles the context, while standalone APIs run alongside without a model call. Nothing is self-hosted — files, URLs, and audio all go to DeepSeek’s servers.

flowchart TD
    Client["Client / Chatbot<br/>DEEPSEEK_API_KEY"]
    API["DeepSeek API<br/>api.deepseek.com"]
    Model["deepseek-flash<br/>V4.1-Flash-1017"]
    Tools["Built-in tools<br/>deepseek_web_search, deepseek_read_url<br/>File input, Safety check"]
    Stand["Standalone APIs<br/>Search and Fetch, OCR, ASR, TTS"]
    Out["Response + citations<br/>or Refusal marker"]

    Client --> API --> Model
    Model <-->|server tool call| Tools
    Client -->|calls directly| Stand
    Model --> Out --> Client

Data flow: user message (with file, URL, or audio) → API key + parameters → deepseek-flash decides the tool calls → the server searches, fetches, or parses → the model answers with citations. Control flow is narrower: the client controls only parameters — thinking, tool on/off, safety check — not search sources, link order, or file chunking. All you need is a DeepSeek API key and HTTPS to api.deepseek.com; the changelog does not state any rate limits or concurrency for the new tool APIs.

Building a chatbot with the DeepSeek API

Prerequisites

You need a DeepSeek Platform account, an API key, and an environment with curl or Python; keep the key in DEEPSEEK_API_KEY.

Your first API call with deepseek-flash

Verbatim example from the docs’ “Your First API Call” (not run yet):

export DEEPSEEK_API_KEY="sk-..."
curl https://api.deepseek.com/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer ${DEEPSEEK_API_KEY}" \
  -d '{"model": "deepseek-flash", "messages": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "Hello!"}], "thinking": {"type": "enabled"}, "reasoning_effort": "high", "stream": false}'

Expected result per the docs: HTTP 200, with JSON returning the model’s message.

Enabling web search, URL reading, and file reading

Enable deepseek_web_search in a call with deepseek-flash: thinking off, the model searches and answers with citations; thinking on, it switches to multi-step deep-thinking search. Enable deepseek_read_url and send a message with a link — the model fetches the page and answers from it. To ask about a file, upload it via file input first. Exact JSON syntax is in the Web Tools docs.

Calling ASR and TTS independently

Voice goes through two separate endpoints:

curl https://api.deepseek.com/v1/tools/asr \
  -H "Authorization: Bearer ${DEEPSEEK_API_KEY}" -F file="@speech.wav"
curl https://api.deepseek.com/v1/tools/tts \
  -H "Authorization: Bearer ${DEEPSEEK_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{"text": "Xin chào, tôi có thể giúp gì cho bạn?", "voice_id": "stella"}' --output speech.wav

ASR returns JSON with text as the transcript.

Verification and common errors

Test web search with a question needing fresh news, checking for citations; test file input with a sample PDF, asking about a detail found only in that file. Expected: HTTP 200, JSON with a message containing citations, or a refusal marker — a refusal is correct behaviour.

  • 401/403: wrong key, exhausted credit, or missing Bearer — recheck DEEPSEEK_API_KEY.
  • Tool not working: you are using a model other than deepseek-flash.
  • Refusal marker received: review the content; do not turn safety off to bypass it.
  • Surprisingly high bill: you forgot peak/off-peak pricing, or deep-thinking search multiplied searches.
  • ASR 400/413, TTS 429: wrong audio format, missing file field, or a file over 8 MiB; over 50 requests running — reduce concurrency and retry later.

How much does the DeepSeek API cost?

Token pricing: peak vs off-peak

Prices from the Models & Pricing page on 14/11/2026:

ItemOff-peakPeak
Input, cache-miss$0.15$0.30
Input, cache-hit$0.003$0.006
Output$0.60$1.20

Peak hours: 01:00–04:00 and 06:00–10:00 UTC, Monday to Friday, excluding Chinese holidays; the rest is off-peak, at half the peak price. In Vietnam time (UTC+7), peak is 08:00–11:00 and 13:00–17:00 on working days. Cache-hit input is about 50 times cheaper than cache-miss at off-peak ($0.003 vs $0.15).

Tool pricing: search, fetch, file parsing, TTS, ASR

ItemUnitPrice
Search (text, image)1,000 calls$0.75
Web fetch1,000 calls$0.75
File parsing & OCR1,000 pages$0.225
TTS10,000 characters$0.45, limited-time 50% off to $0.225
ASR1 hour of audio$0.116, limited-time 50% off to $0.058

The 50% ASR/TTS discount is “limited-time”, with no end date stated.

Assume each question uses 500 cache-miss input tokens, 300 output tokens, and 1 search. Off-peak: input $0.075, output $0.18, search $0.75 — about $1.00 per 1,000 questions, search making up 75%. With deep-thinking search, assume 5 searches and 3 link reads per question, 2,000 input tokens, 800 output tokens: input $0.30, output $0.48, search $3.75, fetch $2.25 — about $6.78 per 1,000 questions, tool fees $6.00, nearly 90%. For a lookup-heavy chatbot, per-call tool fees dominate, not cheap token prices.

Technical assessment

Strengths

One vendor, one key, one bill for search, files, URLs, voice, and safety — far less glue code and fewer failure points than a four-vendor stack. Cheap tokens, 1M context, 384K output, OpenAI-format and Anthropic-format compatibility. Citations make grounding verifiable. TTS and ASR both support Vietnamese.

Weaknesses and limits

Only deepseek-flash supports the built-in tools. No self-hosting. Retrieval — search sources, file parsing, context assembly — is a server-side black box. Benchmarks are vendor-reported, not independently verified. In my view, the biggest limit is auditability.

Security and compliance

The safety check is a parameter in the call: input and output are reviewed, and a refusal marker is returned on risk. Public services must enable it and fulfil content-review, model-registration, and AI-labelling obligations. Files, URLs, audio, and chat content all leave your infrastructure — think before sending sensitive data; never send secrets or keys in a prompt or file. Keep the key in an environment variable, rotate it if leaked, mask it in logs.

Performance, scaling, and operations

Only verified numbers here: 1M context, 384K output, per-call/per-page tool pricing. Scaling depends on unpublished rate limits and per-call tool costs — monitor tool-call counts and consider prompt caching. Operations are simple with no self-hosted infrastructure, but observability is weak at the retrieval layer — log search/fetch counts, citations, refusal rates, and peak/off-peak costs separately.

Risks and rollback

The deepseek-flash alias may later point to a different model — use an abstraction layer and avoid hard-coding DeepSeek parameters, so you can switch to the OpenAI Responses API, Gemini grounding, or a self-wired Tavily-plus-parser stack. Retrieval is a black box — log citations with sources, keep a standalone Search/Fetch fallback. Set budget alerts on tool-call counts, leave deep-thinking search off by default. Measure real load on 100–1,000 questions before scaling, retry with backoff, keep a no-search fallback.

Comparison with alternatives in the same scope

Criteria: price per question with search, number of vendors/keys, citations, file/URL reading, voice, context, self-hosting/retrieval control.

OpenAI Responses API (web_search tool) vs DeepSeek API: choose OpenAI if already in the OpenAI ecosystem and needing clearer tool control. Choose DeepSeek for low price, one vendor, 1M context.

Gemini grounding (Google Search) vs DeepSeek API: choose Gemini if already on Google Cloud and needing Google’s grounding. Choose DeepSeek for lower cost.

Self-wiring Tavily/Brave + parser + Whisper + TTS vs DeepSeek API: self-wire when you must choose search sources, control chunking, run on-prem, or keep files off vendor servers. DeepSeek wins for fast, cheap builds with little code.

Calling DeepSeek via the LiteLLM gateway vs calling it directly: use a gateway for multiple models under one unified OpenAI standard — see LiteLLM gateway for multi-model APIs in OpenAI format. Call directly for the full built-in tool set.

This comparison is based on verified features and prices.

DeepSeek API in practice: 5 scenarios

Enterprise chatbot for internal document lookup: Q&A over internal PDFs and Office files, plus web search for fresh news.

Homelab: self-host your own chatbot instead of using the DeepSeek app: use the open-source demo client plus the DeepSeek API, with DeepSeek chat history importable; costs follow token and tool pricing.

AI workflow: research assistant that summarises links and files: take a link or file from a user, use deepseek_read_url or file input to summarise and answer with citations.

DevOps: integrate a cheap LLM into an existing system: integrate via the OpenAI-format base URL; track costs by peak/off-peak shift and tool-call count.

IT admin: chatbot supporting end users: a helpdesk chatbot that looks up documents and the web, turning speech into text via ASR; it needs AI labelling.

Conclusion: who should use the DeepSeek API, and who should not

Use it if you want a chatbot with search, files, and voice built fast, cheaply, with little code; if you already have a DeepSeek API key; and if you accept retrieval is a black box. Do not use it if you need control over search sources and chunking, need to run on-prem, or handle sensitive data that must not leave your infrastructure.

Next steps: get an API key, run the curl example with deepseek-flash and web search from the docs, then measure real costs on 100–1,000 questions with search before production. Further reading: DeepSeek Superagent and Gemini 4 Hydrogen.

Lessons learned

  1. Do not cost a DeepSeek chatbot by token price — per-call tool fees dominate.
  2. Deep-thinking search multiplies both tokens and tool fees — enable it only when multi-step reasoning is truly needed.
  3. Citations are the only evidence for verifying grounding.
  4. The safety check is not optional for public services — design a refusal-marker handling flow from the start.
  5. Do not send sensitive data to the API just because it is convenient — convenience trades away data staying in your infrastructure.
  6. The 50% voice discount is time-limited — do not lock a long-term budget into a promotional price.

Verification scope

Check date: 14/11/2026. Verified directly from the DeepSeek API Docs: Change Log 13/11/2026, Models & Pricing (peak/off-peak token prices, tool prices, 1M context / 384K output), TTS (10 languages including Vietnamese), ASR (21 languages including Vietnamese, 8 MiB and 120-second limits).

Not verified: the real API has not been called, and the demo client has not been run (the repo URL comes from the Demo link in the docs, not guessed); benchmarks are vendor-reported; rate limits and concurrency for the new tool APIs are unpublished; the end date of the 50% voice discount is unknown; the exact JSON syntax of the web search tool was not cross-checked, so no sample body is invented here. Defaults vs opt-in: web search, files, URLs, and safety are all opt-in via parameters. Voice and OCR are separate APIs, not flags in a chat call. Token counts in the cost examples are illustrative assumptions — unit prices come directly from the docs.

References


Related posts

Bình luận

Bình luận được duyệt trước khi hiển thị.

Đang tải bình luận…

Để lại bình luận