跳到正文
DeepSeek 官方动态·· 5 天前精选AI 评分48

DeepSeek 开放联网搜索、文件输入与 URL 阅读等应用 API

Releasing the full suite of application APIs

AI 导读

DeepSeek 今日把 App 中的联网搜索、文件输入、URL 阅读和安全审核能力开放给开发者,在现有 API 中开启对应参数即可使用,工具调用与上下文组装由服务端处理。

变化判断

DeepSeek 把 App 里的联网搜索、文件读取、URL 阅读和安全审核做成 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_search tool 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_search tool 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_url tool 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-docs.deepseek.com