DeepSeek 开放网页搜索、文件输入、URL 读取等应用 API
Releasing the full suite of application APIs
DeepSeek 将 App 中的网页搜索、文件输入、URL 读取、语音交互和安全能力开放给开发者,在现有 API 中开启对应参数即可获得这些对话功能,工具调用与上下文组装由服务端处理。
原文列出了开放给开发者的对话能力参数与独立 API 清单,读者可据此判断现有应用能接入哪些环节。
In the DeepSeek App (including the web version), web search, file input, URL reading, voice interaction and safety work together with model inference to form the conversation experience users know. Today we open these capabilities to developers: enable the corresponding parameters in the existing APIs to get conversation features such as web search, file input and URL reading, with the tool calls and context assembly handled by the service.
The deepseek-flash model supports the following in the Messages, Responses and Chat Completions APIs:
- Web search: with thinking disabled and the
deepseek_web_searchtool enabled, the model runs web or image searches as the question requires and answers with citations. - Deep thinking search: with thinking enabled and the
deepseek_web_searchtool enabled, the model searches the web and reads links on its own over multiple reasoning steps. - File input: upload PDFs, Office files, images, and more; after plain-text extraction or rich-layout parsing, they are added to the conversation context for the model to answer from.
- URL reading: with the
deepseek_read_urltool enabled, the model detects links in the user message, fetches the pages and answers with them in context. - Model safety: with the safety check parameter enabled, we provide basic risk control: the model input and output are reviewed, and a refusal marker is returned when a risk is found. If you provide a service to the public, enable this parameter and fulfill obligations such as content safety review, large model registration and AI labeling.
In addition, these underlying capabilities and the voice capabilities are available as standalone APIs, including Search and Fetch, OCR, ASR and TTS.
We have also built and open-sourced a demo chat client on these APIs, which can import your DeepSeek chat history; see Demo.
See Build a Chatbot for how to use them, and Models & Pricing for prices.
来源:DeepSeek API News · api-docs.deepseek.com