DeepSeek API: your first call in ten minutes.
Because DeepSeek mirrors the OpenAI and Anthropic APIs, you can point your existing code at it by changing two lines. Here is the clean path from zero to a working call.
01From zero to first response
- Create a DeepSeek platform account and open the API keys page.
- Generate a key and store it as an environment variable — never hard-code it.
- Point your existing OpenAI (or Anthropic) client at DeepSeek's base URL and set the model to a current name —
deepseek-flashfor the latest Flash model (V4.1 Flash as of November 2026), ordeepseek-v4-profor Pro. - Send a test message, confirm you get a response, and check the token usage in the dashboard.
The whole point: keep your SDK, your message format, and your tooling. You change the base URL and the model name — everything else stays. That is what makes migrating a prototype trivial.
02New: the app's tools, as API switches
On November 13, 2026, DeepSeek opened up the pieces that make its own chat app work — so you no longer have to wire up search, scraping and file parsing yourself. Per DeepSeek's API changelog, the deepseek-flash model supports these in the Messages, Responses and Chat Completions APIs, with the tool calls and context assembly handled on DeepSeek's side:
- Web search — enable the
deepseek_web_searchtool and the model searches when the question needs it and answers with citations. With thinking turned on, it becomes a multi-step “deep thinking search” that reads links on its own. - URL reading — enable
deepseek_read_urland links in the user's message are fetched and read into context. - File input — upload PDFs, Office files or images; DeepSeek extracts the text (or parses rich layouts) and adds it to the conversation.
- Safety check — an optional parameter that reviews inputs and outputs and returns a refusal marker on risky content.
Search and Fetch, OCR, speech recognition (ASR) and text-to-speech (TTS) are also available as standalone APIs, and DeepSeek open-sourced a demo chat client built on them that can import your DeepSeek chat history.
A “chat with web search and file upload” prototype used to mean a search API, a scraper and a document parser glued together. Now it is one model call with tool switches. The trade-off: you're relying on DeepSeek's search index and parsing quality, and tool calls add cost — check the current rates on DeepSeek's Models & Pricing page before you scale.