DeepSeek opens API access to app features and chat-demo

DeepSeek has made its application's search, file handling, and voice capabilities available via API, accompanied by an open-source chat-demo client.

cpaua3 min21
DeepSeek opens API access to app features and chat-demo

DeepSeek has expanded its API to include all features previously exclusive to its official application, including web search, file processing, and voice capabilities. To facilitate implementation, the company released deepseek-ai/chat-demogithub.com/deepseek-ai/chat-demo, an open-source TypeScript client that demonstrates how to integrate these tools into a custom chatbot. This update allows developers to replicate the full DeepSeek user experience in their own software using the deepseek-flash model.

API tools for search and content processing

The API now supports several specialized tools for handling external data. The deepseek_web_search tool enables the model to perform web or image searches and provide answers with citations. When combined with thinking enabled, the model can execute multiple reasoning steps to search the web and read links independently.

For document handling, the API supports file input for PDF, Word, PowerPoint, and image files. The system extracts plain text or parses rich layouts to add the content to the conversation context. Additionally, the deepseek_read_url tool allows the model to detect links in user messages and fetch page content for contextual answers.

Voice and safety integration

DeepSeek provides separate API endpoints for speech-to-text (ASR) and text-to-speech (TTS), enabling voice input and read-aloud responses. Developers can also enable a safety check parameter that reviews model input and output, returning a refusal marker if a risk is detected. This is intended for public services that must fulfill AI labeling and content safety obligations.

The API also supports a user metadata marker to provide the model with the current date, user location, and language. To automate chat management, a conversation title feature can generate short titles once an answer is completed.

Technical implementation of the chat-demo client

The provided demo is a static application that connects the browser directly to the API service without requiring a backend. It uses the Messages API, Responses API, or Chat Completions API, with the Messages API being Anthropic-compatible. The client stores API keys and settings in localStorage, while conversations and attachments are kept in IndexedDB.

The interface supports Markdown, KaTeX math, and Mermaid diagrams. It also includes a system for importing and exporting chat history via ZIP archives, allowing users to migrate conversations from the official DeepSeek Chat. This approach to building agentic-style interfaces ensures that data remains isolated by browser profile and site origin.

Running the demo locally

The project requires Node.js 22.12+ and pnpm. To set up the development environment, use the following commands:

shellscript
git clone https://github.com/deepseek-ai/chat-demo.git
cd chat-demo
pnpm install
pnpm dev

The application becomes available at http://localhost:8090. For production, the static site can be generated using

shellscript
pnpm build
, which outputs the files to the dist/ directory. This build can be deployed to any static web server or opened directly via index.html if the browser supports storage on file:// pages.

API request configuration

When using tools like deepseek_web_search or enabling high-level safety checks, the service ignores certain parameters to maintain stability. In the Messages API, ignored parameters include temperature, top_p, top_k, and stop_sequences. The Responses API ignores temperature, top_p, and reasoning.summary, while the Chat Completions API ignores frequency_penalty and presence_penalty.

The max_tokens parameter continues to function normally, limiting the output of each individual inference step rather than the total output of the entire round. This allows for precise control over DeepSeek efficiency and response length during complex tool-use sequences.

Sources

cdn.deepseek.com — content not available without authorization

deepseek-ai/chat-demogithub.com/deepseek-ai/chat-demo

Build a Chatbot | DeepSeek API Docs

Share

Author

cpaua

VibeCode blog admin. Writing about vibe coding, AI and open source.

Related news

Comments

To leave a comment, log in
Loading...

Weekly digest

The best of vibe coding, AI agents and open source — once a week, no spam.