DeepSeek 向開發者開放完整應用 API 套件,提供多項對話能力
Releasing the full suite of application APIs
DeepSeek 向開發者開放應用 API 能力,現有 API 啟用相應參數後即可提供網頁搜尋、檔案輸入及網址讀取等對話功能,工具調用和上下文組裝由服務處理。deepseek-flash 支援 Messages、Responses 和 Chat Completions API,另有 Search and Fetch、OCR、ASR 和 TTS 獨立 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 更新日誌 · api-docs.deepseek.com